u-boot/drivers/usb/dwc3
Neil Armstrong 3dc4f83970 usb: dwc3-meson-g12a: add power-on/off of the PHYs
Power on/off the PHYs to enable power to the USB ports, fixing USB support
on Khadas VIM3/VIM3L boards.

The G12A USB complex has at least 2 USB2 PHYs, but one is muxed between the
DWC2 and DWC3 controller and the other one directly connected to the DWC3
controller. The USB3+PCIe combo PHY is muxed between the DWC3 controller
and a DW-PCIE controller.
All PHYs are optional, but it's type (usb2/usb3) and position are important
to determine it's capabilities, thus they are stored in a fixed size
array and the phy-name determines it's position, it's position determining
it's type and functionnalities.
This is why we need to loop over the array to power on all the DT provided
PHYs.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Marek Vasut <marex@denx.de>
2020-04-28 10:23:10 +02:00
..
core.c dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
core.h usb: dwc3: Fix UTMI/UTMIW phy interface initialization 2019-12-21 20:35:16 +01:00
dwc3-generic.c usb: Migrate to support live DT for some driver 2020-03-30 03:48:53 +02:00
dwc3-meson-g12a.c usb: dwc3-meson-g12a: add power-on/off of the PHYs 2020-04-28 10:23:10 +02:00
dwc3-omap.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
dwc3-uniphier.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
ep0.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
gadget.c dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
gadget.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
io.h common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
Kconfig usb: dwc3: Kconfig: get rid of obsolete mode selection 2019-10-24 11:28:17 +02:00
linux-compat.h bug.h: introduce WARN_ONCE 2018-06-07 17:08:06 -04:00
Makefile usb: dwc3: Add Meson G12A USB Glue 2019-05-09 10:38:32 +02:00
samsung_usb_phy.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ti_usb_phy.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00