devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add AM437x GP EVM cpsw DT node
@ 2014-05-13  8:44 Mugunthan V N
  2014-05-13  8:44 ` [PATCH 1/2] ARM: dts: am4372: Add cpsw phy sel dt node Mugunthan V N
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Mugunthan V N @ 2014-05-13  8:44 UTC (permalink / raw)
  To: bcousson-rdvid1DuHRBWk0Htik3J/w, tony-4v6yS6AI5VpBDgjK7y7TUQ
  Cc: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-omap-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Mugunthan V N

Add AM437x GP EVM cpsw device tree node

Mugunthan V N (2):
  ARM: dts: am4372: Add cpsw phy sel dt node
  ARM: dts: am437x-gp-evm: Add ethernet support for GP EVM

 arch/arm/boot/dts/am4372.dtsi       |  6 ++++
 arch/arm/boot/dts/am437x-gp-evm.dts | 72 +++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

-- 
1.9.2.459.g68773ac

--
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] 4+ messages in thread

* [PATCH 1/2] ARM: dts: am4372: Add cpsw phy sel dt node
  2014-05-13  8:44 [PATCH 0/2] Add AM437x GP EVM cpsw DT node Mugunthan V N
@ 2014-05-13  8:44 ` Mugunthan V N
  2014-05-13  8:44 ` [PATCH 2/2] ARM: dts: am437x-gp-evm: Add ethernet support for GP EVM Mugunthan V N
  2014-05-14 23:16 ` [PATCH 0/2] Add AM437x GP EVM cpsw DT node Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Mugunthan V N @ 2014-05-13  8:44 UTC (permalink / raw)
  To: bcousson, tony; +Cc: devicetree, linux-omap, linux-kernel, Mugunthan V N

Add cpsw phy sel device tree node for selecting phy mode in control module

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 arch/arm/boot/dts/am4372.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi
index ac37ac9..0ff84cf 100644
--- a/arch/arm/boot/dts/am4372.dtsi
+++ b/arch/arm/boot/dts/am4372.dtsi
@@ -521,6 +521,12 @@
 				/* Filled in by U-Boot */
 				mac-address = [ 00 00 00 00 00 00 ];
 			};
+
+			phy_sel: cpsw-phy-sel@44e10650 {
+				compatible = "ti,am43xx-cpsw-phy-sel";
+				reg= <0x44e10650 0x4>;
+				reg-names = "gmii-sel";
+			};
 		};
 
 		epwmss0: epwmss@48300000 {
-- 
1.9.2.459.g68773ac

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

* [PATCH 2/2] ARM: dts: am437x-gp-evm: Add ethernet support for GP EVM
  2014-05-13  8:44 [PATCH 0/2] Add AM437x GP EVM cpsw DT node Mugunthan V N
  2014-05-13  8:44 ` [PATCH 1/2] ARM: dts: am4372: Add cpsw phy sel dt node Mugunthan V N
@ 2014-05-13  8:44 ` Mugunthan V N
  2014-05-14 23:16 ` [PATCH 0/2] Add AM437x GP EVM cpsw DT node Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Mugunthan V N @ 2014-05-13  8:44 UTC (permalink / raw)
  To: bcousson, tony; +Cc: devicetree, linux-omap, linux-kernel, Mugunthan V N

Add CPSW ethernet support for AM437x GP EVM which has one slave pinned out

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 arch/arm/boot/dts/am437x-gp-evm.dts | 72 +++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts
index 4e92d9e..8dc1c6e 100644
--- a/arch/arm/boot/dts/am437x-gp-evm.dts
+++ b/arch/arm/boot/dts/am437x-gp-evm.dts
@@ -98,6 +98,58 @@
 			0x264 (PIN_INPUT_PULLUP | MUX_MODE7)  /* spi2_d0.gpio3_22 */
 		>;
 	};
+
+	cpsw_default: cpsw_default {
+		pinctrl-single,pins = <
+			/* Slave 1 */
+			0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txen.rgmii1_txen */
+			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxdv.rgmii1_rxctl */
+			0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_txd3 */
+			0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_txd2 */
+			0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd1.rgmii1_txd1 */
+			0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txd0.rgmii1_txd0 */
+			0x12c (PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mii1_txclk.rmii1_tclk */
+			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxclk.rmii1_rclk */
+			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rxd3 */
+			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rxd2 */
+			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd1.rgmii1_rxd1 */
+			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mii1_rxd0.rgmii1_rxd0 */
+		>;
+	};
+
+	cpsw_sleep: cpsw_sleep {
+		pinctrl-single,pins = <
+			/* Slave 1 reset value */
+			0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+		>;
+	};
+
+	davinci_mdio_default: davinci_mdio_default {
+		pinctrl-single,pins = <
+			/* MDIO */
+			0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)	/* mdio_data.mdio_data */
+			0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)			/* mdio_clk.mdio_clk */
+		>;
+	};
+
+	davinci_mdio_sleep: davinci_mdio_sleep {
+		pinctrl-single,pins = <
+			/* MDIO reset value */
+			0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
+			0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
+		>;
+	};
 };
 
 &i2c0 {
@@ -179,3 +231,23 @@
 	dr_mode = "host";
 	status = "okay";
 };
+
+&mac {
+	slaves = <1>;
+	pinctrl-names = "default", "sleep";
+	pinctrl-0 = <&cpsw_default>;
+	pinctrl-1 = <&cpsw_sleep>;
+	status = "okay";
+};
+
+&davinci_mdio {
+	pinctrl-names = "default", "sleep";
+	pinctrl-0 = <&davinci_mdio_default>;
+	pinctrl-1 = <&davinci_mdio_sleep>;
+	status = "okay";
+};
+
+&cpsw_emac0 {
+	phy_id = <&davinci_mdio>, <0>;
+	phy-mode = "rgmii";
+};
-- 
1.9.2.459.g68773ac

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

* Re: [PATCH 0/2] Add AM437x GP EVM cpsw DT node
  2014-05-13  8:44 [PATCH 0/2] Add AM437x GP EVM cpsw DT node Mugunthan V N
  2014-05-13  8:44 ` [PATCH 1/2] ARM: dts: am4372: Add cpsw phy sel dt node Mugunthan V N
  2014-05-13  8:44 ` [PATCH 2/2] ARM: dts: am437x-gp-evm: Add ethernet support for GP EVM Mugunthan V N
@ 2014-05-14 23:16 ` Tony Lindgren
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2014-05-14 23:16 UTC (permalink / raw)
  To: Mugunthan V N; +Cc: bcousson, devicetree, linux-omap, linux-kernel

* Mugunthan V N <mugunthanvnm@ti.com> [140513 01:45]:
> Add AM437x GP EVM cpsw device tree node
> 
> Mugunthan V N (2):
>   ARM: dts: am4372: Add cpsw phy sel dt node
>   ARM: dts: am437x-gp-evm: Add ethernet support for GP EVM

Thanks applying both into omap-for-v3.16/dt.

Tony

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

end of thread, other threads:[~2014-05-14 23:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13  8:44 [PATCH 0/2] Add AM437x GP EVM cpsw DT node Mugunthan V N
2014-05-13  8:44 ` [PATCH 1/2] ARM: dts: am4372: Add cpsw phy sel dt node Mugunthan V N
2014-05-13  8:44 ` [PATCH 2/2] ARM: dts: am437x-gp-evm: Add ethernet support for GP EVM Mugunthan V N
2014-05-14 23:16 ` [PATCH 0/2] Add AM437x GP EVM cpsw DT node Tony Lindgren

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