Skip to contentSkip to conversation

arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB

PATCH New Antoine Tenart 2 participants 4 messages Jun 8, 2017 – Jun 13, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB

Explicitly enable the MDIO nodes in the Marvell Armada 7k DB and Marvell Armada 8k DB. This is needed as the MDIO nodes will be disabled in the CP 110 slave and master dtsi by a following up patch.

---
 arch/arm64/boot/dts/marvell/armada-7040-db.dts | 2 ++
 arch/arm64/boot/dts/marvell/armada-8040-db.dts | 4 ++++
 2 files changed, 6 insertions(+)
arch/arm64/boot/dts/marvell/armada-7040-db.dts +2 -0
index 12442329b80f..771311051421 100644
@@ -162,6 +162,8 @@
 };
 
 &cpm_mdio {
+	status = "okay";
+
 	phy0: ethernet-phy at 0 {
 		reg = <0>;
 	};
arch/arm64/boot/dts/marvell/armada-8040-db.dts +4 -0
index 3cde649f96e4..6af3c39bbb99 100644
@@ -125,6 +125,8 @@
 };
 
 &cpm_mdio {
+	status = "okay";
+
 	phy1: ethernet-phy at 1 {
 		reg = <1>;
 	};
@@ -170,6 +172,8 @@
 };
 
 &cps_mdio {
+	status = "okay";
+
 	phy0: ethernet-phy at 0 {
 		reg = <0>;
 	};
Signature · 1 line
2.9.4
#1 lore raw

PATCH 2/2 arm64: dts: marvell: disable the mdio nodes by default

Disable the mdio nodes by default in the cp110 slave and master dtsi as they're not wired on every board.

---
 arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi | 1 +
 arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi  | 1 +
 2 files changed, 2 insertions(+)
arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi +1 -0
index ac8df5201cd6..5defde123f35 100644
@@ -94,6 +94,7 @@
 				#size-cells = <0>;
 				compatible = "marvell,orion-mdio";
 				reg = <0x12a200 0x10>;
+				status = "disabled";
 			};
 
 			cpm_syscon0: system-controller at 440000 {
arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi +1 -0
index 7740a75a8230..649a7b55fee4 100644
@@ -101,6 +101,7 @@
 				#size-cells = <0>;
 				compatible = "marvell,orion-mdio";
 				reg = <0x12a200 0x10>;
+				status = "disabled";
 			};
 
 			cps_syscon0: system-controller at 440000 {
Signature · 1 line
2.9.4
#2 lore raw

PATCH 2/2 arm64: dts: marvell: disable the mdio nodes by default

Hi Antoine,

Quoted 4 lines · Antoine Tenart

Disable the mdio nodes by default in the cp110 slave and master dtsi as they're not wired on every board.

Applied on mvebu/dt64

Thanks,

Gregory

Quoted 32 lines
---
 arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi | 1 +
 arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi  | 1 +
 2 files changed, 2 insertions(+)
arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi +1 -0
index ac8df5201cd6..5defde123f35 100644
@@ -94,6 +94,7 @@
 				#size-cells = <0>;
 				compatible = "marvell,orion-mdio";
 				reg = <0x12a200 0x10>;
+				status = "disabled";
 			};
 
 			cpm_syscon0: system-controller at 440000 {
arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi +1 -0
index 7740a75a8230..649a7b55fee4 100644
@@ -101,6 +101,7 @@
 				#size-cells = <0>;
 				compatible = "marvell,orion-mdio";
 				reg = <0x12a200 0x10>;
+				status = "disabled";
 			};
 
 			cps_syscon0: system-controller at 440000 {
Signature · 1 line
2.9.4
Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#3 lore raw

PATCH 1/2 arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB

In reply to Antoine Tenart

Hi Antoine,

Quoted 5 lines · Antoine Tenart

Explicitly enable the MDIO nodes in the Marvell Armada 7k DB and Marvell Armada 8k DB. This is needed as the MDIO nodes will be disabled in the CP 110 slave and master dtsi by a following up patch.

Applied on mvebu/dt64

Thanks,

Gregory

Quoted 43 lines
---
 arch/arm64/boot/dts/marvell/armada-7040-db.dts | 2 ++
 arch/arm64/boot/dts/marvell/armada-8040-db.dts | 4 ++++
 2 files changed, 6 insertions(+)
arch/arm64/boot/dts/marvell/armada-7040-db.dts +2 -0
index 12442329b80f..771311051421 100644
@@ -162,6 +162,8 @@
 };
 
 &cpm_mdio {
+	status = "okay";
+
 	phy0: ethernet-phy at 0 {
 		reg = <0>;
 	};
arch/arm64/boot/dts/marvell/armada-8040-db.dts +4 -0
index 3cde649f96e4..6af3c39bbb99 100644
@@ -125,6 +125,8 @@
 };
 
 &cpm_mdio {
+	status = "okay";
+
 	phy1: ethernet-phy at 1 {
 		reg = <1>;
 	};
@@ -170,6 +172,8 @@
 };
 
 &cps_mdio {
+	status = "okay";
+
 	phy0: ethernet-phy at 0 {
 		reg = <0>;
 	};
Signature · 1 line
2.9.4
Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com