realtek: make use of serdes helper for Netgear GS310TP v1
authorMarkus Stockhausen <[email protected]>
Tue, 20 May 2025 07:55:52 +0000 (03:55 -0400)
committerRobert Marko <[email protected]>
Sun, 22 Jun 2025 14:37:33 +0000 (16:37 +0200)
commit0cf2db1fa19480d15535c0c5ae84ee5d7689b60e
tree6ea03529064372229130021fbfda49dc38c04048
parentd3dbd970437418e94d17c467c0b2e9ee36dc36a1
realtek: make use of serdes helper for Netgear GS310TP v1

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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18851
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/dts/rtl8380_netgear_gs310tp-v1.dts