]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: make use of serdes helper for Netgear GS310TP v1
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 20 May 2025 07:55:52 +0000 (03:55 -0400)
committerRobert Marko <robimarko@gmail.com>
Sun, 22 Jun 2025 14:37:33 +0000 (16:37 +0200)
Use the new INTERNAL_PHY_SDS() helper to describe the SFP ports. With
this change the driver now knows that ports 24/26 are driven by serdes
4/5.

For the RTL838x devices this is currently only an additional information
for the mdio bus. It is not evaluated further because everything is
hardcoded.

REMARK! The original commit c829bc1f2c3c47e2 ("realtek: Add support for
Netgear S350 series switches GS308T and GS310TP") says that the SFP
ports are untested. Looking at device internal pictures from
https://techinfodepot.shoutwiki.com/wiki/Netgear_GS310TP there are no
external phys for the SFP ports. So fix port description.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/18851
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/dts/rtl8380_netgear_gs310tp-v1.dts

index 7974e423594973b75b5d20678f4863532567aed1..50f7563ce99e8629af10060e28567006a950d931 100644 (file)
 };
 
 &mdio {
-       INTERNAL_PHY(24)
-       INTERNAL_PHY(26)
+       INTERNAL_PHY_SDS(24, 4)
+       INTERNAL_PHY_SDS(26, 5)
 };
 
 &switch0 {
        ports {
-               SWITCH_SFP_PORT(24, 9, rgmii-id)
-               SWITCH_SFP_PORT(26, 10, rgmii-id)
+               SWITCH_SFP_PORT(24, 9, 1000base-x)
+               SWITCH_SFP_PORT(26, 10, 1000base-x)
        };
 };