]> git.karo-electronics.de Git - linux-beck.git/commit
usb: tegra: Use regulators instead of GPIOs for USB PHY VBUS
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 17 Jul 2013 07:37:49 +0000 (10:37 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:58:18 +0000 (13:58 +0300)
commitf5b8c8b6d3b4697f28b818d8784e3e4b2a290022
tree085f50f9642745d41ff282b4134a45aafdd6167d
parent81d5dfe6d8b3ba48ffcaa882783185c07b5d2384
usb: tegra: Use regulators instead of GPIOs for USB PHY VBUS

The tegra ehci driver has enabled USB vbus regulators directly using
GPIOs and the device tree attribute nvidia,vbus-gpio. This is ugly
and causes error messages on boot when both the regulator driver
and the ehci driver want access to the same GPIO.

After this patch, usb vbus regulators for tegra usb phy devices are specified
with the device tree attribute vbus-supply = <&x> where x is a regulator defined
in the device tree. The old nvidia,vbus-gpio property is no longer supported.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/host/ehci-tegra.c
drivers/usb/phy/phy-tegra-usb.c
include/linux/usb/tegra_usb_phy.h