Skip to contentSkip to conversation

powerpc/mpc85xx: Activate Cyrus P5020 ethernet

PATCH In review Darren Stevens 1 participant 1 message May 7, 2020

lore
Share & tools
lore
#0 lore raw

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

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

---

 arch/powerpc/boot/dts/fsl/cyrus_p5020.dts | 39

+++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)

(quoted diff) +0 -0

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@400000 {
+ mdio@e1120 {
+ phy3: ethernet-phy@3 {
+ reg = <0x3>;
+ };
+
+ phy7: ethernet-phy@7 {
+ reg = <0x7>;
+ };
+ };
+
+ ethernet@e0000 {
+ status = "disabled";
+ };
+
+ ethernet@e2000 {
+ status = "disabled";
+ };
+
+ ethernet@e4000 {
+ status = "disabled";
+ };
+
+ ethernet@e6000 {
+ phy-handle = <&phy3>;
+ phy-connection-type = "rgmii";
+ };
+
+ ethernet@e8000 {
+ phy-handle = <&phy7>;
+ phy-connection-type = "rgmii";
+ };
+ };
};

rio: rapidio@ffe0c0000 {