Skip to content
Snippets Groups Projects
Commit 675abeb9 authored by Sebastian Reichel's avatar Sebastian Reichel Committed by Shawn Guo
Browse files

ARM: dts: imx6q-bx50v3: Add IRQ support for internal switch


This adds missing interrupt support for the internal Marvell
switch, so that the kernel does not have to keep polling the
PHYs on the bit-banged MDIO bus all the time.

Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent d923d839
No related branches found
No related tags found
No related merge requests found
...@@ -102,10 +102,15 @@ mdio0: mdio-gpio { ...@@ -102,10 +102,15 @@ mdio0: mdio-gpio {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
switch@0 { switch: switch@0 {
compatible = "marvell,mv88e6085"; /* 88e6240*/ compatible = "marvell,mv88e6085"; /* 88e6240*/
reg = <0>; reg = <0>;
interrupt-parent = <&gpio2>;
interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller;
#interrupt-cells = <2>;
switch_ports: ports { switch_ports: ports {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
...@@ -117,22 +122,32 @@ mdio { ...@@ -117,22 +122,32 @@ mdio {
switchphy0: switchphy@0 { switchphy0: switchphy@0 {
reg = <0>; reg = <0>;
interrupt-parent = <&switch>;
interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
}; };
switchphy1: switchphy@1 { switchphy1: switchphy@1 {
reg = <1>; reg = <1>;
interrupt-parent = <&switch>;
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
}; };
switchphy2: switchphy@2 { switchphy2: switchphy@2 {
reg = <2>; reg = <2>;
interrupt-parent = <&switch>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
}; };
switchphy3: switchphy@3 { switchphy3: switchphy@3 {
reg = <3>; reg = <3>;
interrupt-parent = <&switch>;
interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
}; };
switchphy4: switchphy@4 { switchphy4: switchphy@4 {
reg = <4>; reg = <4>;
interrupt-parent = <&switch>;
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
}; };
}; };
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment