Skip to contentSkip to conversation

ARM: dts: sun8i: h3: orangepi-plus: Fix ethernet phy-mode

PATCH Applied Salvatore Bonaccorso 2 participants 4 messages May 24, 2021 – Jul 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: sun8i: h3: orangepi-plus: Fix ethernet phy-mode

Commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config") sets the RX/TX delay according to the phy-mode property in the device tree. For the Orange Pi Plus board this is "rgmii", which is the wrong setting.

Following the example of a900cac3750b ("ARM: dts: sun7i: a20: bananapro:
Fix ethernet phy-mode") the phy-mode is changed to "rgmii-id" which gets the Ethernet working again on this board.

Fixes bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config")

---

v2:
- Add a Reported-by for "B.R. Oake" <[email protected]>

---
 arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts +1 -1
index 97f497854e05..d05fa679dcd3 100644
@@ -85,7 +85,7 @@ &emac {
 	pinctrl-0 = <&emac_rgmii_pins>;
 	phy-supply = <&reg_gmac_3v3>;
 	phy-handle = <&ext_rgmii_phy>;
-	phy-mode = "rgmii";
+	phy-mode = "rgmii-id";
 
 	status = "okay";
 };
Signature · 1 line
2.32.0.rc0
#1 lore raw
Quoted 9 lines · Salvatore Bonaccorso

Commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config") sets the RX/TX delay according to the phy-mode property in the device tree. For the Orange Pi Plus board this is "rgmii", which is the wrong setting.

Following the example of a900cac3750b ("ARM: dts: sun7i: a20: bananapro:
Fix ethernet phy-mode") the phy-mode is changed to "rgmii-id" which gets the Ethernet working again on this board.

Quoted 5 lines
Fixes bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config")

Applied, thanks!
Maxime

#2 lore raw

Hi Maxime,

Quoted 10 lines · Maxime Ripard
Quoted 9 lines · Salvatore Bonaccorso

Commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config") sets the RX/TX delay according to the phy-mode property in the device tree. For the Orange Pi Plus board this is "rgmii", which is the wrong setting.

Following the example of a900cac3750b ("ARM: dts: sun7i: a20: bananapro:
Fix ethernet phy-mode") the phy-mode is changed to "rgmii-id" which gets the Ethernet working again on this board.

Quoted 7 lines
Quoted 5 lines
Fixes bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config")

Applied, thanks!

Did this fall trough the cracks?

I see it in
https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/commit/?id=b19d3479f25e8a0ff24df0b46c82e50ef0f900dd
but got not merged yet in mainline.

Thank you for your work!

Regards,
Salvatore

#3 lore raw

Hi Salvatore,

Quoted 19 lines · Salvatore Bonaccorso

Hi Maxime,

Quoted 16 lines · Maxime Ripard
Quoted 14 lines · Salvatore Bonaccorso

Commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config") sets the RX/TX delay according to the phy-mode property in the device tree. For the Orange Pi Plus board this is "rgmii", which is the wrong setting.

Following the example of a900cac3750b ("ARM: dts: sun7i: a20: bananapro:
Fix ethernet phy-mode") the phy-mode is changed to "rgmii-id" which gets the Ethernet working again on this board.

Fixes bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx delay config")
Quoted 7 lines
Quoted 1 line

Applied, thanks!

Did this fall trough the cracks?

I see it in
https://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git/commit/?id=b19d3479f25e8a0ff24df0b46c82e50ef0f900dd
but got not merged yet in mainline.

I'm not really sure what happened, but I did send it as part of a fix PR here:

https://lore.kernel.org/linux-arm-kernel/ad7ba352-315c-4201-b922-4bf914a00d98.lettre@localhost/

But it was sent as part of one of the arm-soc PR for 5.14:

https://lore.kernel.org/linux-arm-kernel/[email protected]/

I'm not sure if it didn't get applied to the right branch, but it doesn't seem to be part of the proper PR either.

Anyway, this is on its way to Linus, will be part of 5.14 and picked up by the stable tree at some point in a 5.13.* kernel

Maxime