Skip to content

phy: usb: add support for STM32 usbphyc

Ahmad Fatoum barebox 1 version Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6regulator: import Linux regulator_bulk APIdrivers/regulator/core.c include/regulator.h+188 -00 replies
2/6phy: remove unused init_data parameterdrivers/phy/freescale/phy-fsl-imx8mq-usb.c drivers/phy/phy-core.c drivers/phy/usb-nop-xceiv.c +3 more+8 -150 replies
3/6phy: populate existing ->pwr member with phy-supplydrivers/phy/phy-core.c+10 -00 replies
4/6phy: introduce phy_get_by_indexdrivers/phy/phy-core.c include/linux/phy/phy.h+20 -00 replies
5/6regulator: port over Linux stm32 PWR regulator driverdrivers/regulator/Kconfig drivers/regulator/Makefile drivers/regulator/stm32-pwr.c+223 -00 replies
6/6phy: port over Linux stm32 usbphyc driverdrivers/phy/Kconfig drivers/phy/Makefile drivers/phy/phy-stm32-usbphyc.c+448 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] phy: usb: add support for STM32 usbphyc

This is only USB PHY support. Changes to the DWC2 (OTG) and/or OHCI (Host) are still needed to make USB on the MP1 work.

I haven't yet groked the relation between generic phy and usb phy frameworks, but the code is a straight port from Linux and it seems to work[1], so let's upstream it now to make collaboration easier.

[1]: clock the EHCI and power on the PHY and 20% of the time, the bus
can be enumerated completely. Still needs further debugging, but it's unlikely that the PHY driver is at fault.

Cheers,
Ahmad Fatoum (6):
regulator: import Linux regulator_bulk API
phy: remove unused init_data parameter
phy: populate existing ->pwr member with phy-supply
phy: introduce phy_get_by_index
regulator: port over Linux stm32 PWR regulator driver
phy: port over Linux stm32 usbphyc driver

 drivers/phy/Kconfig                        |  13 +
 drivers/phy/Makefile                       |   1 +
 drivers/phy/freescale/phy-fsl-imx8mq-usb.c |   2 +-
 drivers/phy/phy-core.c                     |  29 +-
 drivers/phy/phy-stm32-usbphyc.c            | 434 +++++++++++++++++++++
 drivers/phy/usb-nop-xceiv.c                |   2 +-
 drivers/pinctrl/pinctrl-tegra-xusb.c       |   4 +-
 drivers/regulator/Kconfig                  |   7 +
 drivers/regulator/Makefile                 |   1 +
 drivers/regulator/core.c                   | 139 +++++++
 drivers/regulator/stm32-pwr.c              | 215 ++++++++++
 drivers/usb/imx/imx-usb-phy.c              |   2 +-
 include/linux/phy/phy.h                    |  14 +-
 include/regulator.h                        |  49 +++
 14 files changed, 897 insertions(+), 15 deletions(-)
 create mode 100644 drivers/phy/phy-stm32-usbphyc.c
 create mode 100644 drivers/regulator/stm32-pwr.c
Signature · 7 lines
2.25.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox