]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: rk356x: Update bootph props
authorJonas Karlman <jonas@kwiboo.se>
Mon, 22 Apr 2024 06:28:49 +0000 (06:28 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 26 Apr 2024 07:47:04 +0000 (15:47 +0800)
After the commit aca95282c1b7 ("Makefile: Use the fdtgrep -u flag")
bootph props is propagating to parent nodes.

Update bootph props to ensure eMMC, SD-card and SPI flash is available
in SPL and U-Boot proper pre-reloc phase also remove unneeded bootph
props that automatically is propagated to parent nodes.

Also adjust pinctrl nodes to only be included in boot phases where they
are needed and add any missing pinctrl node needed in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3566-pinetab2-u-boot.dtsi
arch/arm/dts/rk3566-quartz64-a-u-boot.dtsi
arch/arm/dts/rk3566-quartz64-b-u-boot.dtsi
arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi
arch/arm/dts/rk3568-rock-3a-u-boot.dtsi
arch/arm/dts/rk356x-u-boot.dtsi

index 4aa6ab1c848c57bee1e177b2c34c70a33a20d0cc..eb18008f2fe3012cede6696bf35bf19eb71e2f9a 100644 (file)
@@ -3,20 +3,31 @@
 #include "rk356x-u-boot.dtsi"
 
 &fspi_dual_io_pins {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &gpio0 {
-       bootph-all;
+       bootph-pre-ram;
 };
 
 &i2c0 {
        bootph-pre-ram;
 };
 
-&rk817 {
+&i2c0_xfer {
+       bootph-pre-ram;
+};
+
+&i2s1m0_mclk {
+       bootph-pre-ram;
+};
+
+&pmic_int_l {
        bootph-pre-ram;
+};
 
+&rk817 {
        regulators {
                bootph-pre-ram;
        };
 };
 
 &sdmmc_pwren_l {
-       bootph-all;
+       bootph-pre-ram;
 };
 
 &sfc {
-       bootph-pre-ram;
-       u-boot,spl-sfc-no-dma;
-
        flash@0 {
                bootph-pre-ram;
+               bootph-some-ram;
        };
 };
 
index 930d660868bbd75d4d8b8537c9e10269391dbdea..0e25b7e108fc41da1eeaa9e2ed71c53bed5dfb28 100644 (file)
@@ -3,7 +3,7 @@
 #include "rk356x-u-boot.dtsi"
 
 &gpio0 {
-       bootph-all;
+       bootph-pre-ram;
 };
 
 &sdhci {
 };
 
 &sfc {
-       bootph-pre-ram;
-       u-boot,spl-sfc-no-dma;
-
        flash@0 {
                bootph-pre-ram;
+               bootph-some-ram;
        };
 };
 
@@ -34,5 +32,5 @@
 };
 
 &vcc_sd_h {
-       bootph-all;
+       bootph-pre-ram;
 };
index c235b4357f7da29101204d3d521b1bac10182c5d..f2c9d8e167d54381f934b10e986d85d378287c04 100644 (file)
@@ -9,11 +9,9 @@
 };
 
 &sfc {
-       bootph-pre-ram;
-       u-boot,spl-sfc-no-dma;
-
        flash@0 {
                bootph-pre-ram;
+               bootph-some-ram;
        };
 };
 
index 1fc71faa9e07d03a1a995354f4352fd5cea25799..d8a6dd87510f9ca0ce4cf10627c60bc79fee8c44 100644 (file)
@@ -3,7 +3,8 @@
 #include "rk356x-u-boot.dtsi"
 
 &fspi_dual_io_pins {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &sdhci {
 };
 
 &sfc {
-       bootph-pre-ram;
-       u-boot,spl-sfc-no-dma;
-
        flash@0 {
                bootph-pre-ram;
+               bootph-some-ram;
        };
 };
index 5b823fcca5fbf8c71430b704e06b952d941780f5..9d18f5d0b364eff56522e829446a3e080d841166 100644 (file)
 };
 
 &sfc {
-       bootph-pre-ram;
-       u-boot,spl-sfc-no-dma;
        #address-cells = <1>;
        #size-cells = <0>;
        status = "okay";
 
        flash@0 {
-               bootph-pre-ram;
                compatible = "jedec,spi-nor";
                reg = <0>;
+               bootph-pre-ram;
+               bootph-some-ram;
                spi-max-frequency = <24000000>;
                spi-rx-bus-width = <4>;
                spi-tx-bus-width = <1>;
index 8ac10f1698f633d9be923527c35ee06b4babf480..0a0943b462a90826a05b3539bd19f77abf169944 100644 (file)
 };
 
 &emmc_bus8 {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &emmc_clk {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &emmc_cmd {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &emmc_datastrobe {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &emmc_rstnout {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &fspi_pins {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &grf {
        bootph-all;
 };
 
-&i2c0_xfer {
-       bootph-all;
-};
-
 &pcfg_pull_none {
        bootph-all;
 };
 
 &pcfg_pull_none_smt {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &pcfg_pull_up {
 };
 
 &pcfg_pull_up_drv_level_2 {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &pinctrl {
 
 &sdhci {
        bootph-pre-ram;
+       bootph-some-ram;
        max-frequency = <200000000>;
 };
 
 &sdmmc0 {
        bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &sdmmc0_bus4 {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &sdmmc0_clk {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &sdmmc0_cmd {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &sdmmc0_det {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
 };
 
 &sdmmc0_pwren {
-       bootph-all;
+       bootph-pre-ram;
+       bootph-some-ram;
+};
+
+&sfc {
+       u-boot,spl-sfc-no-dma;
 };
 
 &uart2 {
-       bootph-pre-ram;
+       bootph-all;
        clock-frequency = <24000000>;
 };