]> git.karo-electronics.de Git - karo-tx-linux.git/commit
phy-sun4i-usb: Add id and vbus detection support for the otg phy (phy0)
authorHans de Goede <hdegoede@redhat.com>
Sat, 13 Jun 2015 12:37:45 +0000 (14:37 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Sat, 25 Jul 2015 10:15:47 +0000 (15:45 +0530)
commitd2332303efc00d35af7f3d8b025663965862b0e3
treefdc269cdef6730cfe7c96b1e16061c7ed9f02887
parent2d69a115a991fb7400c501dc643c47ca54cc4045
phy-sun4i-usb: Add id and vbus detection support for the otg phy (phy0)

The usb0 phy is connected to an OTG controller, and as such needs some special
handling:

1) It allows explicit control over the pullups, enable these on phy_init and
disable them on phy_exit.

2) It has bits to signal id and vbus detect to the musb-core, add support for
for monitoring id and vbus detect gpio-s for use in dual role mode, and set
these bits to the correct values for operating in host only mode when no
gpios are specified in the devicetree.

While updating the devicetree binding documentation also add documentation
for the sofar undocumented usage of regulators for vbus for all 3 phys.

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/phy-sun4i-usb.c