]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
airoha: use in-band phylink for RTL8261N USXGMII ports in W1700k 23383/head
authorDaniel Pawlik <pawlik.dan@gmail.com>
Fri, 15 May 2026 08:30:26 +0000 (10:30 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 15 May 2026 17:32:47 +0000 (19:32 +0200)
After the standalone Airoha PCS driver and pcs-handle binding, wan (gdm2)
and lan2 (gdm4) netdevs probe but do not pass traffic.

Similar to the Aeonsemi PHY it seems also the RTL PHY needs in-band to the
PCS for USXGMII to work correctly. This still needs to be better
investigated but in the meantime lets apply this workaround to restore
traffic.

Signed-off-by: Daniel Pawlik <pawlik.dan@gmail.com>
[ improve commit description ]
Link: https://github.com/openwrt/openwrt/pull/23383
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/airoha/dts/an7581-w1700k-ubi.dts

index f845dcad869be6a3853898b6886d560485eaefce..42326ec2299c6cab999b050ca6fa3332773071db 100644 (file)
        nvmem-cell-names = "mac-address";
 };
 
+&pon_pcs {
+       status = "okay";
+};
+
 &gdm2 {
        status = "okay";
 
+       managed = "in-band-status";
        phy-handle = <&phy8>;
        phy-mode = "usxgmii";
 
        openwrt,netdev-name = "wan";
 };
 
+&eth_pcs {
+       status = "okay";
+};
+
 &gdm4 {
        status = "okay";
 
+       managed = "in-band-status";
        phy-handle = <&phy5>;
        phy-mode = "usxgmii";