]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: make use of serdes helper for Zyxel GS1900-24(HP) v1/v2
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 20 May 2025 08:09:19 +0000 (04:09 -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.

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/rtl8382_zyxel_gs1900-24-v1.dts
target/linux/realtek/dts/rtl8382_zyxel_gs1900-24hp-v1.dts
target/linux/realtek/dts/rtl8382_zyxel_gs1900-24hp-v2.dts

index 87cff0022ef841db3b522c27fd3e8820830a1411..f1494276a1678db8304851a8facc9d76efd7c0c2 100644 (file)
@@ -73,8 +73,8 @@
        EXTERNAL_PHY(22)
        EXTERNAL_PHY(23)
 
-       INTERNAL_PHY(24)
-       INTERNAL_PHY(26)
+       INTERNAL_PHY_SDS(24, 4)
+       INTERNAL_PHY_SDS(26, 5)
 };
 
 &switch0 {
index 59cd2082a8d5672e541d3c3209fba4cb85e188a1..7ec67a2a90c6b9e6e34c8b4792e2f1a85c910b48 100644 (file)
@@ -73,8 +73,8 @@
        EXTERNAL_PHY(22)
        EXTERNAL_PHY(23)
 
-       INTERNAL_PHY(24)
-       INTERNAL_PHY(26)
+       INTERNAL_PHY_SDS(24, 4)
+       INTERNAL_PHY_SDS(26, 5)
 };
 
 &switch0 {
index 78c66507f172b7159c44fd5efcbe34f92d08c8b0..c93ac4b6b1a8b67db2c927b54d6b7089bb441f78 100644 (file)
@@ -69,8 +69,8 @@
        EXTERNAL_PHY(22)
        EXTERNAL_PHY(23)
 
-       INTERNAL_PHY(24)
-       INTERNAL_PHY(26)
+       INTERNAL_PHY_SDS(24, 4)
+       INTERNAL_PHY_SDS(26, 5)
 };
 
 &switch0 {