mbox series

[0/3] stm32mp: handle ck_usbo_48m clock provided by USBPHYC

Message ID 20220426123750.579726-1-patrick.delaunay@foss.st.com
Headers show
Series stm32mp: handle ck_usbo_48m clock provided by USBPHYC | expand

Message

Patrick Delaunay April 26, 2022, 12:37 p.m. UTC
Update the RCC stm32mp1 clock driver to handle the USB_PHY_48
clock provided by USBPHYC and named "ck_usbo_48m".

With this series, the clock dependencies for USB PHYC, USBOTG (including
USB detection) and USBHOST are correctly managed.

See Linux kernel commit "ARM: dts: stm32: use usbphyc ck_usbo_48m as USBH
OHCI clock on stm32mp151" and "phy: stm32: register usbphyc as clock
provider of ck_usbo_48m clock"

Patrick


Patrick Delaunay (3):
  phy: stm32-usbphyc: add counter of PLL consumer
  phy: stm32-usbphyc: usbphyc is a clock provider of ck_usbo_48m clock
  clk: stm32mp: handle ck_usbo_48m clock provided by USBPHYC

 drivers/clk/clk_stm32mp1.c      |  35 ++++----
 drivers/phy/phy-stm32-usbphyc.c | 155 ++++++++++++++++++++++++++------
 2 files changed, 147 insertions(+), 43 deletions(-)