[openwrt/openwrt] ramips: mt7621: mikrotik 760igs (hEX S) fix SFP

LEDE Commits lede-commits at lists.infradead.org
Mon Dec 5 16:48:48 PST 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/7ea965b57803ceec20222279377e611652ac217f

commit 7ea965b57803ceec20222279377e611652ac217f
Author: John Thomson <git at johnthomson.fastmail.com.au>
AuthorDate: Thu Nov 10 09:55:11 2022 +1000

    ramips: mt7621: mikrotik 760igs (hEX S) fix SFP
    
    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 at gmail.com>
    Reviewed-by: Arınç ÜNAL <arinc.unal at arinc9.com>
    Signed-off-by: John Thomson <git at johnthomson.fastmail.com.au>
---
 target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts
index ed0b4e52cf..8b88cfe0a3 100644
--- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts
+++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-760igs.dts
@@ -49,6 +49,7 @@
 	status = "okay";
 
 	label = "sfp";
+	phy-mode = "rgmii-rxid";
 	phy-handle = <&ephy7>;
 };
 




More information about the lede-commits mailing list