]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: make use of serdes helper for Zyxel XGS1250-12
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 17 Jun 2025 05:42:16 +0000 (01:42 -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. For
this device it is only a substitution of the existing DTS configuration.

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/rtl9302_zyxel_xgs1250-12.dts

index 182047e608737a04d80582142ca2d5a3a749f2e4..ec1597a3b2174bb9148ff97b158ac0381b062595 100644 (file)
                        #thermal-sensor-cells = <0>;
                };
 
-               /* SFP Ports */
-               phy27: ethernet-phy@27 {
-                       compatible = "ethernet-phy-ieee802.3-c22";
-                       phy-is-integrated;
-                       reg = <27>;
-                       sds = < 9 >;
-               };
-
+               INTERNAL_PHY_SDS(27, 9)
        };
 };