ARM: dts: at91: sama5d4 xplained: properly mux phy interrupt
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 15 Jan 2016 08:30:18 +0000 (09:30 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 27 Jan 2016 10:14:24 +0000 (11:14 +0100)
No interrupt were received from the phy because PIOE 1 may not be properly
muxed. It prevented proper link detection, especially since commit
321beec5047a ("net: phy: Use interrupts when available in NOLINK state")
disables polling.

Cc: <stable@vger.kernel.org> # 4.4
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/boot/dts/at91-sama5d4_xplained.dts

index 131614f28e758653e34cc2b993bb6a5a28f20bbb..8cf9999cb0cd1d2080f5e5be106206a4e2c79e3f 100644 (file)
@@ -86,6 +86,8 @@
                        macb0: ethernet@f8020000 {
                                phy-mode = "rmii";
                                status = "okay";
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq>;
 
                                phy0: ethernet-phy@1 {
                                        interrupt-parent = <&pioE>;
                                                atmel,pins =
                                                        <AT91_PIOE 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
                                        };
+                                       pinctrl_macb0_phy_irq: macb0_phy_irq_0 {
+                                               atmel,pins =
+                                                       <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
+                                       };
                                };
                        };
                };