Skip to contentSkip to conversation

arm: dts: k3-am625-beagleplay: Fix Boot

PATCH In review Nishanth Menon 3 participants 3 messages Oct 2, 2023 – Oct 5, 2023 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: dts: k3-am625-beagleplay: Fix Boot

Since commit [1] A53 u-boot proper is broken. This is because nodes marked as 'bootph-pre-ram' are not available at u-boot proper before relocation.

To fix this we mark all nodes in u-boot.dtsi as 'bootph-all'.

[1]
9e644284ab812 ("dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation")

---

Based on Roger's series:
https://lore.kernel.org/all/[email protected]/

Based on:
next e29b932aa07f Merge branch '2023-09-30-Kconfig-updates' into next

See discussion thread:
https://lore.kernel.org/all/CAPnjgZ3MgWX8T0A0SofphEr_Xd77pE3hte9DNye1RuBVeB9N8Q@mail.gmail.com/

 arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi | 70 ++++++++++----------
 1 file changed, 35 insertions(+), 35 deletions(-)
arch/arm/dts/k3-am625-beagleplay-u-boot.dtsi +35 -35
index f8c04e8a300a..d6c6baa5518b 100644
@@ -14,143 +14,143 @@
 	};
 
 	memory@80000000 {
-		bootph-pre-ram;
+		bootph-all;
 	};
 
 	/* Keep the LEDs on by default to indicate life */
 	leds {
-		bootph-pre-ram;
+		bootph-all;
 		led-0 {
 			default-state = "on";
-			bootph-pre-ram;
+			bootph-all;
 		};
 
 		led-1 {
 			default-state = "on";
-			bootph-pre-ram;
+			bootph-all;
 		};
 
 		led-2 {
 			default-state = "on";
-			bootph-pre-ram;
+			bootph-all;
 		};
 
 		led-3 {
 			default-state = "on";
-			bootph-pre-ram;
+			bootph-all;
 		};
 
 		led-4 {
 			default-state = "on";
-			bootph-pre-ram;
+			bootph-all;
 		};
 	};
 };
 
 &cbass_main {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &main_timer0 {
 	clock-frequency = <25000000>;
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &dmss {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &secure_proxy_main {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &dmsc {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &k3_pds {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &k3_clks {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &k3_reset {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &dmsc {
-	bootph-pre-ram;
+	bootph-all;
 	k3_sysreset: sysreset-controller {
 		compatible = "ti,sci-sysreset";
-		bootph-pre-ram;
+		bootph-all;
 	};
 };
 
 &wkup_conf {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &chipid {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &main_pmx0 {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &main_uart0 {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &console_pins_default {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &cbass_mcu {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &cbass_wakeup {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &mcu_pmx0 {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &main_i2c0 {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &local_i2c_pins_default {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &gpio0_pins_default {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &main_gpio0 {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &main_gpio1 {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &sdhci0 {
 	/* EMMC */
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &emmc_pins_default {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &sd_pins_default {
-	bootph-pre-ram;
+	bootph-all;
 	/* Force to use SDCD card detect pin */
 	pinctrl-single,pins = <
 		AM62X_IOPAD(0x023c, PIN_INPUT, 0) /* (A21) MMC1_CMD */
@@ -164,11 +164,11 @@
 };
 
 &tps65219 {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 &sdhci1 {
-	bootph-pre-ram;
+	bootph-all;
 };
 
 #ifdef CONFIG_TARGET_AM625_A53_EVM
Signature · 1 line
2.40.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Nishanth Menon

Since commit [1] A53 u-boot proper is broken. This is because nodes marked as 'bootph-pre-ram' are not available at u-boot proper before relocation.

To fix this we mark all nodes in u-boot.dtsi as 'bootph-all'.

[1]
9e644284ab812 ("dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation")

Quoted 11 lines

---

Based on Roger's series:
https://lore.kernel.org/all/[email protected]/

Based on:
next e29b932aa07f Merge branch '2023-09-30-Kconfig-updates' into next

See discussion thread:
https://lore.kernel.org/all/CAPnjgZ3MgWX8T0A0SofphEr_Xd77pE3hte9DNye1RuBVeB9N8Q@mail.gmail.com/

Signature · 2 lines
cheers,
-roger
#2 lore raw
In reply to Nishanth Menon
Quoted 4 lines · Nishanth Menon

Since commit [1] A53 u-boot proper is broken. This is because nodes marked as 'bootph-pre-ram' are not available at u-boot proper before relocation.

Quoted 8 lines

To fix this we mark all nodes in u-boot.dtsi as 'bootph-all'.

[1]
9e644284ab812 ("dm: core: Report bootph-pre-ram/sram node as pre-reloc after relocation")

Applied to u-boot/master, thanks!

Signature · 1 line
Tom