[PATCH 2/5] powerpc/mpc85xx: Activate Cyrus P5020 ethernet

Darren Stevens darren at stevens-zone.net
Fri May 8 07:13:00 AEST 2020


The Cyrus P5020 board has 2 ethernet ports, add the required device tree
entries.

Signed-off-by: Darren Stevens <darren at stevens-zone.net>

---

 arch/powerpc/boot/dts/fsl/cyrus_p5020.dts | 39
 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)

diff --git a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts index 40ba060..bdf0405
100644 --- a/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
+++ b/arch/powerpc/boot/dts/fsl/cyrus_p5020.dts
@@ -17,6 +17,11 @@
 	#size-cells = <2>;
 	interrupt-parent = <&mpic>;
 
+	aliases {
+		ethernet0 = &enet3;
+		ethernet1 = &enet4;
+	};
+
 	memory {
 		device_type = "memory";
 	};
@@ -67,6 +72,40 @@
 				reg = <0x6f>;
 			};
 		};
+
+		fman at 400000 {
+			mdio at e1120 {
+				phy3: ethernet-phy at 3 {
+					reg = <0x3>;
+				};
+
+				phy7: ethernet-phy at 7 {
+					reg = <0x7>;
+				};
+			};
+
+			ethernet at e0000 {
+				status = "disabled";
+			};
+
+			ethernet at e2000 {
+				status = "disabled";
+			};
+
+			ethernet at e4000 {
+				status = "disabled";
+			};
+
+			ethernet at e6000 {
+				phy-handle = <&phy3>;
+				phy-connection-type = "rgmii";
+			};
+
+			ethernet at e8000 {
+				phy-handle = <&phy7>;
+				phy-connection-type = "rgmii";
+			};
+		};
 	};
 
 	rio: rapidio at ffe0c0000 {


More information about the Linuxppc-dev mailing list