]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: dts: imx7d-zii-rmu2: fix rgmii phy-mode for ksz9031 phy
authorChris Healy <cphealy@gmail.com>
Sun, 23 Aug 2020 02:25:05 +0000 (19:25 -0700)
committerShawn Guo <shawnguo@kernel.org>
Mon, 24 Aug 2020 12:43:31 +0000 (20:43 +0800)
Since commit 7d105884856a ("net: phy: micrel: add phy-mode support for the
KSZ9031 PHY") the networking is broken on the imx7d-zii-rmu2 board.

The end result is that network receive behaviour is marginal with lots of
RX CRC errors experienced and NFS frequently failing.

Quoting the explanation from Andrew Lunn in commit 6484489d55cc4
("ARM: dts: imx: Fix the AR803X phy-mode"):

"The problem here is, all the DTs were broken since day 0. However,
because the PHY driver was also broken, nobody noticed and it
worked. Now that the PHY driver has been fixed, all the bugs in the
DTs now become an issue"

Fix it by switching to phy-mode = "rgmii-id".

Fixes: 7d105884856a ("net: phy: micrel: add phy-mode support for the KSZ9031 PHY")
Signed-off-by: Chris Healy <cphealy@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7d-zii-rmu2.dts

index e5e20b07f184b320e3c3e2aea2d9428d81ac1eb6..7cb6153fc650b129abb7436c918b5b4db175e5e0 100644 (file)
@@ -58,7 +58,7 @@
                          <&clks IMX7D_ENET1_TIME_ROOT_CLK>;
        assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>;
        assigned-clock-rates = <0>, <100000000>;
-       phy-mode = "rgmii";
+       phy-mode = "rgmii-id";
        phy-handle = <&fec1_phy>;
        status = "okay";