Browse Source

realtek: make use of serdes helper for Zyxel GS1900-24(HP) v1/v2

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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18851
Signed-off-by: Robert Marko <[email protected]>
Markus Stockhausen 9 months ago
parent
commit
880565956d

+ 2 - 2
target/linux/realtek/dts/rtl8382_zyxel_gs1900-24-v1.dts

@@ -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 {

+ 2 - 2
target/linux/realtek/dts/rtl8382_zyxel_gs1900-24hp-v1.dts

@@ -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 {

+ 2 - 2
target/linux/realtek/dts/rtl8382_zyxel_gs1900-24hp-v2.dts

@@ -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 {