aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-08-26 11:38:54 -0400
committerGregory CLEMENT <gregory.clement@free-electrons.com>2016-08-29 05:26:11 -0400
commita305cc2fce217510dd255356d783e2c01cbc3a8f (patch)
treedfaa9b614432d6b8c32a692815eed6f185ae9a1b
parent4c0437d03519c0e32ee3aceda63a7087c9bc1022 (diff)
ARM: dts: mvebu: fix reference to a390 spi controller
The SPI controller in the arch/arm/boot/dts/armada-39x.dtsi file has moved to a different location in the hierarchy, which breaks the overrides in the board specific file: Warning (reg_format): "reg" property in /soc/internal-regs/spi@10680/spi-flash@1 has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Warning (avoid_default_addr_size): Relying on default #address-cells value for /soc/internal-regs/spi@10680/spi-flash@1 This changes the board to reference the spi controller by its label (which has not changed) rather than the full path. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Fixes: 0160a4b68987 ("ARM: dts: mvebu: A37x/XP/38x/39x: Move SPI controller nodes into 'soc' node") Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/armada-390-db.dts60
1 files changed, 30 insertions, 30 deletions
diff --git a/arch/arm/boot/dts/armada-390-db.dts b/arch/arm/boot/dts/armada-390-db.dts
index 9d0d9b2e9bfc..34e279d973c8 100644
--- a/arch/arm/boot/dts/armada-390-db.dts
+++ b/arch/arm/boot/dts/armada-390-db.dts
@@ -66,36 +66,6 @@
66 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>; 66 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>;
67 67
68 internal-regs { 68 internal-regs {
69 spi@10680 {
70 status = "okay";
71 pinctrl-0 = <&spi1_pins>;
72 pinctrl-names = "default";
73
74 spi-flash@1 {
75 #address-cells = <1>;
76 #size-cells = <1>;
77 compatible = "n25q128a13",
78 "jedec,spi-nor";
79 reg = <0>; /* Chip select 0 */
80 spi-max-frequency = <108000000>;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 label = "U-Boot";
89 reg = <0 0x400000>;
90 };
91 partition@400000 {
92 label = "Filesystem";
93 reg = <0x400000 0xc00000>;
94 };
95 };
96 };
97 };
98
99 i2c@11000 { 69 i2c@11000 {
100 status = "okay"; 70 status = "okay";
101 clock-frequency = <100000>; 71 clock-frequency = <100000>;
@@ -173,3 +143,33 @@
173 }; 143 };
174 }; 144 };
175}; 145};
146
147&spi1 {
148 status = "okay";
149 pinctrl-0 = <&spi1_pins>;
150 pinctrl-names = "default";
151
152 spi-flash@1 {
153 #address-cells = <1>;
154 #size-cells = <1>;
155 compatible = "n25q128a13",
156 "jedec,spi-nor";
157 reg = <0>; /* Chip select 0 */
158 spi-max-frequency = <108000000>;
159
160 partitions {
161 compatible = "fixed-partitions";
162 #address-cells = <1>;
163 #size-cells = <1>;
164
165 partition@0 {
166 label = "U-Boot";
167 reg = <0 0x400000>;
168 };
169 partition@400000 {
170 label = "Filesystem";
171 reg = <0x400000 0xc00000>;
172 };
173 };
174 };
175};