]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dt: tegra trimslice: add vbus-gpio property
authorStephen Warren <swarren@nvidia.com>
Wed, 25 Jul 2012 20:02:44 +0000 (14:02 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:37 +0000 (08:22 -0700)
commit 01ad8063a5db9ac8320f197577a34b423ba64eca upstream.

On TrimSlice, Tegra's USB1 port may be routed to either an external micro
USB port, or an internal USB->SATA bridge for SSD or HDD. This muxing is
controlled by a GPIO. Whilst not strictly a VBUS GPIO, the TrimSlice
board files caused this GPIO to be set appropriately to enable the SATA
bridge by passing it as the VBUS GPIO to the USB driver. Echo this same
configuration in device tree to enable the SATA bridge.

An alternative might be to implement a full USB bus mux driver. However,
that seems over-complex right now.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/tegra-trimslice.dts

index 84a952391b0bbe6d5c14b8bf45b0ec5c8e704519..27fb8a67ea42ffa3887f646a903bbb9f04be3493 100644 (file)
 
        usb@c5000000 {
                status = "okay";
+               nvidia,vbus-gpio = <&gpio 170 0>; /* gpio PV2 */
        };
 
        usb@c5004000 {