ramips: mt7621: mikrotik 760igs (hEX S) fix SFP
authorJohn Thomson <git@johnthomson.fastmail.com.au>
Wed, 9 Nov 2022 23:55:11 +0000 (09:55 +1000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 2 Apr 2023 20:25:49 +0000 (22:25 +0200)
This device uses an AR8031/AR8033 chip to convert SoC gmac1
RGMII to 1000base-x or sgmii for the SFP fibre cage.
The SFP cage requires phy-mode rgmii-rxid, and without it will not
recieve any packets: ethtool -S sfp rx_fcs_errors will increase when
packets should be being received, but no other _rx counters will change.

Fixes: c77858aa792 ("ramips: mt7621-dts: change phy-mode of gmac1 to rgmii")
Reviewed-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
(cherry picked from commit 7ea965b57803ceec20222279377e611652ac217f)

target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts

index ed0b4e52cf9175803579080bfd2c22174db57fa3..8b88cfe0a31e5e19590b0ecca30bd474031620ec 100644 (file)
@@ -49,6 +49,7 @@
        status = "okay";
 
        label = "sfp";
+       phy-mode = "rgmii-rxid";
        phy-handle = <&ephy7>;
 };