ARM: dts: sun7i: Fix A20-OLinuXino-MICRO dts for LAN8710
authorStefan Mavrodiev <stefan@olimex.com>
Mon, 28 Aug 2017 06:32:42 +0000 (09:32 +0300)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 17 Sep 2017 10:04:27 +0000 (12:04 +0200)
From revision J the board uses new phy chip LAN8710. Compared
with RTL8201, RA17 pin is TXERR. It has pullup which causes phy
not to work. To fix this PA17 is muxed with GMAC function. This
makes the pin output-low.

This patch is compatible with earlier board revisions, since this
pin wasn't connected to phy.

Signed-off-by: Stefan Mavrodiev <stefan@olimex.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts

index a351ac7db3888afd22b69e19628f9537e8202247..fc9c5db52cd70b5ddb820e224c00e294c843d2b9 100644 (file)
 
 &gmac {
        pinctrl-names = "default";
-       pinctrl-0 = <&gmac_pins_mii_a>;
+       pinctrl-0 = <&gmac_pins_mii_a>, <&gmac_txerr>;
        phy = <&phy1>;
        phy-mode = "mii";
        status = "okay";
 };
 
 &pio {
+       gmac_txerr: gmac_txerr@0 {
+               pins = "PA17";
+               function = "gmac";
+       };
+
        mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 {
                pins = "PH11";
                function = "gpio_in";