[PATCH v2 4/9] am335x-evm: Enable required dtb nodes in SPL

Paul Barker paul.barker at sancloud.com
Mon Nov 14 13:42:38 CET 2022


For successful boot when CONFIG_SPL_OF_CONTROL=y, we need to ensure that
the board EEPROM on i2c0, the uart0 serial port and the relevant boot
device (mmc1 or mmc2) can be accessed in the SPL. We also need to
preserve the parent nodes for each required dtb node.

Signed-off-by: Paul Barker <paul.barker at sancloud.com>
---
 arch/arm/dts/am335x-evm-u-boot.dtsi | 30 +++++++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/arch/arm/dts/am335x-evm-u-boot.dtsi b/arch/arm/dts/am335x-evm-u-boot.dtsi
index 4cf5f9928d58..8fc65df2ef9b 100644
--- a/arch/arm/dts/am335x-evm-u-boot.dtsi
+++ b/arch/arm/dts/am335x-evm-u-boot.dtsi
@@ -6,9 +6,9 @@
 #include "am33xx-u-boot.dtsi"
 
 &l4_per {
-
+	u-boot,dm-pre-reloc;
 	segment at 300000 {
-
+		u-boot,dm-pre-reloc;
 		target-module at e000 {
 			u-boot,dm-pre-reloc;
 
@@ -26,3 +26,29 @@
 &usb0 {
 	dr_mode = "peripheral";
 };
+
+&i2c0 {
+	u-boot,dm-pre-reloc;
+};
+
+&l4_wkup {
+	u-boot,dm-pre-reloc;
+	segment at 200000 {
+		u-boot,dm-pre-reloc;
+		target-module at 9000 {
+			u-boot,dm-pre-reloc;
+		};
+	};
+};
+
+&uart0 {
+	u-boot,dm-pre-reloc;
+};
+
+&mmc1 {
+	u-boot,dm-pre-reloc;
+};
+
+&mmc2 {
+	u-boot,dm-pre-reloc;
+};
-- 
2.25.1



More information about the U-Boot mailing list