Skip to contentSkip to conversation

ARM: dts: sun7i: lamobo-r1: Fix CPU port RGMII settings

PATCH Applied Florian Fainelli 3 participants 3 messages Mar 19, 2017 – Mar 20, 2017

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

PATCH 1/1 ARM: dts: sun7i: lamobo-r1: Fix CPU port RGMII settings

The CPU port of the BCM53125 is configured with RGMII (no delays) but this should actually be RGMII with transmit delay (rgmii-txid) because STMMAC takes care of inserting the transmitter delay. This fixes occasional packet loss encountered.

Fixes d7b9eaff5f0c ("ARM: dts: sun7i: Add BCM53125 switch nodes to the lamobo-r1 board")
---
 arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts +1 -1
index 72ec0d5ae052..bbf1c8cbaac6 100644
@@ -167,7 +167,7 @@
 					reg = <8>;
 					label = "cpu";
 					ethernet = <&gmac>;
-					phy-mode = "rgmii";
+					phy-mode = "rgmii-txid";
 					fixed-link {
 						speed = <1000>;
 						full-duplex;
Signature · 1 line
2.9.3
#1 lore raw

Hi Florian,

Quoted 8 lines · Florian Fainelli

The CPU port of the BCM53125 is configured with RGMII (no delays) but this should actually be RGMII with transmit delay (rgmii-txid) because STMMAC takes care of inserting the transmitter delay. This fixes occasional packet loss encountered.

Fixes d7b9eaff5f0c ("ARM: dts: sun7i: Add BCM53125 switch nodes to the lamobo-r1 board")

Applied, thanks!
Maxime

Signature · 10 lines
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170320/59cf06e2/attachment.sig>
#2 lore raw

Hi,

Quoted 8 lines · Maxime Ripard

Hi Florian,

Quoted 5 lines · Florian Fainelli

The CPU port of the BCM53125 is configured with RGMII (no delays) but this should actually be RGMII with transmit delay (rgmii-txid) because STMMAC takes care of inserting the transmitter delay. This fixes occasional packet loss encountered.

Quoted 6 lines
Quoted 3 lines
Fixes d7b9eaff5f0c ("ARM: dts: sun7i: Add BCM53125 switch nodes to the lamobo-r1 board")

Applied, thanks!
Maxime

I'm not sure dwmac-sunxi supports "rgmii-txid" though. At least I don't remember implementing it.

ChenYu