Bladeren bron

qualcommbe: drop "uniphy" from pcs node labels

According to Qualcomm developers, the pcs nodes on IPQ9574 will be
labeled "pcs<n>" and "pcs<n>_ch<m>". The proposed IPQ5424 changes
include the simpler labels. Rename the IPQ95xx nodes for consistency.

Signed-off-by: Alexandru Gagniuc <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20993
Signed-off-by: Robert Marko <[email protected]>
Alexandru Gagniuc 1 maand geleden
bovenliggende
commit
cc6b9ff17b

+ 3 - 3
target/linux/qualcommbe/files/arch/arm64/boot/dts/qcom/ipq9570-kiwi-dvk.dts

@@ -83,7 +83,7 @@
 			managed = "in-band-status";
 			label = "wan";
 			sfp = <&sfp0>;
-			pcs-handle = <&pcsuniphy0_ch0>;
+			pcs-handle = <&pcs0_ch0>;
 			local-mac-address = [00 00 00 00 00 00];
 			clocks = <&nsscc NSS_CC_PORT1_MAC_CLK>,
 				 <&nsscc NSS_CC_PORT1_RX_CLK>,
@@ -104,7 +104,7 @@
 			phy-mode = "2500base-x";
 			label = "lan1";
 			phy-handle = <&phy0>;
-			pcs-handle = <&pcsuniphy1_ch0>;
+			pcs-handle = <&pcs1_ch0>;
 			local-mac-address = [00 00 00 00 00 00];
 			clocks = <&nsscc NSS_CC_PORT5_MAC_CLK>,
 				 <&nsscc NSS_CC_PORT5_RX_CLK>,
@@ -126,7 +126,7 @@
 			managed = "in-band-status";
 			label = "lan2";
 			phy-handle = <&phy1>;
-			pcs-handle = <&pcsuniphy2_ch0>;
+			pcs-handle = <&pcs2_ch0>;
 			local-mac-address = [00 00 00 00 00 00];
 			clocks = <&nsscc NSS_CC_PORT6_MAC_CLK>,
 				 <&nsscc NSS_CC_PORT6_RX_CLK>,

+ 15 - 15
target/linux/qualcommbe/patches-6.12/0322-arm64-dts-qcom-ipq9574-add-PCS-uniphy-nodes.patch

@@ -34,12 +34,12 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 -				 <0>,
 -				 <0>,
 -				 <0>,
-+				 <&pcs_uniphy0 0>,
-+				 <&pcs_uniphy0 1>,
-+				 <&pcs_uniphy1 0>,
-+				 <&pcs_uniphy1 1>,
-+				 <&pcs_uniphy2 0>,
-+				 <&pcs_uniphy2 1>,
++				 <&pcs0 0>,
++				 <&pcs0 1>,
++				 <&pcs1 0>,
++				 <&pcs1 1>,
++				 <&pcs2 0>,
++				 <&pcs2 1>,
  				 <&gcc GCC_NSSCC_CLK>;
  			clock-names = "xo",
  				      "nss_1200",
@@ -48,7 +48,7 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
  			#interconnect-cells = <1>;
  		};
 +
-+		pcs_uniphy0: ethernet-pcs@7a00000 {
++		pcs0: ethernet-pcs@7a00000 {
 +			compatible = "qcom,ipq9574-pcs";
 +			reg = <0x7a00000 0x10000>;
 +			#address-cells = <1>;
@@ -66,7 +66,7 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 +
 +			#clock-cells = <1>;
 +
-+			pcsuniphy0_ch0: pcs-mii@0 {
++			pcs0_ch0: pcs-mii@0 {
 +				reg = <0>;
 +				clocks = <&nsscc NSS_CC_UNIPHY_PORT1_RX_CLK>,
 +					 <&nsscc NSS_CC_UNIPHY_PORT1_TX_CLK>;
@@ -74,7 +74,7 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 +					      "tx";
 +			};
 +
-+			pcsuniphy0_ch1: pcs-mii@1 {
++			pcs0_ch1: pcs-mii@1 {
 +				reg = <1>;
 +				clocks = <&nsscc NSS_CC_UNIPHY_PORT2_RX_CLK>,
 +					 <&nsscc NSS_CC_UNIPHY_PORT2_TX_CLK>;
@@ -82,7 +82,7 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 +					      "tx";
 +			};
 +
-+			pcsuniphy0_ch2: pcs-mii@2 {
++			pcs0_ch2: pcs-mii@2 {
 +				reg = <2>;
 +				clocks = <&nsscc NSS_CC_UNIPHY_PORT3_RX_CLK>,
 +					 <&nsscc NSS_CC_UNIPHY_PORT3_TX_CLK>;
@@ -90,7 +90,7 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 +					      "tx";
 +			};
 +
-+			pcsuniphy0_ch3: pcs-mii@3 {
++			pcs0_ch3: pcs-mii@3 {
 +				reg = <3>;
 +				clocks = <&nsscc NSS_CC_UNIPHY_PORT4_RX_CLK>,
 +					 <&nsscc NSS_CC_UNIPHY_PORT4_TX_CLK>;
@@ -99,7 +99,7 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 +			};
 +		};
 +
-+		pcs_uniphy1: ethernet-pcs@7a10000 {
++		pcs1: ethernet-pcs@7a10000 {
 +			#address-cells = <1>;
 +			#size-cells = <0>;
 +			compatible = "qcom,ipq9574-pcs";
@@ -116,7 +116,7 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 +				      "xpcs";
 +			#clock-cells = <1>;
 +
-+			pcsuniphy1_ch0: pcs-mii@0 {
++			pcs1_ch0: pcs-mii@0 {
 +				reg = <0>;
 +				clocks = <&nsscc NSS_CC_UNIPHY_PORT5_RX_CLK>,
 +					 <&nsscc NSS_CC_UNIPHY_PORT5_TX_CLK>;
@@ -125,7 +125,7 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 +			};
 +		};
 +
-+		pcs_uniphy2: ethernet-pcs@7a20000 {
++		pcs2: ethernet-pcs@7a20000 {
 +			compatible = "qcom,ipq9574-pcs";
 +			reg = <0x7a20000 0x10000>;
 +			#address-cells = <1>;
@@ -142,7 +142,7 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 +				      "xpcs";
 +			#clock-cells = <1>;
 +
-+			pcsuniphy2_ch0: pcs-mii@0 {
++			pcs2_ch0: pcs-mii@0 {
 +				reg = <0>;
 +				clocks = <&nsscc NSS_CC_UNIPHY_PORT6_RX_CLK>,
 +					 <&nsscc NSS_CC_UNIPHY_PORT6_TX_CLK>;

+ 1 - 1
target/linux/qualcommbe/patches-6.12/0353-arm64-dts-qcom-Add-IPQ9574-PPE-base-device-node.patch

@@ -67,6 +67,6 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 +					     "memnoc_nssnoc_1";
 +		};
 +
- 		pcs_uniphy0: ethernet-pcs@7a00000 {
+ 		pcs0: ethernet-pcs@7a00000 {
  			compatible = "qcom,ipq9574-pcs";
  			reg = <0x7a00000 0x10000>;

+ 1 - 1
target/linux/qualcommbe/patches-6.12/0354-arm64-dts-qcom-Add-EDMA-node-for-IPQ9574.patch

@@ -88,4 +88,4 @@ Signed-off-by: Pavithra R <[email protected]>
 +			};
  		};
  
- 		pcs_uniphy0: ethernet-pcs@7a00000 {
+ 		pcs0: ethernet-pcs@7a00000 {

+ 6 - 6
target/linux/qualcommbe/patches-6.12/0355-arm64-dts-qcom-Add-IPQ9574-RDP433-port-node.patch

@@ -79,7 +79,7 @@ Signed-off-by: Lei Wei <[email protected]>
 +			phy-mode = "qsgmii";
 +			managed = "in-band-status";
 +			phy-handle = <&phy0>;
-+			pcs-handle = <&pcsuniphy0_ch0>;
++			pcs-handle = <&pcs0_ch0>;
 +			clocks = <&nsscc NSS_CC_PORT1_MAC_CLK>,
 +				 <&nsscc NSS_CC_PORT1_RX_CLK>,
 +				 <&nsscc NSS_CC_PORT1_TX_CLK>;
@@ -99,7 +99,7 @@ Signed-off-by: Lei Wei <[email protected]>
 +			phy-mode = "qsgmii";
 +			managed = "in-band-status";
 +			phy-handle = <&phy1>;
-+			pcs-handle = <&pcsuniphy0_ch1>;
++			pcs-handle = <&pcs0_ch1>;
 +			clocks = <&nsscc NSS_CC_PORT2_MAC_CLK>,
 +				 <&nsscc NSS_CC_PORT2_RX_CLK>,
 +				 <&nsscc NSS_CC_PORT2_TX_CLK>;
@@ -119,7 +119,7 @@ Signed-off-by: Lei Wei <[email protected]>
 +			phy-mode = "qsgmii";
 +			managed = "in-band-status";
 +			phy-handle = <&phy2>;
-+			pcs-handle = <&pcsuniphy0_ch2>;
++			pcs-handle = <&pcs0_ch2>;
 +			clocks = <&nsscc NSS_CC_PORT3_MAC_CLK>,
 +				 <&nsscc NSS_CC_PORT3_RX_CLK>,
 +				 <&nsscc NSS_CC_PORT3_TX_CLK>;
@@ -139,7 +139,7 @@ Signed-off-by: Lei Wei <[email protected]>
 +			phy-mode = "qsgmii";
 +			managed = "in-band-status";
 +			phy-handle = <&phy3>;
-+			pcs-handle = <&pcsuniphy0_ch3>;
++			pcs-handle = <&pcs0_ch3>;
 +			clocks = <&nsscc NSS_CC_PORT4_MAC_CLK>,
 +				 <&nsscc NSS_CC_PORT4_RX_CLK>,
 +				 <&nsscc NSS_CC_PORT4_TX_CLK>;
@@ -159,7 +159,7 @@ Signed-off-by: Lei Wei <[email protected]>
 +			phy-mode = "usxgmii";
 +			managed = "in-band-status";
 +			phy-handle = <&phy4>;
-+			pcs-handle = <&pcsuniphy1_ch0>;
++			pcs-handle = <&pcs1_ch0>;
 +			clocks = <&nsscc NSS_CC_PORT5_MAC_CLK>,
 +				 <&nsscc NSS_CC_PORT5_RX_CLK>,
 +				 <&nsscc NSS_CC_PORT5_TX_CLK>;
@@ -179,7 +179,7 @@ Signed-off-by: Lei Wei <[email protected]>
 +			phy-mode = "usxgmii";
 +			managed = "in-band-status";
 +			phy-handle = <&phy5>;
-+			pcs-handle = <&pcsuniphy2_ch0>;
++			pcs-handle = <&pcs2_ch0>;
 +			clocks = <&nsscc NSS_CC_PORT6_MAC_CLK>,
 +				 <&nsscc NSS_CC_PORT6_RX_CLK>,
 +				 <&nsscc NSS_CC_PORT6_TX_CLK>;

+ 6 - 6
target/linux/qualcommbe/patches-6.12/0357-arm64-dts-qcom-Add-label-to-EDMA-port-for-IPQ9574-RD.patch

@@ -18,7 +18,7 @@ Signed-off-by: Christian Marangi <[email protected]>
  			managed = "in-band-status";
 +			label = "lan1";
  			phy-handle = <&phy0>;
- 			pcs-handle = <&pcsuniphy0_ch0>;
+ 			pcs-handle = <&pcs0_ch0>;
  			clocks = <&nsscc NSS_CC_PORT1_MAC_CLK>,
 @@ -237,6 +238,7 @@
  			reg = <2>;
@@ -26,7 +26,7 @@ Signed-off-by: Christian Marangi <[email protected]>
  			managed = "in-band-status";
 +			label = "lan2";
  			phy-handle = <&phy1>;
- 			pcs-handle = <&pcsuniphy0_ch1>;
+ 			pcs-handle = <&pcs0_ch1>;
  			clocks = <&nsscc NSS_CC_PORT2_MAC_CLK>,
 @@ -257,6 +259,7 @@
  			reg = <3>;
@@ -34,7 +34,7 @@ Signed-off-by: Christian Marangi <[email protected]>
  			managed = "in-band-status";
 +			label = "lan3";
  			phy-handle = <&phy2>;
- 			pcs-handle = <&pcsuniphy0_ch2>;
+ 			pcs-handle = <&pcs0_ch2>;
  			clocks = <&nsscc NSS_CC_PORT3_MAC_CLK>,
 @@ -277,6 +280,7 @@
  			reg = <4>;
@@ -42,7 +42,7 @@ Signed-off-by: Christian Marangi <[email protected]>
  			managed = "in-band-status";
 +			label = "lan4";
  			phy-handle = <&phy3>;
- 			pcs-handle = <&pcsuniphy0_ch3>;
+ 			pcs-handle = <&pcs0_ch3>;
  			clocks = <&nsscc NSS_CC_PORT4_MAC_CLK>,
 @@ -297,6 +301,7 @@
  			reg = <5>;
@@ -50,7 +50,7 @@ Signed-off-by: Christian Marangi <[email protected]>
  			managed = "in-band-status";
 +			label = "lan5";
  			phy-handle = <&phy4>;
- 			pcs-handle = <&pcsuniphy1_ch0>;
+ 			pcs-handle = <&pcs1_ch0>;
  			clocks = <&nsscc NSS_CC_PORT5_MAC_CLK>,
 @@ -317,6 +322,7 @@
  			reg = <6>;
@@ -58,5 +58,5 @@ Signed-off-by: Christian Marangi <[email protected]>
  			managed = "in-band-status";
 +			label = "wan";
  			phy-handle = <&phy5>;
- 			pcs-handle = <&pcsuniphy2_ch0>;
+ 			pcs-handle = <&pcs2_ch0>;
  			clocks = <&nsscc NSS_CC_PORT6_MAC_CLK>,

+ 3 - 3
target/linux/qualcommbe/patches-6.12/0359-arm64-dts-qcom-ipq9574-add-NSSNOC-clock-to-nss-node.patch

@@ -17,9 +17,9 @@ Signed-off-by: Alexandru Gagniuc <[email protected]>
 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi
 +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
 @@ -1255,7 +1255,10 @@
- 				 <&pcs_uniphy1 1>,
- 				 <&pcs_uniphy2 0>,
- 				 <&pcs_uniphy2 1>,
+ 				 <&pcs1 1>,
+ 				 <&pcs2 0>,
+ 				 <&pcs2 1>,
 -				 <&gcc GCC_NSSCC_CLK>;
 +				 <&gcc GCC_NSSCC_CLK>,
 +				 <&gcc GCC_NSSNOC_NSSCC_CLK>,