mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 02:15:02 +00:00

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>
34 lines
754 B
Text
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";
|
|
};
|