Browse Source

realtek: rtl838x: drop SFP pseudo-PHYs and phy-handle

Remove all pseudo-PHYs and phy-handle properties from DTS of RTL838X
devices. RTL838X SerDes is now handled by PCS driver and thus not
treated as PHY anymore.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20876
Signed-off-by: Hauke Mehrtens <[email protected]>
Jonas Jelonek 1 tháng trước cách đây
mục cha
commit
a63da75e44

+ 0 - 5
target/linux/realtek/dts/rtl8380_d-link_dgs-1210-10mp-f.dts

@@ -84,9 +84,6 @@
 	INTERNAL_PHY(13)
 	INTERNAL_PHY(14)
 	INTERNAL_PHY(15)
-
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &switch0 {
@@ -107,7 +104,6 @@
 			reg = <24>;
 			label = "lan9";
 			pcs-handle = <&serdes4>;
-			phy-handle = <&phy24>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp0>;
@@ -117,7 +113,6 @@
 			reg = <26>;
 			label = "lan10";
 			pcs-handle = <&serdes5>;
-			phy-handle = <&phy26>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp1>;

+ 0 - 5
target/linux/realtek/dts/rtl8380_engenius_ews2910p.dtsi

@@ -180,9 +180,6 @@
 	INTERNAL_PHY(13)
 	INTERNAL_PHY(14)
 	INTERNAL_PHY(15)
-
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &switch0 {
@@ -204,7 +201,6 @@
 			label = "lan9";
 			pcs-handle = <&serdes4>;
 			phy-mode = "1000base-x";
-			phy-handle = <&phy24>;
 			managed = "in-band-status";
 			sfp = <&sfp0>;
 		};
@@ -214,7 +210,6 @@
 			label = "lan10";
 			pcs-handle = <&serdes5>;
 			phy-mode = "1000base-x";
-			phy-handle = <&phy26>;
 			managed = "in-band-status";
 			sfp = <&sfp1>;
 		};

+ 0 - 5
target/linux/realtek/dts/rtl8380_hpe_1920-8g.dtsi

@@ -66,9 +66,6 @@
 	INTERNAL_PHY(13)
 	INTERNAL_PHY(14)
 	INTERNAL_PHY(15)
