* [PATCH 1/3] ARM: dts: keystone: add mdio devices entries
[not found] ` <1404911660-10047-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
@ 2014-07-09 13:14 ` Grygorii Strashko
[not found] ` <1404911660-10047-2-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
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: santosh.shilimkar-l0cyMroinI0
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, ivan.khoronzhuk-l0cyMroinI0,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Grygorii Strashko
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-l0cyMroinI0@public.gmane.org>
---
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@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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/3] ARM: dts: keystone-evm: add 1g ethernet phys nodes
[not found] ` <1404911660-10047-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
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: santosh.shilimkar-l0cyMroinI0
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, ivan.khoronzhuk-l0cyMroinI0,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Grygorii Strashko
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-l0cyMroinI0@public.gmane.org>
---
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@0 {
+ compatible = "marvell,88E1111", "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ };
+
+ ethphy1: ethernet-phy@1 {
+ compatible = "marvell,88E1111", "ethernet-phy-ieee802.3-c22";
+ reg = <1>;
+ };
+};
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] ARM: keystone_defconfig: enable mdio and marvell eth phys
[not found] ` <1404911660-10047-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
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: santosh.shilimkar-l0cyMroinI0
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, ivan.khoronzhuk-l0cyMroinI0,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Grygorii Strashko
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-l0cyMroinI0@public.gmane.org>
---
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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/3] ARM: keystone: enable mdio support
[not found] ` <1404911660-10047-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
` (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: Strashko, Grygorii
Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Khoronzhuk, Ivan,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread