linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ARM: keystone: enable mdio support
@ 2014-07-09 13:14 Grygorii Strashko
  2014-07-09 13:14 ` [PATCH 1/3] ARM: dts: keystone: add mdio devices entries Grygorii Strashko
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Grygorii Strashko @ 2014-07-09 13:14 UTC (permalink / raw)
  To: linux-arm-kernel

Add DT definitions for Keystone 2 MDIO module and Ethernet PHYs for Keystone
EVMK2HX evm. And enable MDIO support for Keystone 2 SoCs.

Grygorii Strashko (3):
  ARM: dts: keystone: add mdio devices entries
  ARM: dts: keystone-evm: add 1g ethernet phys nodes
  ARM: keystone_defconfig: enable mdio and marvell eth phys

 arch/arm/boot/dts/k2hk-evm.dts      |   12 ++++++++++++
 arch/arm/boot/dts/keystone.dtsi     |   11 +++++++++++
 arch/arm/configs/keystone_defconfig |    2 ++
 3 files changed, 25 insertions(+)

-- 
1.7.9.5

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

* [PATCH 1/3] ARM: dts: keystone: add mdio devices entries
  2014-07-09 13:14 [PATCH 0/3] ARM: keystone: enable mdio support Grygorii Strashko
@ 2014-07-09 13:14 ` Grygorii Strashko
  2014-07-17 14:58   ` Grygorii Strashko
  2014-07-09 13:14 ` [PATCH 2/3] ARM: dts: keystone-evm: add 1g ethernet phys nodes Grygorii Strashko
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Grygorii Strashko @ 2014-07-09 13:14 UTC (permalink / raw)
  To: linux-arm-kernel

The Keystone 2 has MDIO HW block which are compatible
to Davinci SoCs:
See "Gigabit Ethernet (GbE) Switch Subsystem"
  See http://www.ti.com/lit/ug/sprugv9d/sprugv9d.pdf

Hence, add corresponding DT entry for Keystone 2.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/keystone.dtsi |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi
index c1414cb..89256fc 100644
--- a/arch/arm/boot/dts/keystone.dtsi
+++ b/arch/arm/boot/dts/keystone.dtsi
@@ -266,5 +266,16 @@
 			ranges = <0 0 0x30000000 0x10000000
 				  1 0 0x21000A00 0x00000100>;
 		};
+
+		mdio: mdio at 02090300 {
+			compatible	= "ti,keystone-mdio", "ti,davinci_mdio";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg		= <0x02090300 0x100>;
+			status = "disabled";
+			clocks = <&clkpa>;
+			clock-names = "fck";
+			bus_freq	= <2500000>;
+		};
 	};
 };
-- 
1.7.9.5

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

* [PATCH 2/3] ARM: dts: keystone-evm: add 1g ethernet phys nodes
  2014-07-09 13:14 [PATCH 0/3] ARM: keystone: enable mdio support Grygorii Strashko
  2014-07-09 13:14 ` [PATCH 1/3] ARM: dts: keystone: add mdio devices entries Grygorii Strashko
@ 2014-07-09 13:14 ` Grygorii Strashko
  2014-07-09 13:14 ` [PATCH 3/3] ARM: keystone_defconfig: enable mdio and marvell eth phys Grygorii Strashko
  2014-07-09 14:24 ` [PATCH 0/3] ARM: keystone: enable mdio support Santosh Shilimkar
  3 siblings, 0 replies; 7+ messages in thread
From: Grygorii Strashko @ 2014-07-09 13:14 UTC (permalink / raw)
  To: linux-arm-kernel

Keystone EVMK2HX has two 1G Marvell 88E1111 Ethernet PHYs
installed, so add corresponding child nodes for 1G MDIO bus
and enable it.

For more information see schematics:
 http://wfcache.advantech.com/www/support/TI-EVM/download/Schematics/PDF/K2H_K2EVM-HK_SCH_A102_Rev1_0.pdf

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/k2hk-evm.dts |   12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/k2hk-evm.dts b/arch/arm/boot/dts/k2hk-evm.dts
index 1f90cbf..3223cc1 100644
--- a/arch/arm/boot/dts/k2hk-evm.dts
+++ b/arch/arm/boot/dts/k2hk-evm.dts
@@ -167,3 +167,15 @@
 		};
 	};
 };
