[openwrt/openwrt] realtek: make use of serdes helper for TP-Link TL-ST1008F v2.0

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


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

commit 761b5d3906944a334db90e0d89fa85135057defd
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Tue Jun 17 01:38:27 2025 -0400

    realtek: make use of serdes helper for TP-Link TL-ST1008F v2.0
    
    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>
---
 .../realtek/dts/rtl9303_tplink_tl-st1008f_v2.dts   | 63 +++-------------------
 1 file changed, 8 insertions(+), 55 deletions(-)

diff --git a/target/linux/realtek/dts/rtl9303_tplink_tl-st1008f_v2.dts b/target/linux/realtek/dts/rtl9303_tplink_tl-st1008f_v2.dts
index 20850676f2..4b8423a4d5 100644
--- a/target/linux/realtek/dts/rtl9303_tplink_tl-st1008f_v2.dts
+++ b/target/linux/realtek/dts/rtl9303_tplink_tl-st1008f_v2.dts
@@ -274,61 +274,14 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
-		phy0: ethernet-phy at 0 {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <0>;
-			sds = <2>;
-		};
-
-		phy8: ethernet-phy at 8 {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <8>;
-			sds = <3>;
-		};
-
-		phy16: ethernet-phy at 10 {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <16>;
-			sds = <4>;
-		};
-
-		phy20: ethernet-phy at 14 {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <20>;
-			sds = <5>;
-		};
-
-		phy24: ethernet-phy at 18 {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <24>;
-			sds = <6>;
-		};
-
-		phy25: ethernet-phy at 19 {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <25>;
-			sds = <7>;
-		};
-
-		phy26: ethernet-phy at 1a {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <26>;
-			sds = <8>;
-		};
-
-		phy27: ethernet-phy at 1b {
-			compatible = "ethernet-phy-ieee802.3-c22";
-			phy-is-integrated;
-			reg = <27>;
-			sds = <9>;
-		};
+		INTERNAL_PHY_SDS(0, 2)
+		INTERNAL_PHY_SDS(8, 3)
+		INTERNAL_PHY_SDS(16, 4)
+		INTERNAL_PHY_SDS(20, 5)
+		INTERNAL_PHY_SDS(24, 6)
+		INTERNAL_PHY_SDS(25, 7)
+		INTERNAL_PHY_SDS(26, 8)
+		INTERNAL_PHY_SDS(27, 9)
 	};
 };
 




More information about the lede-commits mailing list