arm64: dts: allwinner: beelink-gs1: Enable both RGMII RX/TX delay
Subsystems (2)
PATCH 1/1 arm64: dts: allwinner: beelink-gs1: Enable both RGMII RX/TX delay
Before the commit:
net: phy: realtek: fix rtl8211e rx/tx delay config
The software overwrite for RX/TX delays of the RTL8211e were not working properly and the Beelink GS1 had both RX/TX delay of RGMII interface set using pull-up on the TXDLY and RXDLY pins.
Now that these delays are working properly they overwrite the HW config and set this to 'rgmii' meaning no delay on both RX/TX. This makes the ethernet of this board not working anymore.
Set the phy-mode to 'rgmii-id' meaning RGMII with RX/TX delays in the device-tree to keep the correct configuration.
--- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +1 -1
@@ -99,7 +99,7 @@ &ehci0 { &emac { pinctrl-names = "default"; pinctrl-0 = <&ext_rgmii_pins>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; phy-handle = <&ext_rgmii_phy>; phy-supply = <®_aldo2>; status = "okay";
Signature · 1 line
2.25.1
Hi,
Quoted 3 lines · Clément Péron
Before the commit:
net: phy: realtek: fix rtl8211e rx/tx delay config
bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config")
With the hash for reference it's better :)
Clement
Quoted 34 lines
The software overwrite for RX/TX delays of the RTL8211e were not working properly and the Beelink GS1 had both RX/TX delay of RGMII interface set using pull-up on the TXDLY and RXDLY pins.
Now that these delays are working properly they overwrite the HW config and set this to 'rgmii' meaning no delay on both RX/TX. This makes the ethernet of this board not working anymore.
Set the phy-mode to 'rgmii-id' meaning RGMII with RX/TX delays in the device-tree to keep the correct configuration.
Fixes 089bee8dd119 ("arm64: dts: allwinner: h6: Introduce Beelink GS1 board")Signed-off-by Clément Péron <[email protected]>--- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +1
-2@@ -99,7 +99,7 @@ &ehci0 { &emac { pinctrl-names = "default"; pinctrl-0 = <&ext_rgmii_pins>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; phy-handle = <&ext_rgmii_phy>; phy-supply = <®_aldo2>; status = "okay"; --2.25.1
Chen-Yu Tsai
Acked-byQuoted 26 lines · Clément Péron
Hi,
Quoted 3 lines · Clément Péron
Before the commit:
net: phy: realtek: fix rtl8211e rx/tx delay config
bbc4d71d6354("net: phy: realtek: fix rtl8211e rx/tx delay config")With the hash for reference it's better :)
ClementQuoted 14 lines
The software overwrite for RX/TX delays of the RTL8211e were not working properly and the Beelink GS1 had both RX/TX delay of RGMII interface set using pull-up on the TXDLY and RXDLY pins.
Now that these delays are working properly they overwrite the HW config and set this to 'rgmii' meaning no delay on both RX/TX. This makes the ethernet of this board not working anymore.
Set the phy-mode to 'rgmii-id' meaning RGMII with RX/TX delays in the device-tree to keep the correct configuration.
Fixes 089bee8dd119 ("arm64: dts: allwinner: h6: Introduce Beelink GS1 board")Signed-off-by Clément Péron <[email protected]>
For reference, the driver fix for dwmac enabling the other RGMII modes
f1239d8aa84d ("net: stmmac: dwmac-sun8i: Allow all RGMII modes")
was merged in v5.5 and was backported to relevant stable kernels.
Quoted 20 lines
Quoted 20 lines
--- arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/allwinner/sun50i-h6-beelink-gs1.dts +1
-2@@ -99,7 +99,7 @@ &ehci0 { &emac { pinctrl-names = "default"; pinctrl-0 = <&ext_rgmii_pins>; - phy-mode = "rgmii"; + phy-mode = "rgmii-id"; phy-handle = <&ext_rgmii_phy>; phy-supply = <®_aldo2>; status = "okay"; --2.25.1
Quoted 11 lines · Clément Péron
Before the commit:
net: phy: realtek: fix rtl8211e rx/tx delay configThe software overwrite for RX/TX delays of the RTL8211e were not working properly and the Beelink GS1 had both RX/TX delay of RGMII interface set using pull-up on the TXDLY and RXDLY pins.
Now that these delays are working properly they overwrite the HW config and set this to 'rgmii' meaning no delay on both RX/TX. This makes the ethernet of this board not working anymore.
Quoted 5 lines
Set the phy-mode to 'rgmii-id' meaning RGMII with RX/TX delays in the device-tree to keep the correct configuration.
Fixes 089bee8dd119 ("arm64: dts: allwinner: h6: Introduce Beelink GS1 board")Signed-off-by Clément Péron <[email protected]>
Fixed the commit ID and queued as a fix for 5.10
Maxime