]> git.baikalelectronics.ru Git - kernel.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)
commit107a0dbe3176e8c3b28f0813ad56de3606ae5126
treefdc269cdef6730cfe7c96b1e16061c7ed9f02887
parentad3a7034cb8bbad25110ab95423b138879672bf6
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