Skip to contentSkip to conversation

dts: mvebu: mcbin: enable 1G network interface

PATCH New Baruch Siach 2 participants 3 messages Nov 21, 2018 – Nov 30, 2018 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dts: mvebu: mcbin: enable 1G network interface

Describe the 1Gb network interface with on-board 88E1512 PHY.

---
 arch/arm/dts/armada-8040-mcbin.dts | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
arch/arm/dts/armada-8040-mcbin.dts +16 -0
index f912596c2cde..7e8e2f707ccf 100644
@@ -154,6 +154,12 @@
 	status = "okay";
 };
 
+&cpm_mdio {
+	ge_phy: ethernet-phy at 0 {
+		reg = <0>;
+	};
+};
+
 &cpm_comphy {
 	/*
 	 * CP0 Serdes Configuration:
@@ -197,6 +203,16 @@
 	status = "okay";
 };
 
+&cps_ethernet {
+	status = "okay";
+};
+
+&cps_eth1 {
+	status = "okay";
+	phy = <&ge_phy>;
+	phy-mode = "sgmii";
+};
+
 &cps_pinctl {
 	/*
 	 * MPP Bus:
Signature · 1 line
2.19.1
#1 lore raw

PATCH 1/1 dts: mvebu: mcbin: enable 1G network interface

Quoted 32 lines · Baruch Siach

Describe the 1Gb network interface with on-board 88E1512 PHY.

---
  arch/arm/dts/armada-8040-mcbin.dts | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)
arch/arm/dts/armada-8040-mcbin.dts +9 -0
index f912596c2cde..7e8e2f707ccf 100644
@@ -154,6 +154,12 @@
  	status = "okay";
  };
 
+&cpm_mdio {
+	ge_phy: ethernet-phy at 0 {
+		reg = <0>;
+	};
+};
+
  &cpm_comphy {
  	/*
  	 * CP0 Serdes Configuration:
@@ -197,6 +203,16 @@
  	status = "okay";
  };
 
+&cps_ethernet {
+	status = "okay";
+};

arch/arm/dts/armada-8040-mcbin.dts line 218

Quoted 10 lines
arch/arm/dts/armada-8040-mcbin.dts +7 -0
+
+&cps_eth1 {
+	status = "okay";
+	phy = <&ge_phy>;
+	phy-mode = "sgmii";
+};
+
  &cps_pinctl {
  	/*
  	 * MPP Bus:

Thanks,
Stefan