[PATCH v3 0/2] Introduce STM32 USB PHY Controller driver

From: Amelie Delaunay
Date: Fri Mar 02 2018 - 09:57:55 EST


This patchset adds support for STMicroelectronics STM32 USB PHY Controller
(USBPHYC) which is embedded in STM32MP1 SoC.
The STM32 USBPHYC block contains a dual port High Speed UTMI+ PHY and a UTMI
switch that selects either USB OTG controller or USB Host controller for the
second PHY port.

---
Changes in v3:
* Address Kishon comments: move to phy provider + child phy sub-nodes model.
* Remove st,utmi-switch property as the information is now passed through
phy cell for port#2.
* Rework phy init/exit by extracting pll management in dedicated functions.
* Make some clean-up around variable names and defines.

Changes in v2:
* Update diagram to better describe the context.
* Change boolean dt propery st,port2-switch-to-host into u32 st,utmi-switch.
* Silent phy creation failure in case of -EPROBE_DEFER.

Amelie Delaunay (2):
dt-bindings: phy: add support for STM32 USB PHY Controller (USBPHYC)
phy: stm32: add support for STM32 USB PHY Controller (USBPHYC)

.../devicetree/bindings/phy/phy-stm32-usbphyc.txt | 73 ++++
drivers/phy/st/Kconfig | 14 +
drivers/phy/st/Makefile | 1 +
drivers/phy/st/phy-stm32-usbphyc.c | 461 +++++++++++++++++++++
4 files changed, 549 insertions(+)
create mode 100644 Documentation/devicetree/bindings/phy/phy-stm32-usbphyc.txt
create mode 100644 drivers/phy/st/phy-stm32-usbphyc.c

--
2.7.4