[PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch

Vladimir Oltean vladimir.oltean at nxp.com
Tue Sep 29 21:32:08 AEST 2020


Add the description of the embedded L2 switch inside the SoC dtsi file
for NXP T1040.

Signed-off-by: Vladimir Oltean <vladimir.oltean at nxp.com>
---
Changes in v2:
Make switch node disabled by default.

 arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 76 +++++++++++++++++++++
 1 file changed, 76 insertions(+)

diff --git a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi
index 315d0557eefc..5cb90c66cd3f 100644
--- a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi
@@ -628,6 +628,82 @@ mdio at fd000 {
 			status = "disabled";
 		};
 	};
+
+	seville_switch: ethernet-switch at 800000 {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		compatible = "mscc,vsc9953-switch";
+		reg = <0x800000 0x290000>;
+		little-endian;
+		status = "disabled";
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			seville_port0: port at 0 {
+				reg = <0>;
+				status = "disabled";
+			};
+
+			seville_port1: port at 1 {
+				reg = <1>;
+				status = "disabled";
+			};
+
+			seville_port2: port at 2 {
+				reg = <2>;
+				status = "disabled";
+			};
+
+			seville_port3: port at 3 {
+				reg = <3>;
+				status = "disabled";
+			};
+
+			seville_port4: port at 4 {
+				reg = <4>;
+				status = "disabled";
+			};
+
+			seville_port5: port at 5 {
+				reg = <5>;
+				status = "disabled";
+			};
+
+			seville_port6: port at 6 {
+				reg = <6>;
+				status = "disabled";
+			};
+
+			seville_port7: port at 7 {
+				reg = <7>;
+				status = "disabled";
+			};
+
+			seville_port8: port at 8 {
+				reg = <8>;
+				phy-mode = "internal";
+				status = "disabled";
+
+				fixed-link {
+					speed = <2500>;
+					full-duplex;
+				};
+			};
+
+			seville_port9: port at 9 {
+				reg = <9>;
+				phy-mode = "internal";
+				status = "disabled";
+
+				fixed-link {
+					speed = <2500>;
+					full-duplex;
+				};
+			};
+		};
+	};
 };
 
 &qe {
-- 
2.25.1



More information about the Linuxppc-dev mailing list