]> git.karo-electronics.de Git - karo-tx-linux.git/commit
phy-sun4i-usb: Add support for monitoring vbus via a power-supply
authorHans de Goede <hdegoede@redhat.com>
Sat, 13 Jun 2015 12:37:51 +0000 (14:37 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 25 Jul 2015 10:15:47 +0000 (15:45 +0530)
commit8665c18bece7965c3690ac3824bef2f97bae3d71
tree553dbafc72dd14fe8d5d74a155fe61289400f968
parent1aedf3a7a47b8bbd38c147eeb0c83816c5590215
phy-sun4i-usb: Add support for monitoring vbus via a power-supply

On some boards there is no vbus_det gpio pin, instead vbus-detection for
otg can be done via the pmic.

This commit adds support for monitoring vbus_det via the power_supply
exported by the pmic, enabling support for otg on these boards.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Documentation/devicetree/bindings/phy/sun4i-usb-phy.txt
drivers/phy/Kconfig
drivers/phy/phy-sun4i-usb.c