]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: make use of serdes helper for Zyxel XGS1210-12 18851/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 17 Jun 2025 05:43:55 +0000 (01:43 -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_xgs1210-12.dts

index 11ffbc7827830cde5ca55eb493758bf153fe254d..44a5c26090716bb9c90451fb336181966701e8e6 100644 (file)
                        // reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
                };
 
-               /* SFP0 Ports */
-               phy26: ethernet-phy@26 {
-                       compatible = "ethernet-phy-ieee802.3-c22";
-                       phy-is-integrated;
-                       reg = <26>;
-                       sds = < 8 >;
-               };
-
-               /* SFP1 Ports */
-               phy27: ethernet-phy@27 {
-                       compatible = "ethernet-phy-ieee802.3-c22";
-                       phy-is-integrated;
-                       reg = <27>;
-                       sds = < 9 >;
-               };
-
+               INTERNAL_PHY_SDS(26, 8)
+               INTERNAL_PHY_SDS(27, 9)
        };
 };