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

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

The Ethernet PHY on the Cubieboard 4 and A80 Optimus 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: 98048143b7f8 ("ARM: dts: sun9i: cubieboard4: Enable GMAC")
Fixes: bc9bd03a44f9 ("ARM: dts: sun9i: a80-optimus: Enable GMAC")
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-7-wens@kernel.org

authored by

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

+2 -2
+1 -1
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts
··· 129 129 pinctrl-names = "default"; 130 130 pinctrl-0 = <&gmac_rgmii_pins>; 131 131 phy-handle = <&phy1>; 132 - phy-mode = "rgmii"; 132 + phy-mode = "rgmii-id"; 133 133 phy-supply = <&reg_cldo1>; 134 134 status = "okay"; 135 135 };
+1 -1
arch/arm/boot/dts/sun9i-a80-optimus.dts
··· 124 124 pinctrl-names = "default"; 125 125 pinctrl-0 = <&gmac_rgmii_pins>; 126 126 phy-handle = <&phy1>; 127 - phy-mode = "rgmii"; 127 + phy-mode = "rgmii-id"; 128 128 phy-supply = <&reg_cldo1>; 129 129 status = "okay"; 130 130 };