Skip to contentSkip to conversation

arm: mvebu: armada-xp-gp.dts: Add spi0 alias

PATCH New Stefan Roese 2 participants 2 messages Dec 11, 2020 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mvebu: armada-xp-gp.dts: Add spi0 alias

For correct spi bus detection the spi0 alias is needed in the DT. Otherwise this error will ocurr in U-Boot:

Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)

Cc Dennis Gilmore <[email protected]>
---
 arch/arm/dts/armada-xp-gp.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/dts/armada-xp-gp.dts +4 -0
index 1139e9469a..d46475fe22 100644
@@ -31,6 +31,10 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	aliases {
+		spi0 = &spi0;
+	};
+
 	memory at 0 {
 		device_type = "memory";
 		/*
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 arm: mvebu: armada-xp-gp.dts: Add spi0 alias

Quoted 28 lines · Stefan Roese

For correct spi bus detection the spi0 alias is needed in the DT. Otherwise this error will ocurr in U-Boot:

Invalid bus 0 (err=-19)
Failed to initialize SPI flash at 0:0 (error -19)

Cc Dennis Gilmore <[email protected]>

---
?arch/arm/dts/armada-xp-gp.dts | 4 ++++
?1 file changed, 4 insertions(+)

arch/arm/dts/armada-xp- renamed from arch/arm/dts/armada-xp-gp.dts +0 -0

gp.dts
index 1139e9469a..d46475fe22 100644

arch/arm/dts/armada-xp-gp.dts +0 -0
@@ -31,6 +31,10 @@
 ????????????????stdout-path = "serial0:115200n8";
 ????????};

?
+???????aliases {
+???????????????spi0 = &spi0;
+???????};
+
????????memory at 0 {
????????????????device_type = "memory";
????????????????/*