Skip to contentSkip to conversation

ARM: dts: da850-lcdk: Update DTS files for SPL device tree support

PATCH New Adam Ford 3 participants 3 messages Nov 13, 2019 – Jan 20, 2020 Arm (32-bit)

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 ARM: dts: da850-lcdk: Update DTS files for SPL device tree support

Currently, the da850-lcdk uses SPL_OF_PLATDATA and manually loads the necessary source code instead of using the auto-generated, because the drivers don't properly autogenerate the code.

This patch simply enables the various device tree options to mimic the da850-evm which doesn't need or use OF_PLATDATA for device tree support. It does not disable OF_PLATDATA.

arch/arm/dts/da850-lcdk-u-boot.dtsi +14 -0
index 541f4ca200..b372d06ca9 100644
@@ -8,9 +8,23 @@
 / {
 	aliases {
 		i2c0 = &i2c0;
+		mmc0 = &mmc0;
+		serial2 = &serial2;
+	};
+
+	soc at 1c00000 {
+		u-boot,dm-spl;
 	};
 
 	nand {
 		compatible = "ti,davinci-nand";
 	};
 };
+
+&mmc0 {
+	u-boot,dm-spl;
+};
+
+&serial2 {
+	u-boot,dm-spl;
+};
arch/arm/dts/da850-lcdk.dts +1 -1
index 0177e3ed20..db8ae566f3 100644
@@ -18,7 +18,7 @@
 	};
 
 	chosen {
-		stdout-path = "serial2:115200n8";
+		stdout-path = &serial2;
 	};
 
 	memory at c0000000 {
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 ARM: dts: da850-lcdk: Update DTS files for SPL device tree support

śr., 13 lis 2019 o 16:46 Adam Ford <[email protected]> napisał(a):

Quoted 53 lines

Currently, the da850-lcdk uses SPL_OF_PLATDATA and manually loads the necessary source code instead of using the auto-generated, because the drivers don't properly autogenerate the code.

This patch simply enables the various device tree options to mimic the da850-evm which doesn't need or use OF_PLATDATA for device tree support. It does not disable OF_PLATDATA.

arch/arm/dts/da850-lcdk-u-boot.dtsi +14 -0
index 541f4ca200..b372d06ca9 100644
@@ -8,9 +8,23 @@
 / {
        aliases {
                i2c0 = &i2c0;
+               mmc0 = &mmc0;
+               serial2 = &serial2;
+       };
+
+       soc at 1c00000 {
+               u-boot,dm-spl;
        };
 
        nand {
                compatible = "ti,davinci-nand";
        };
 };
+
+&mmc0 {
+       u-boot,dm-spl;
+};
+
+&serial2 {
+       u-boot,dm-spl;
+};
arch/arm/dts/da850-lcdk.dts +1 -2
index 0177e3ed20..db8ae566f3 100644
@@ -18,7 +18,7 @@
        };
 
        chosen {
-               stdout-path = "serial2:115200n8";
+               stdout-path = &serial2;
        };
 
        memory at c0000000 {
--
Quoted 2 lines

2.20.1

Hi Adam,

the generated platdata has wrong driver names. I'm not sure how these are generated but at first glance it looks like the compatible string is transformed by converting commas and hyphens into underscores. This of course won't work as the real driver names are different and the lookup fails (with your patch - if I remove the serial U_BOOT_DEVICE() from the board file, the serial stops working). Are you aware of how other SPL users handle this?

Bart

#2 lore raw

PATCH 1/1 ARM: dts: da850-lcdk: Update DTS files for SPL device tree support

In reply to Adam Ford
Quoted 9 lines · Adam Ford

Currently, the da850-lcdk uses SPL_OF_PLATDATA and manually loads the necessary source code instead of using the auto-generated, because the drivers don't properly autogenerate the code.

This patch simply enables the various device tree options to mimic the da850-evm which doesn't need or use OF_PLATDATA for device tree support. It does not disable OF_PLATDATA.

Merged into u-boot-ti.

Thanks and regards,
Lokesh