Skip to contentSkip to conversation

ARM: dts: mmp2-olpc-xo-1-75: add back #address-cells

PATCH New Arnd Bergmann 1 participant 1 message Dec 3, 2020 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: mmp2-olpc-xo-1-75: add back #address-cells

From: Arnd Bergmann <[email protected]>

A previous fix tried to address a dtc warning, but added a different one in the process:

arch/arm/boot/dts/mmp2.dtsi:472.23-480.6: Warning (spi_bus_bridge): /soc/apb@d4000000/spi@d4037000: incorrect #address-cells for SPI bus
also defined at arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts:225.7-237.3
arch/arm/boot/dts/mmp2.dtsi:472.23-480.6: Warning (spi_bus_bridge): /soc/apb@d4000000/spi@d4037000: incorrect #size-cells for SPI bus
also defined at arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts:225.7-237.3
arch/arm/boot/dts/mmp2-olpc-xo-1-75.dt.yaml: Warning (spi_bus_reg): Failed prerequisite 'spi_bus_bridge'

Add back the two properties, but use the correct value <0> for an spi slave node.

Fixes f45200b67ea3 ("ARM: dts: mmp2-olpc-xo-1-75: Delete #address-cells from ssp3")
---
 arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/boot/dts/mmp2-olpc-xo-1-75.dts +1 -2
index adde62d6fce7..342304f5653a 100644
@@ -223,8 +223,7 @@ accelerometer@1d {
 };
 
 &ssp3 {
-	/delete-property/ #address-cells;
-	/delete-property/ #size-cells;
+	#address-cells = <0>;
 	spi-slave;
 	status = "okay";
 	ready-gpios = <&gpio 125 GPIO_ACTIVE_HIGH>;
Signature · 1 line
2.27.0