]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
arm: dts: dra72: Use gpio hog only for baseboard ethernet glsdk-7.02.00.02
authorNikhil Devshatwar <nikhil.nd@ti.com>
Mon, 24 Aug 2015 10:08:35 +0000 (15:38 +0530)
committerPraneeth Bajjuri <praneeth@ti.com>
Thu, 27 Aug 2015 18:19:22 +0000 (13:19 -0500)
On J6eco EVM, the ethernet is muxed with the vin2a interface.
For using vin2a, ethernet slave0 is rerouted to use the PHY1.
This is done by hogging a GPIO to output-low.

For vision use cases, we need to set the GPIO from driver.
Therefore, hogging is not correct solution. Also, gpio-hog does not
respect the status="disabled" property.

So keep the gpio hog node in baseboard dts but delete from the vision dts.
This will enable ethernet on baseboard and would allow setting thr GPIO
for vision use cases.

Fixes: 1eedfa4af ("arm: dts: dra72-evm: New device tree for dra72-evm")
Change-Id: I94d6aba3f5582da5664d4a91734b638dd90c572e
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
arch/arm/boot/dts/dra72-evm-vision.dts
arch/arm/boot/dts/dra72-evm.dts

index 96cfabe6387b3dc5319d1c612cf3d11aeaf34a5f..ea9ef2cadcc5c8defe7b353e600589bc65d19ace 100644 (file)
@@ -150,6 +150,11 @@ i2cexp: &i2c5 {
        /* No board muxes */
 };
 
+/* This is to not hog the GPIO
+ * We need to set the gpio from the camera driver
+ * Note that this will disable the ethernet */
+/delete-node/ &sel_enet_mux_hog;
+
 &ovcam4 {
        /* No board muxes */
        mux-gpios =
index 46f709044bd19bce658c460c0ed628e15617ebf8..cf1c8d409608ab1ca726750b10e303bfe0988469 100644 (file)
                interrupt-controller;
                #interrupt-cells = <2>;
 
+               sel_enet_mux_hog: cpsw_sel_s0 {
+                       gpio-hog;
+                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                       output-low;
+               };
        };
 
        tlv320aic3106: tlv320aic3106@19 {