arm: mvebu: Introduce mvebu-u-boot.dtsi for 32-bit Armada SoCs
authorPali Rohár <pali@kernel.org>
Wed, 3 Aug 2022 11:00:50 +0000 (13:00 +0200)
committerStefan Roese <sr@denx.de>
Tue, 9 Aug 2022 06:58:26 +0000 (08:58 +0200)
Set u-boot,dm-pre-reloc for /soc/, /soc/internal-regs/ and &uart0 nodes as
it is required on every 32-bit Armada SoCs. And set also u-boot,dm-pre-reloc
for &spi0 when going to boot from SPI because otherwise SPL SPI drivers do
not load.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Tested-by: Stefan Roese <sr@denx.de>
arch/arm/dts/mvebu-u-boot.dtsi [new file with mode: 0644]

diff --git a/arch/arm/dts/mvebu-u-boot.dtsi b/arch/arm/dts/mvebu-u-boot.dtsi
new file mode 100644 (file)
index 0000000..5538f95
--- /dev/null
@@ -0,0 +1,24 @@
+#include <config.h>
+
+#ifdef CONFIG_ARMADA_32BIT
+
+/ {
+       soc {
+               u-boot,dm-pre-reloc;
+               internal-regs {
+                       u-boot,dm-pre-reloc;
+               };
+       };
+};
+
+&uart0 {
+       u-boot,dm-pre-reloc;
+};
+
+#ifdef CONFIG_SPL_SPI
+&spi0 {
+       u-boot,dm-pre-reloc;
+};
+#endif
+
+#endif