+
+&mdio {
+	ethphy0: ethernet-phy at 0 {
+		compatible = "marvell,88E1111", "ethernet-phy-ieee802.3-c22";
+		reg = <0>;
+	};
+
+	ethphy1: ethernet-phy at 1 {
+		compatible = "marvell,88E1111", "ethernet-phy-ieee802.3-c22";
+		reg = <1>;
+	};
+};
-- 
1.7.9.5

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

* [PATCH 3/3] ARM: keystone_defconfig: enable mdio and marvell eth phys
  2014-07-09 13:14 [PATCH 0/3] ARM: keystone: enable mdio support Grygorii Strashko
  2014-07-09 13:14 ` [PATCH 1/3] ARM: dts: keystone: add mdio devices entries Grygorii Strashko
  2014-07-09 13:14 ` [PATCH 2/3] ARM: dts: keystone-evm: add 1g ethernet phys nodes Grygorii Strashko
@ 2014-07-09 13:14 ` Grygorii Strashko
  2014-07-09 14:24 ` [PATCH 0/3] ARM: keystone: enable mdio support Santosh Shilimkar
  3 siblings, 0 replies; 7+ messages in thread
From: Grygorii Strashko @ 2014-07-09 13:14 UTC (permalink / raw)
  To: linux-arm-kernel

Enable MDIO support for Keystone 2 SoCs and also
enable Marvell Ethernet PHYs support for Keystone 2 K2H EVM
which has two 1G Marvell 88E1111-B2 PHYs installed.

For more information see:
- http://www.advantech.com/Support/TI-EVM/EVMK2HX.aspx

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/configs/keystone_defconfig |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/configs/keystone_defconfig b/arch/arm/configs/keystone_defconfig
index 932ae40..e31e4d8 100644
--- a/arch/arm/configs/keystone_defconfig
+++ b/arch/arm/configs/keystone_defconfig
@@ -194,3 +194,5 @@ CONFIG_LEDS_TRIGGER_ONESHOT=y
 CONFIG_LEDS_TRIGGER_HEARTBEAT=y
 CONFIG_LEDS_TRIGGER_BACKLIGHT=y
 CONFIG_LEDS_TRIGGER_GPIO=y
+CONFIG_TI_DAVINCI_MDIO=y
+CONFIG_MARVELL_PHY=y
-- 
1.7.9.5

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

* [PATCH 0/3] ARM: keystone: enable mdio support
  2014-07-09 13:14 [PATCH 0/3] ARM: keystone: enable mdio support Grygorii Strashko
                   ` (2 preceding siblings ...)
  2014-07-09 13:14 ` [PATCH 3/3] ARM: keystone_defconfig: enable mdio and marvell eth phys Grygorii Strashko
@ 2014-07-09 14:24 ` Santosh Shilimkar
  3 siblings, 0 replies; 7+ messages in thread
From: Santosh Shilimkar @ 2014-07-09 14:24 UTC (permalink / raw)
  To: linux-arm-kernel

On Wednesday 09 July 2014 09:14 AM, Strashko, Grygorii wrote:
> Add DT definitions for Keystone 2 MDIO module and Ethernet PHYs for Keystone
> EVMK2HX evm. And enable MDIO support for Keystone 2 SoCs.
> 
> Grygorii Strashko (3):
>   ARM: dts: keystone: add mdio devices entries
>   ARM: dts: keystone-evm: add 1g ethernet phys nodes
>   ARM: keystone_defconfig: enable mdio and marvell eth phys
> 
Series looks good. I will merge it when the driver changes gets
merged. Please ping me just in case I forget about it.

Thanks !!

Regards,
Santosh

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

* [PATCH 1/3] ARM: dts: keystone: add mdio devices entries
  2014-07-09 13:14 ` [PATCH 1/3] ARM: dts: keystone: add mdio devices entries Grygorii Strashko
