Skip to content

Commit 33c01ff

Browse files
mwalleclaudiubeznea
authored andcommitted
ARM: dts: lan966x: kontron-d10: add PHY interrupts
With interrupt handling fixed in the MaxLinear PHY driver, see commit 97a89ed ("net: phy: mxl-gpy: disable interrupts on GPY215 by default"), we can finally add the correct interrupt description to the device tree. Signed-off-by: Michael Walle <mwalle@kernel.org> Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20230616-feature-d10-dt-cleanups-v1-3-50dd0452b8fe@kernel.org
1 parent fcb79ee commit 33c01ff

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt-8g.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
&mdio0 {
1616
phy2: ethernet-phy@3 {
1717
reg = <3>;
18+
interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>;
1819
};
1920

2021
phy3: ethernet-phy@4 {
2122
reg = <4>;
23+
interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>;
2224
};
2325
};
2426

arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
};
5050

5151
&gpio {
52+
pinctrl-0 = <&phy_int_pins>;
53+
pinctrl-names = "default";
54+
5255
fc3_b_pins: fc3-b-pins {
5356
/* SCK, MISO, MOSI */
5457
pins = "GPIO_51", "GPIO_52", "GPIO_53";
@@ -61,6 +64,12 @@
6164
function = "miim_c";
6265
};
6366

67+
phy_int_pins: phy-int-pins {
68+
/* PHY_INT# */
69+
pins = "GPIO_24";
70+
function = "gpio";
71+
};
72+
6473
reset_pins: reset-pins {
6574
/* SYS_RST# */
6675
pins = "GPIO_56";
@@ -107,21 +116,25 @@
107116

108117
phy4: ethernet-phy@5 {
109118
reg = <5>;
119+
interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>;
110120
coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>;
111121
};
112122

113123
phy5: ethernet-phy@6 {
114124
reg = <6>;
125+
interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>;
115126
coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>;
116127
};
117128

118129
phy6: ethernet-phy@7 {
119130
reg = <7>;
131+
interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>;
120132
coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>;
121133
};
122134

123135
phy7: ethernet-phy@8 {
124136
reg = <8>;
137+
interrupts-extended = <&gpio 24 IRQ_TYPE_LEVEL_LOW>;
125138
coma-mode-gpios = <&gpio 37 GPIO_OPEN_DRAIN>;
126139
};
127140
};

0 commit comments

Comments
 (0)