linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB
@ 2017-06-08 10:04 Antoine Tenart
  2017-06-08 10:04 ` [PATCH 2/2] arm64: dts: marvell: disable the mdio nodes by default Antoine Tenart
  2017-06-13  8:41 ` [PATCH 1/2] arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB Gregory CLEMENT
  0 siblings, 2 replies; 4+ messages in thread
From: Antoine Tenart @ 2017-06-08 10:04 UTC (permalink / raw)
  To: linux-arm-kernel

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.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---
 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(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
index 12442329b80f..771311051421 100644
--- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
@@ -162,6 +162,8 @@
 };
 
 &cpm_mdio {
+	status = "okay";
+
 	phy0: ethernet-phy at 0 {
 		reg = <0>;
 	};
diff --git a/arch/arm64/boot/dts/marvell/armada-8040-db.dts b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
index 3cde649f96e4..6af3c39bbb99 100644
--- a/arch/arm64/boot/dts/marvell/armada-8040-db.dts
+++ b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
@@ -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>;
 	};
-- 
2.9.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] arm64: dts: marvell: disable the mdio nodes by default
  2017-06-08 10:04 [PATCH 1/2] arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB Antoine Tenart
@ 2017-06-08 10:04 ` Antoine Tenart
  2017-06-13  8:41   ` Gregory CLEMENT
  2017-06-13  8:41 ` [PATCH 1/2] arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB Gregory CLEMENT
  1 sibling, 1 reply; 4+ messages in thread
From: Antoine Tenart @ 2017-06-08 10:04 UTC (permalink / raw)
  To: linux-arm-kernel

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

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
---
 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(+)

diff --git a/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi b/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
index ac8df5201cd6..5defde123f35 100644
--- a/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
@@ -94,6 +94,7 @@
 				#size-cells = <0>;
 				compatible = "marvell,orion-mdio";
 				reg = <0x12a200 0x10>;
+				status = "disabled";
 			};
 
 			cpm_syscon0: system-controller at 440000 {
diff --git a/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi b/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi
index 7740a75a8230..649a7b55fee4 100644
--- a/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi
@@ -101,6 +101,7 @@
 				#size-cells = <0>;
 				compatible = "marvell,orion-mdio";
 				reg = <0x12a200 0x10>;
+				status = "disabled";
 			};
 
 			cps_syscon0: system-controller at 440000 {
-- 
2.9.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 1/2] arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB
  2017-06-08 10:04 [PATCH 1/2] arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB Antoine Tenart
  2017-06-08 10:04 ` [PATCH 2/2] arm64: dts: marvell: disable the mdio nodes by default Antoine Tenart
@ 2017-06-13  8:41 ` Gregory CLEMENT
  1 sibling, 0 replies; 4+ messages in thread
From: Gregory CLEMENT @ 2017-06-13  8:41 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Antoine,
 
 On jeu., juin 08 2017, Antoine Tenart <antoine.tenart@free-electrons.com> wrote:

> 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.
>
> Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>

Applied on mvebu/dt64

Thanks,

Gregory

> ---
>  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(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-7040-db.dts b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
> index 12442329b80f..771311051421 100644
> --- a/arch/arm64/boot/dts/marvell/armada-7040-db.dts
> +++ b/arch/arm64/boot/dts/marvell/armada-7040-db.dts
> @@ -162,6 +162,8 @@
>  };
>  
>  &cpm_mdio {
> +	status = "okay";
> +
>  	phy0: ethernet-phy at 0 {
>  		reg = <0>;
>  	};
> diff --git a/arch/arm64/boot/dts/marvell/armada-8040-db.dts b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
> index 3cde649f96e4..6af3c39bbb99 100644
> --- a/arch/arm64/boot/dts/marvell/armada-8040-db.dts
> +++ b/arch/arm64/boot/dts/marvell/armada-8040-db.dts
> @@ -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>;
>  	};
> -- 
> 2.9.4
>

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] arm64: dts: marvell: disable the mdio nodes by default
  2017-06-08 10:04 ` [PATCH 2/2] arm64: dts: marvell: disable the mdio nodes by default Antoine Tenart
@ 2017-06-13  8:41   ` Gregory CLEMENT
  0 siblings, 0 replies; 4+ messages in thread
From: Gregory CLEMENT @ 2017-06-13  8:41 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Antoine,
 
 On jeu., juin 08 2017, Antoine Tenart <antoine.tenart@free-electrons.com> wrote:

> Disable the mdio nodes by default in the cp110 slave and master dtsi as
> they're not wired on every board.
>
> Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>


Applied on mvebu/dt64

Thanks,

Gregory

> ---
>  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(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi b/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
> index ac8df5201cd6..5defde123f35 100644
> --- a/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
> +++ b/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
> @@ -94,6 +94,7 @@
>  				#size-cells = <0>;
>  				compatible = "marvell,orion-mdio";
>  				reg = <0x12a200 0x10>;
> +				status = "disabled";
>  			};
>  
>  			cpm_syscon0: system-controller at 440000 {
> diff --git a/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi b/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi
> index 7740a75a8230..649a7b55fee4 100644
> --- a/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi
> +++ b/arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi
> @@ -101,6 +101,7 @@
>  				#size-cells = <0>;
>  				compatible = "marvell,orion-mdio";
>  				reg = <0x12a200 0x10>;
> +				status = "disabled";
>  			};
>  
>  			cps_syscon0: system-controller at 440000 {
> -- 
> 2.9.4
>

-- 
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-13  8:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08 10:04 [PATCH 1/2] arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB Antoine Tenart
2017-06-08 10:04 ` [PATCH 2/2] arm64: dts: marvell: disable the mdio nodes by default Antoine Tenart
2017-06-13  8:41   ` Gregory CLEMENT
2017-06-13  8:41 ` [PATCH 1/2] arm64: dts: marvell: explicitly enable the mdio nodes for 7k/8k DB Gregory CLEMENT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).