-
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &switch0 {
@@ -89,7 +86,6 @@
 			reg = <24>;
 			label = "lan9";
 			pcs-handle = <&serdes4>;
-			phy-handle = <&phy24>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp0>;
@@ -99,7 +95,6 @@
 			reg = <26>;
 			label = "lan10";
 			pcs-handle = <&serdes5>;
-			phy-handle = <&phy26>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp1>;

+ 0 - 4
target/linux/realtek/dts/rtl8380_linksys_lgs310c.dts

@@ -157,8 +157,6 @@
 	INTERNAL_PHY(13)
 	INTERNAL_PHY(14)
 	INTERNAL_PHY(15)
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &switch0 {
@@ -179,7 +177,6 @@
 			reg = <24>;
 			label = "lan9";
 			pcs-handle = <&serdes4>;
-			phy-handle = <&phy24>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp0>;
@@ -189,7 +186,6 @@
 			reg = <26>;
 			label = "lan10";
 			pcs-handle = <&serdes5>;
-			phy-handle = <&phy26>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp1>;

+ 0 - 7
target/linux/realtek/dts/rtl8380_netgear_gs310tp-v1.dts

@@ -49,11 +49,6 @@
 	status = "okay";
 };
 
-&mdio_bus0 {
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
-};
-
 &switch0 {
 	ports {
 		/* TODO: fixed link SFP is not right */
@@ -62,7 +57,6 @@
 			reg = <24>;
 			label = SWITCH_PORT_LABEL(9);
 			pcs-handle = <&serdes4>;
-			phy-handle = <&phy24>;
 			phy-mode = "1000base-x";
 			fixed-link {
 				speed = <1000>;
@@ -73,7 +67,6 @@
 			reg = <26>;
 			label = SWITCH_PORT_LABEL(10);
 			pcs-handle = <&serdes5>;
-			phy-handle = <&phy26>;
 			phy-mode = "1000base-x";
 			fixed-link {
 				speed = <1000>;

+ 0 - 3
target/linux/realtek/dts/rtl8380_panasonic_m8eg-pn28080k.dts

@@ -83,8 +83,6 @@
 	INTERNAL_PHY(13)
 	INTERNAL_PHY(14)
 	INTERNAL_PHY(15)
-
-	INTERNAL_PHY(24)
 };
 
 &switch0 {
@@ -105,7 +103,6 @@
 			reg = <24>;
 			label = "lan9";
 			pcs-handle = <&serdes4>;
-			phy-handle = <&phy24>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp0>;

+ 0 - 15
target/linux/realtek/dts/rtl8380_tplink_sg2008p-v1.dts

@@ -11,18 +11,3 @@
 	status = "disabled";
 };
 
-&phy24 {
-	status = "disabled";
-};
-
-&phy26 {
-	status = "disabled";
-};
-
-&port24 {
-	status = "disabled";
-};
-
-&port26 {
-	status = "disabled";
-};

+ 24 - 5
target/linux/realtek/dts/rtl8380_tplink_sg2210p-v3.dts

@@ -7,10 +7,29 @@
 	model = "TP-Link SG2210P v3";
 };
 
-&port24 {
-	label = "lan-sfp2";
-};
+&switch0 {
+	ports {
+		port24: port@24 {
+			reg = <24>;
+			label = "lan-sfp2";
+			pcs-handle = <&serdes4>;
+			phy-mode = "1000base-x";
+			fixed-link {
+				speed = <1000>;
+				full-duplex;
+			};
+		};
 
-&port26 {
-	label = "lan-sfp1";
+		port26: port@26 {
+			reg = <26>;
+			label = "lan-sfp1";
+			pcs-handle = <&serdes5>;
+			phy-mode = "1000base-x";
+			fixed-link {
+				speed = <1000>;
+				full-duplex;
+			};
+		};
+	};
 };
+

+ 0 - 5
target/linux/realtek/dts/rtl8380_tplink_sg2xxx.dtsi

@@ -143,9 +143,6 @@
 	INTERNAL_PHY(13)
 	INTERNAL_PHY(14)
 	INTERNAL_PHY(15)
-
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &ethernet0 {
@@ -172,7 +169,6 @@
 			reg = <24>;
 			label = SWITCH_PORT_LABEL(9);
 			pcs-handle = <&serdes4>;
-			phy-handle = <&phy24>;
 			phy-mode = "1000base-x";
 			fixed-link {
 				speed = <1000>;
@@ -183,7 +179,6 @@
 			reg = <26>;
 			label = SWITCH_PORT_LABEL(10);
 			pcs-handle = <&serdes5>;
-			phy-handle = <&phy26>;
 			phy-mode = "1000base-x";
 			fixed-link {
 				speed = <1000>;

+ 0 - 7
target/linux/realtek/dts/rtl8380_zyxel_gs1900-10hp-a1.dts

@@ -52,18 +52,12 @@
 	status = "okay";
 };
 
-&mdio_bus0 {
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
-};
-
 &switch0 {
 	ports {
 		port@24 {
 			reg = <24>;
 			label = "lan9";
 			pcs-handle = <&serdes4>;
-			phy-handle = <&phy24>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp0>;
@@ -73,7 +67,6 @@
 			reg = <26>;
 			label = "lan10";
 			pcs-handle = <&serdes5>;
-			phy-handle = <&phy26>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp1>;

+ 0 - 5
target/linux/realtek/dts/rtl8382_d-link_dgs-1210-10p.dts

@@ -83,9 +83,6 @@
 	INTERNAL_PHY(13)
 	INTERNAL_PHY(14)
 	INTERNAL_PHY(15)
-
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &switch0 {
@@ -106,7 +103,6 @@
 			reg = <24>;
 			label = "lan9";
 			pcs-handle = <&serdes4>;
-			phy-handle = <&phy24>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp0>;
@@ -116,7 +112,6 @@
 			reg = <26>;
 			label = "lan10";
 			pcs-handle = <&serdes5>;
-			phy-handle = <&phy26>;
 			phy-mode = "1000base-x";
 			managed = "in-band-status";
 			sfp = <&sfp1>;

+ 0 - 3
target/linux/realtek/dts/rtl8382_d-link_dgs-1210-26.dts

@@ -72,9 +72,6 @@
 	EXTERNAL_PHY(21)
 	EXTERNAL_PHY(22)
 	EXTERNAL_PHY(23)
-
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &switch0 {

+ 0 - 3
target/linux/realtek/dts/rtl8382_zyxel_gs1900-24-a1.dts

@@ -72,9 +72,6 @@
 	EXTERNAL_PHY(21)
 	EXTERNAL_PHY(22)
 	EXTERNAL_PHY(23)
-
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &switch0 {

+ 0 - 3
target/linux/realtek/dts/rtl8382_zyxel_gs1900-24hp-a1.dts

@@ -72,9 +72,6 @@
 	EXTERNAL_PHY(21)
 	EXTERNAL_PHY(22)
 	EXTERNAL_PHY(23)
-
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &switch0 {

+ 0 - 3
target/linux/realtek/dts/rtl8382_zyxel_gs1900-24hp-b1.dts

@@ -68,9 +68,6 @@
 	EXTERNAL_PHY(21)
 	EXTERNAL_PHY(22)
 	EXTERNAL_PHY(23)
-
-	INTERNAL_PHY(24)
-	INTERNAL_PHY(26)
 };
 
 &switch0 {