Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: ls1021a-tsn: Use interrupts for the SGMII PHYs

On the LS1021A-TSN board, the 2 Atheros AR8031 PHYs for eth0 and eth1
have interrupt lines connected to the shared IRQ2_B LS1021A pin.

Switching to interrupts offloads the PHY library from the task of
polling the MDIO status and AN registers (1, 4, 5) every second.

Unfortunately, the BCM5464R quad PHY connected to the switch does not
appear to have an interrupt line routed to the SoC.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Vladimir Oltean and committed by
Shawn Guo
0840a47e d27f9d63

+4
+4
arch/arm/boot/dts/ls1021a-tsn.dts
··· 203 203 /* AR8031 */ 204 204 sgmii_phy1: ethernet-phy@1 { 205 205 reg = <0x1>; 206 + /* SGMII1_PHY_INT_B: connected to IRQ2, active low */ 207 + interrupts-extended = <&extirq 2 IRQ_TYPE_LEVEL_LOW>; 206 208 }; 207 209 208 210 /* AR8031 */ 209 211 sgmii_phy2: ethernet-phy@2 { 210 212 reg = <0x2>; 213 + /* SGMII2_PHY_INT_B: connected to IRQ2, active low */ 214 + interrupts-extended = <&extirq 2 IRQ_TYPE_LEVEL_LOW>; 211 215 }; 212 216 213 217 /* BCM5464 quad PHY */