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

ARM: dts: sun8i: a83t: Enable both RGMII RX/TX delay on Ethernet PHY

The Ethernet PHY on the Bananapi M3 and Cubietruck Plus have the RX
and TX delays enabled on the PHY, using pull-ups on the RXDLY and
TXDLY pins.

Fix the phy-mode description to correct 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: 039359948a4b ("ARM: dts: sun8i: a83t: Enable Ethernet on two boards")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Jernej Skrabec <jernej.skrabec@siol.net>
Link: https://lore.kernel.org/r/20201024162515.30032-6-wens@kernel.org

authored by

Chen-Yu Tsai and committed by
Maxime Ripard
57dbe558 e080ab31

+2 -2
+1 -1
arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts
··· 131 131 pinctrl-0 = <&emac_rgmii_pins>; 132 132 phy-supply = <&reg_sw>; 133 133 phy-handle = <&rgmii_phy>; 134 - phy-mode = "rgmii"; 134 + phy-mode = "rgmii-id"; 135 135 allwinner,rx-delay-ps = <700>; 136 136 allwinner,tx-delay-ps = <700>; 137 137 status = "okay";
+1 -1
arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts
··· 183 183 pinctrl-0 = <&emac_rgmii_pins>; 184 184 phy-supply = <&reg_dldo4>; 185 185 phy-handle = <&rgmii_phy>; 186 - phy-mode = "rgmii"; 186 + phy-mode = "rgmii-id"; 187 187 status = "okay"; 188 188 }; 189 189