Skip to content

Commit 0052311

Browse files
xdarklightkhilman
authored andcommitted
ARM: dts: meson: Switch existing boards with RGMII PHY to "rgmii-id"
Let the PHY generate the RX and TX delay on the Odroid-C1 and MXIII Plus. Previously we did not know that these boards used an RX delay. We assumed that setting the TX delay on the MAC side It turns out that these boards also require an RX delay of 2ns (verified on Odroid-C1, but the u-boot code uses the same setup on both boards). Ethernet only worked because u-boot added this RX delay on the MAC side. The 4ns TX delay was also wrong and the result of using an unsupported RGMII TX clock divider setting. This has been fixed in the driver with commit bd6f485 ("net: stmmac: dwmac-meson8b: Fix the RGMII TX delay on Meson8b/8m2 SoCs"). Switch to phy-mode "rgmii-id" to let the PHY side handle all the delays, (as recommended by the Ethernet maintainers anyways) to correctly describe the need for a 2ns RX as well as 2ns TX delay on these boards. This fixes the Ethernet performance on Odroid-C1 where there was a huge amount of packet loss when transmitting data due to the incorrect TX delay. Signed-off-by: Martin Blumenstingl <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b632506 commit 0052311

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

arch/arm/boot/dts/meson8b-odroidc1.dts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,8 @@
202202
pinctrl-0 = <&eth_rgmii_pins>;
203203
pinctrl-names = "default";
204204

205-
phy-mode = "rgmii";
206205
phy-handle = <&eth_phy>;
207-
amlogic,tx-delay-ns = <4>;
206+
phy-mode = "rgmii-id";
208207

209208
nvmem-cells = <&ethernet_mac_address>;
210209
nvmem-cell-names = "mac-address";

arch/arm/boot/dts/meson8m2-mxiii-plus.dts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@
6969
pinctrl-names = "default";
7070

7171
phy-handle = <&eth_phy0>;
72-
phy-mode = "rgmii";
73-
74-
amlogic,tx-delay-ns = <4>;
72+
phy-mode = "rgmii-id";
7573

7674
mdio {
7775
compatible = "snps,dwmac-mdio";

0 commit comments

Comments
 (0)