ARM: dts: sun7i: a20: bananapro: Fix ethernet phy-mode
authorHermann Lauer <Hermann.Lauer@uni-heidelberg.de>
Thu, 28 Jan 2021 11:18:42 +0000 (12:18 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 3 Feb 2021 10:09:05 +0000 (11:09 +0100)
BPi Pro needs TX and RX delay for Gbit to work reliable and avoid high
packet loss rates. The realtek phy driver overrides the settings of the
pull ups for the delays, so fix this for BananaPro.

Fix the phy-mode description to correctly reflect this so that the
implementation doesn't reconfigure the delays incorrectly. This
happened with commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e
rx/tx delay config").

Fixes: 10662a33dcd9 ("ARM: dts: sun7i: Add dts file for Bananapro board")
Signed-off-by: Hermann Lauer <Hermann.Lauer@uni-heidelberg.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20210128111842.GA11919@lemon.iwr.uni-heidelberg.de
arch/arm/boot/dts/sun7i-a20-bananapro.dts

index 01ccff756996d83ac7d843f6fe61d7dcab5bad37..5740f9442705c47acd39883e57a0dca6efb1acd6 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&gmac_rgmii_pins>;
        phy-handle = <&phy1>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        phy-supply = <&reg_gmac_3v3>;
        status = "okay";
 };