]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk3399: Add a default spl-boot-order prop
authorJonas Karlman <jonas@kwiboo.se>
Tue, 30 Apr 2024 15:30:18 +0000 (15:30 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 7 May 2024 07:56:08 +0000 (15:56 +0800)
A lot of RK3399 boards use a u-boot,spl-boot-order of "same-as-spl",
&sdhci and &sdmmc.

Move this to rk3399-u-boot.dtsi and make this default for boards
currently missing a u-boot,spl-boot-order prop.

Before commit a7e69952eb6d ("rockchip: spl: Cache boot source id for
later use") it was required to include the SPI flash node in the
u-boot,spl-boot-order prop to successfully load FIT from SPI flash.

The SPI flash node reference has been dropped from spl-boot-order from
pinebook-pro, roc-pc and rockpro64 now that "same-as-spl" also gets
resolved to the SPI flash node and loading FIT from SPI flash works
without having the node explicitly referenced in spl-boot-order prop.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
15 files changed:
arch/arm/dts/rk3399-eaidk-610-u-boot.dtsi
arch/arm/dts/rk3399-evb-u-boot.dtsi
arch/arm/dts/rk3399-ficus-u-boot.dtsi
arch/arm/dts/rk3399-firefly-u-boot.dtsi
arch/arm/dts/rk3399-khadas-edge-u-boot.dtsi
arch/arm/dts/rk3399-leez-p710-u-boot.dtsi
arch/arm/dts/rk3399-nanopi4-u-boot.dtsi
arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi
arch/arm/dts/rk3399-pinephone-pro-u-boot.dtsi
arch/arm/dts/rk3399-roc-pc-u-boot.dtsi
arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi
arch/arm/dts/rk3399-rock960-u-boot.dtsi
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi
arch/arm/dts/rk3399-u-boot.dtsi
arch/arm/dts/rk3399pro-rock-pi-n10-u-boot.dtsi

index a3f27566e438cd5987eed0443f01d766bcda4884..6c07de98fa01d949a0d1ddfb9a3f9ac62e9ab9fd 100644 (file)
@@ -9,7 +9,6 @@
 / {
        chosen {
                stdout-path = "serial2:1500000n8";
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
        };
 };
 
index dfce63e4d428fe7019291a2ceaf1fa9bebb18869..796ac964239950baaadc49f92a558b31b14ca5b0 100644 (file)
@@ -9,7 +9,6 @@
 / {
        chosen {
                stdout-path = "serial2:1500000n8";
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
        };
 };
 
index 38e0897db91dd3d1306c3ce0c30b40939ab6e220..67b63a835238b075610a1f2023bf5ec445b81bc6 100644 (file)
@@ -5,9 +5,3 @@
 
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-ddr3-1600.dtsi"
-
-/ {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
-       };
-};
index c58ad95d120a91f9ad988eb535c68eb06d87455e..1f5fda1d0f1d6fbe867b4834aabb03a89626dc01 100644 (file)
@@ -6,12 +6,6 @@
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-ddr3-1600.dtsi"
 
-/ {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
-       };
-};
-
 &vdd_log {
        regulator-init-microvolt = <950000>;
 };
index a7039d74a0167b44be29473e3e670a9a5514fc14..4a3b23e483136da2f7a43d6e26e9a2696c08659a 100644 (file)
@@ -6,12 +6,6 @@
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
-/ {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
-       };
-};
-
 &vdd_log {
        regulator-init-microvolt = <950000>;
 };
index c638ce25973129f7dcfdb2d8fe2624a26542734b..03b59685063543e7c4389dbe30bc4cd35526d756 100644 (file)
@@ -6,12 +6,6 @@
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
-/ {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
-       };
-};
-
 &vdd_log {
        regulator-init-microvolt = <950000>;
 };
index a9d10592d573fba875f99f878b28a90e8123364d..a126bbaf086f5bbf6eabe30de979ba057d003569 100644 (file)
@@ -5,12 +5,6 @@
 
 #include "rk3399-u-boot.dtsi"
 
-/{
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
-       };
-};
-
 &sdmmc {
        pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_cd>;
 };
index 88a77cad8d43cbe53b72d5f678d2a3f19b74e2fe..83b0c44e9ec5037066427ec3547b44c47024f743 100644 (file)
@@ -6,12 +6,6 @@
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
-/ {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &spiflash, &sdmmc;
-       };
-};
-
 &edp {
        rockchip,panel = <&edp_panel>;
 };
index 0e46e87e1fa01a9b5bce4265cb5ce2a49af7a1c9..5dc7d0db5f736d035b00f358e839c9c156743aea 100644 (file)
@@ -6,12 +6,6 @@
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
-/ {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
-       };
-};
-
 &sdhci {
        max-frequency = <25000000>;
        bootph-all;
index c8f4418a7389ac4d46153309bac56043234aded1..e390cf3abab53ce935f0e7d60376994acf5b3ff9 100644 (file)
@@ -7,10 +7,6 @@
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
 / {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &spi_flash, &sdhci, &sdmmc;
-       };
-
        vcc_hub_en: vcc_hub_en-regulator {
                compatible = "regulator-fixed";
                enable-active-high;
index 60122f3bcd6cd87ef7cf1f75a0dbf6a936abc1b8..b3bfc77f7569af25cdfaa6c69b33985008e68b18 100644 (file)
@@ -6,12 +6,6 @@
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
 
-/ {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
-       };
-};
-
 &sdhci {
        cap-mmc-highspeed;
        mmc-ddr-1_8v;
index c190089e26431b6a0535fba927a56f12289973f2..55716ba4df733b98eabcd60ab99dcd8302fff33a 100644 (file)
@@ -7,10 +7,6 @@
 #include "rk3399-sdram-lpddr3-2GB-1600.dtsi"
 
 / {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
-       };
-
        vdd_log: vdd-log {
                compatible = "pwm-regulator";
                pwms = <&pwm2 0 25000 1>;
@@ -22,5 +18,4 @@
                regulator-init-microvolt = <950000>;
                vin-supply = <&vcc5v0_sys>;
        };
-
 };
index 089732524a76364c61e615814d2e39426468aee5..b15e5392c3cfd4752f79605ea1bedfd435b09445 100644 (file)
@@ -5,11 +5,8 @@
 
 #include "rk3399-u-boot.dtsi"
 #include "rk3399-sdram-lpddr4-100.dtsi"
-/ {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &spi_flash, &sdmmc, &sdhci;
-       };
 
+/ {
         smbios {
                 compatible = "u-boot,sysinfo-smbios";
                 smbios {
index 0b0a90acf4318dbd2510bda0c8bd34fda2cec9ce..96523a138ae36f6cdf10c6bba0b8435f274078f7 100644 (file)
                spi1 = &spi1;
        };
 
+       chosen {
+               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
+       };
+
        cic: syscon@ff620000 {
                bootph-all;
                compatible = "rockchip,rk3399-cic", "syscon";
index 7c66e1145a50e2a285403cebfad251b8c9e12572..946a0230dbb4b88153df32fbbf89d4d6fff8c3ec 100644 (file)
@@ -5,9 +5,3 @@
 
 #include "rk3399pro-u-boot.dtsi"
 #include "rk3399-sdram-lpddr3-4GB-1600.dtsi"
-
-/ {
-       chosen {
-               u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc;
-       };
-};