u-boot/arch/arm/dts/rk3566-anbernic-rg353p-u-boot.dtsi
Chris Morgan 7344fa41a2 board: rockchip: Convert Anbernic RGxx3 to OF_UPSTREAM
Refactor the board detection logic (again) to make it compatible with
the upstream device-trees, and switch to OF_UPSTREAM.

Now the device boots with the device-tree for the 353P, and then
loads the correct device tree (of 10) in the later stages of SPL.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2024-10-25 20:48:40 +08:00

34 lines
754 B
Text

// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
#include "rk356x-u-boot.dtsi"
/ {
chosen {
u-boot,spl-boot-order = &sdmmc0, &sdhci;
};
/*
* Adding fixed regulator to work around driver regulator
* requirements. Note that the correct regulator is on by
* default at boot and that saradc regulator gets corrected
* when proper device-tree is loaded.
*/
vcc_1v8_dummy: vcc-1v8-dummy {
bootph-pre-ram;
bootph-some-ram;
compatible = "regulator-fixed";
regulator-always-on;
regulator-boot-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-name = "vcc_1v8_dummy";
status = "okay";
};
};
&saradc {
bootph-pre-ram;
bootph-some-ram;
vref-supply = <&vcc_1v8_dummy>;
status = "okay";
};