[PATCH 5/9] mips: ar9331: Add missing #address-cells/#size-cells properties

Sascha Hauer s.hauer at pengutronix.de
Thu Jun 5 01:23:40 PDT 2014


SPI nodes need valid #address-cells/#size-cells properties.
Fixes:

Warning (reg_format): "reg" property in /soc/spi at bf000000/m25p80 at 0 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/spi at bf000000/m25p80 at 0
Warning (avoid_default_addr_size): Relying on default #size-cells value for /soc/spi at bf000000/m25p80 at 0

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/mips/dts/ar9331.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/dts/ar9331.dtsi b/arch/mips/dts/ar9331.dtsi
index 9485fbf..8280588 100644
--- a/arch/mips/dts/ar9331.dtsi
+++ b/arch/mips/dts/ar9331.dtsi
@@ -24,6 +24,8 @@
 		};
 
 		spi: spi at bf000000{
+			#address-cells = <1>;
+			#size-cells = <0>;
 			compatible = "qca,ath79-spi";
 			reg = <0xbf000000 0x01000000>;
 			status = "disabled";
-- 
2.0.0.rc2




More information about the barebox mailing list