[openwrt/openwrt] realtek: make use of serdes helper for Zyxel XGS1210-12

LEDE Commits lede-commits at lists.infradead.org
Sun Jun 22 07:37:53 PDT 2025


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/cbf0d662c23e5ad3b72804ae1bc98d51f2f5a2ff

commit cbf0d662c23e5ad3b72804ae1bc98d51f2f5a2ff
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Tue Jun 17 01:43:55 2025 -0400

    realtek: make use of serdes helper for Zyxel XGS1210-12
    
    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 at gmx.de>
    Link: https://github.com/openwrt/openwrt/pull/18851
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12.dts | 18 ++----------------
 1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12.dts b/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12.dts
index 11ffbc7827..44a5c26090 100644
--- a/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12.dts
+++ b/target/linux/realtek/dts/rtl9302_zyxel_xgs1210-12.dts
@@ -242,22 +242,8 @@
 			// reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
 		};
 
-		/* SFP0 Ports */
-		phy26: ethernet-phy at 26 {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <26>;
-			sds = < 8 >;
-		};
-
-		/* SFP1 Ports */
-		phy27: ethernet-phy at 27 {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <27>;
-			sds = < 9 >;
-		};
-
+		INTERNAL_PHY_SDS(26, 8)
+		INTERNAL_PHY_SDS(27, 9)
 	};
 };
 




More information about the lede-commits mailing list