]> git.baikalelectronics.ru Git - kernel.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)
commitdf42b0ec16a5e4366e6c3557a78c343b7050a15a
tree085f50f9642745d41ff282b4134a45aafdd6167d
parent056163f9b3c9ba0c118229f8d150271b8730363e
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