]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
musb/allwinner: add support for configuring phy as well as device mode
authorAndriy Gapon <avg@FreeBSD.org>
Mon, 7 Sep 2020 06:53:29 +0000 (06:53 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Mon, 7 Sep 2020 06:53:29 +0000 (06:53 +0000)
commit1668d773a40f2681df0bcc3c8dc015e70b378af5
tree0621c92f5f5a20e37babf2e02a2efad5460be607
parentf2066952094aedeeb29b1de0563d7905fa283fe5
musb/allwinner: add support for configuring phy as well as device mode

At least on Orange Pi PC Plus even the host mode does not work without
enabling the phy and setting it to the host mode.

The driver will now parse dr_mode property and will try to configure
itself and the phy accordingly.
OTG mode is not supported yet, so it is treated as the device / peripheral
mode.

The phy is enabled -- powered on -- only for the host mode.

The device mode requires support from a phy driver, e.g., aw_usbphy on
Allwinner platform.
aw_usbphy does not support the device mode, so it cannnot work yet.

MFC after: 6 weeks
sys/dev/usb/controller/musb_otg_allwinner.c