linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] ARM: dts: DRA72: switch to cpsw slave0 for ethernet
@ 2015-06-22  9:03 Mugunthan V N
  2015-07-14 11:08 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Mugunthan V N @ 2015-06-22  9:03 UTC (permalink / raw)
  To: tony; +Cc: linux-omap, linux-kernel, Vignesh R, Mugunthan V N

From: Vignesh R <vigneshr@ti.com>

On DRA72 EVM, cpsw slave1 is muxed with VIN2A, hence switch to cpsw
slave0 for ethernet. Add gpio hog entry to pcf_gpio_21 in order to
select cpsw slave0.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 arch/arm/boot/dts/dra72-evm.dts | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/dra72-evm.dts b/arch/arm/boot/dts/dra72-evm.dts
index ce0390f..b05d123 100644
--- a/arch/arm/boot/dts/dra72-evm.dts
+++ b/arch/arm/boot/dts/dra72-evm.dts
@@ -274,6 +274,12 @@
 		interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
 		interrupt-controller;
 		#interrupt-cells = <2>;
+
+		cpsw_sel_s0 {
+			gpio-hog;
+			gpios = <4 GPIO_ACTIVE_HIGH>;
+			output-low;
+		};
 	};
 };
 
@@ -481,9 +487,10 @@
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&cpsw_default>;
 	pinctrl-1 = <&cpsw_sleep>;
+	slaves = <1>;
 };
 
-&cpsw_emac1 {
+&cpsw_emac0 {
 	phy_id = <&davinci_mdio>, <3>;
 	phy-mode = "rgmii";
 };
@@ -492,7 +499,6 @@
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&davinci_mdio_default>;
 	pinctrl-1 = <&davinci_mdio_sleep>;
-	active_slave = <1>;
 };
 
 &dcan1 {
-- 
2.4.2.387.gf86f31a

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: [PATCH 1/1] ARM: dts: DRA72: switch to cpsw slave0 for ethernet
  2015-06-22  9:03 [PATCH 1/1] ARM: dts: DRA72: switch to cpsw slave0 for ethernet Mugunthan V N
@ 2015-07-14 11:08 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2015-07-14 11:08 UTC (permalink / raw)
  To: Mugunthan V N; +Cc: linux-omap, linux-kernel, Vignesh R

* Mugunthan V N <mugunthanvnm@ti.com> [150622 02:05]:
> From: Vignesh R <vigneshr@ti.com>
> 
> On DRA72 EVM, cpsw slave1 is muxed with VIN2A, hence switch to cpsw
> slave0 for ethernet. Add gpio hog entry to pcf_gpio_21 in order to
> select cpsw slave0.
> 
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>

Applying into omap-for-v4.3/dt thanks.

Tony

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

end of thread, other threads:[~2015-07-14 11:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22  9:03 [PATCH 1/1] ARM: dts: DRA72: switch to cpsw slave0 for ethernet Mugunthan V N
2015-07-14 11:08 ` 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).