diff options
-rw-r--r-- | arch/arm64/boot/dts/marvell/armada-3720-db.dts | 8 | ||||
-rw-r--r-- | arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 73 |
2 files changed, 78 insertions, 3 deletions
diff --git a/arch/arm64/boot/dts/marvell/armada-3720-db.dts b/arch/arm64/boot/dts/marvell/armada-3720-db.dts index cef5f976bc0f..a89855f57091 100644 --- a/arch/arm64/boot/dts/marvell/armada-3720-db.dts +++ b/arch/arm64/boot/dts/marvell/armada-3720-db.dts | |||
@@ -79,6 +79,8 @@ | |||
79 | }; | 79 | }; |
80 | 80 | ||
81 | &i2c0 { | 81 | &i2c0 { |
82 | pinctrl-names = "default"; | ||
83 | pinctrl-0 = <&i2c1_pins>; | ||
82 | status = "okay"; | 84 | status = "okay"; |
83 | 85 | ||
84 | gpio_exp: pca9555@22 { | 86 | gpio_exp: pca9555@22 { |
@@ -113,6 +115,8 @@ | |||
113 | 115 | ||
114 | &spi0 { | 116 | &spi0 { |
115 | status = "okay"; | 117 | status = "okay"; |
118 | pinctrl-names = "default"; | ||
119 | pinctrl-0 = <&spi_quad_pins>; | ||
116 | 120 | ||
117 | m25p80@0 { | 121 | m25p80@0 { |
118 | compatible = "jedec,spi-nor"; | 122 | compatible = "jedec,spi-nor"; |
@@ -143,6 +147,8 @@ | |||
143 | 147 | ||
144 | /* Exported on the micro USB connector CON32 through an FTDI */ | 148 | /* Exported on the micro USB connector CON32 through an FTDI */ |
145 | &uart0 { | 149 | &uart0 { |
150 | pinctrl-names = "default"; | ||
151 | pinctrl-0 = <&uart1_pins>; | ||
146 | status = "okay"; | 152 | status = "okay"; |
147 | }; | 153 | }; |
148 | 154 | ||
@@ -184,6 +190,8 @@ | |||
184 | }; | 190 | }; |
185 | 191 | ||
186 | ð0 { | 192 | ð0 { |
193 | pinctrl-names = "default"; | ||
194 | pinctrl-0 = <&rgmii_pins>; | ||
187 | phy-mode = "rgmii-id"; | 195 | phy-mode = "rgmii-id"; |
188 | phy = <&phy0>; | 196 | phy = <&phy0>; |
189 | status = "okay"; | 197 | status = "okay"; |
diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index 58ae9e095af2..4d495ec39202 100644 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi | |||
@@ -161,16 +161,83 @@ | |||
161 | #clock-cells = <1>; | 161 | #clock-cells = <1>; |
162 | }; | 162 | }; |
163 | 163 | ||
164 | gpio1: gpio@13800 { | 164 | pinctrl_nb: pinctrl@13800 { |
165 | compatible = "marvell,mvebu-gpio-3700", | 165 | compatible = "marvell,armada3710-nb-pinctrl", |
166 | "syscon", "simple-mfd"; | 166 | "syscon", "simple-mfd"; |
167 | reg = <0x13800 0x500>; | 167 | reg = <0x13800 0x100>, <0x13C00 0x20>; |
168 | gpionb: gpio { | ||
169 | #gpio-cells = <2>; | ||
170 | gpio-ranges = <&pinctrl_nb 0 0 36>; | ||
171 | gpio-controller; | ||
172 | interrupts = | ||
173 | <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, | ||
174 | <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, | ||
175 | <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, | ||
176 | <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, | ||
177 | <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, | ||
178 | <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>, | ||
179 | <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, | ||
180 | <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, | ||
181 | <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>, | ||
182 | <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, | ||
183 | <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>, | ||
184 | <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; | ||
185 | |||
186 | }; | ||
168 | 187 | ||
169 | xtalclk: xtal-clk { | 188 | xtalclk: xtal-clk { |
170 | compatible = "marvell,armada-3700-xtal-clock"; | 189 | compatible = "marvell,armada-3700-xtal-clock"; |
171 | clock-output-names = "xtal"; | 190 | clock-output-names = "xtal"; |
172 | #clock-cells = <0>; | 191 | #clock-cells = <0>; |
173 | }; | 192 | }; |
193 | |||
194 | spi_quad_pins: spi-quad-pins { | ||
195 | groups = "spi_quad"; | ||
196 | function = "spi"; | ||
197 | }; | ||
198 | |||
199 | i2c1_pins: i2c1-pins { | ||
200 | groups = "i2c1"; | ||
201 | function = "i2c"; | ||
202 | }; | ||
203 | |||
204 | i2c2_pins: i2c2-pins { | ||
205 | groups = "i2c2"; | ||
206 | function = "i2c"; | ||
207 | }; | ||
208 | |||
209 | uart1_pins: uart1-pins { | ||
210 | groups = "uart1"; | ||
211 | function = "uart"; | ||
212 | }; | ||
213 | |||
214 | uart2_pins: uart2-pins { | ||
215 | groups = "uart2"; | ||
216 | function = "uart"; | ||
217 | }; | ||
218 | }; | ||
219 | |||
220 | pinctrl_sb: pinctrl@18800 { | ||
221 | compatible = "marvell,armada3710-sb-pinctrl", | ||
222 | "syscon", "simple-mfd"; | ||
223 | reg = <0x18800 0x100>, <0x18C00 0x20>; | ||
224 | gpiosb: gpio { | ||
225 | #gpio-cells = <2>; | ||
226 | gpio-ranges = <&pinctrl_sb 0 0 29>; | ||
227 | gpio-controller; | ||
228 | interrupts = | ||
229 | <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, | ||
230 | <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>, | ||
231 | <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>, | ||
232 | <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>, | ||
233 | <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; | ||
234 | }; | ||
235 | |||
236 | rgmii_pins: mii-pins { | ||
237 | groups = "rgmii"; | ||
238 | function = "mii"; | ||
239 | }; | ||
240 | |||
174 | }; | 241 | }; |
175 | 242 | ||
176 | eth0: ethernet@30000 { | 243 | eth0: ethernet@30000 { |