aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2018-02-22 16:58:33 -0500
committerDavid S. Miller <davem@davemloft.net>2018-02-26 11:28:11 -0500
commitf8c193ca1f7d3b69c031970815d14e09de396ee8 (patch)
tree86f5d8d2257aecf04b682028d9851d7fd0c62eb3
parent294d711ee8c04fb2baa704cae15a7d039bb50615 (diff)
arm: mvebu: 370-rd: Enable PHY interrupt handling
The Ethernet switch has an embedded interrupt controller. Interrupts from the embedded PHYs are part of this interrupt controller. Explicitly list the MDIO bus the embedded PHYs are on, and wire up the interrupts. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/arm/boot/dts/armada-370-rd.dts32
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts
index 8b2fa9a49967..c28afb242393 100644
--- a/arch/arm/boot/dts/armada-370-rd.dts
+++ b/arch/arm/boot/dts/armada-370-rd.dts
@@ -56,6 +56,7 @@
56 56
57/dts-v1/; 57/dts-v1/;
58#include <dt-bindings/input/input.h> 58#include <dt-bindings/input/input.h>
59#include <dt-bindings/interrupt-controller/irq.h>
59#include <dt-bindings/gpio/gpio.h> 60#include <dt-bindings/gpio/gpio.h>
60#include "armada-370.dtsi" 61#include "armada-370.dtsi"
61 62
@@ -243,6 +244,8 @@
243 #address-cells = <1>; 244 #address-cells = <1>;
244 #size-cells = <0>; 245 #size-cells = <0>;
245 reg = <0x10>; 246 reg = <0x10>;
247 interrupt-controller;
248 #interrupt-cells = <2>;
246 249
247 ports { 250 ports {
248 #address-cells = <1>; 251 #address-cells = <1>;
@@ -278,6 +281,35 @@
278 }; 281 };
279 }; 282 };
280 }; 283 };
284
285 mdio {
286 #address-cells = <1>;
287 #size-cells = <0>;
288
289 switchphy0: switchphy@0 {
290 reg = <0>;
291 interrupt-parent = <&switch>;
292 interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
293 };
294
295 switchphy1: switchphy@1 {
296 reg = <1>;
297 interrupt-parent = <&switch>;
298 interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
299 };
300
301 switchphy2: switchphy@2 {
302 reg = <2>;
303 interrupt-parent = <&switch>;
304 interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
305 };
306
307 switchphy3: switchphy@3 {
308 reg = <3>;
309 interrupt-parent = <&switch>;
310 interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
311 };
312 };
281 }; 313 };
282}; 314};
283 315