@ 2014-07-17 14:58   ` Grygorii Strashko
  2014-07-17 14:59     ` Grygorii Strashko
  0 siblings, 1 reply; 7+ messages in thread
From: Grygorii Strashko @ 2014-07-17 14:58 UTC (permalink / raw)
  To: linux-arm-kernel

The Keystone 2 has MDIO HW block which are compatible
to Davinci SoCs:
See "Gigabit Ethernet (GbE) Switch Subsystem"
  See http://www.ti.com/lit/ug/sprugv9d/sprugv9d.pdf

Hence, add corresponding DT entry for Keystone 2.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
---
 arch/arm/boot/dts/keystone.dtsi |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi
index c1414cb..9e31fe7 100644
--- a/arch/arm/boot/dts/keystone.dtsi
+++ b/arch/arm/boot/dts/keystone.dtsi
@@ -266,5 +266,16 @@
 			ranges = <0 0 0x30000000 0x10000000
 				  1 0 0x21000A00 0x00000100>;
 		};
+
+		mdio: mdio at 02090300 {
+			compatible	= "ti,keystone_mdio", "ti,davinci_mdio";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg		= <0x02090300 0x100>;
+			status = "disabled";
+			clocks = <&clkpa>;
+			clock-names = "fck";
+			bus_freq	= <2500000>;
+		};
 	};
 };
-- 
1.7.9.5

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

* [PATCH 1/3] ARM: dts: keystone: add mdio devices entries
  2014-07-17 14:58   ` Grygorii Strashko
@ 2014-07-17 14:59     ` Grygorii Strashko
  0 siblings, 0 replies; 7+ messages in thread
From: Grygorii Strashko @ 2014-07-17 14:59 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Santosh,
On 07/17/2014 05:58 PM, Grygorii Strashko wrote:
> The Keystone 2 has MDIO HW block which are compatible
> to Davinci SoCs:
> See "Gigabit Ethernet (GbE) Switch Subsystem"
>    See http://www.ti.com/lit/ug/sprugv9d/sprugv9d.pdf
>
> Hence, add corresponding DT entry for Keystone 2.

This is updated version of patch (missed v2 in subj).

>
> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
> ---
>   arch/arm/boot/dts/keystone.dtsi |   11 +++++++++++
>   1 file changed, 11 insertions(+)
>
> diff --git a/arch/arm/boot/dts/keystone.dtsi b/arch/arm/boot/dts/keystone.dtsi
> index c1414cb..9e31fe7 100644
> --- a/arch/arm/boot/dts/keystone.dtsi
> +++ b/arch/arm/boot/dts/keystone.dtsi
> @@ -266,5 +266,16 @@
>   			ranges = <0 0 0x30000000 0x10000000
>   				  1 0 0x21000A00 0x00000100>;
>   		};
> +
> +		mdio: mdio at 02090300 {
> +			compatible	= "ti,keystone_mdio", "ti,davinci_mdio";
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			reg		= <0x02090300 0x100>;
> +			status = "disabled";
> +			clocks = <&clkpa>;
> +			clock-names = "fck";
> +			bus_freq	= <2500000>;
> +		};
>   	};
>   };
>

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

end of thread, other threads:[~2014-07-17 14:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09 13:14 [PATCH 0/3] ARM: keystone: enable mdio support Grygorii Strashko
2014-07-09 13:14 ` [PATCH 1/3] ARM: dts: keystone: add mdio devices entries Grygorii Strashko
2014-07-17 14:58   ` Grygorii Strashko
2014-07-17 14:59     ` Grygorii Strashko
2014-07-09 13:14 ` [PATCH 2/3] ARM: dts: keystone-evm: add 1g ethernet phys nodes Grygorii Strashko
2014-07-09 13:14 ` [PATCH 3/3] ARM: keystone_defconfig: enable mdio and marvell eth phys Grygorii Strashko
2014-07-09 14:24 ` [PATCH 0/3] ARM: keystone: enable mdio support Santosh Shilimkar

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).