zephyr/dts
Marcin Niestroj f72ef5c237 drivers: usb: stm32: fix support of STM32U5 OTG_HS with embedded PHY
Introduce new binding "st,stm32u5-otghs-phy" for OTG_HS PHY. This allows to
configure clock source and handle STM32U5 specific OTG_HS PHY behavior in
driver implementation in a more readable way.

Move OTG_HS PHY clock selection (previously <&rcc STM32_SRC_HSI48
ICKLK_SEL(0)>) from OTG_HS node to OTG_HS PHY node.

Rename USBPHYC_SEL -> OTGHS_SEL which matches the definition in the stm32u5
CCIPR2 register (RM0456 Rev 5, Section 11.8.47).

Support enabling OTG_HS PHY clock, which is bit 15 (OTGHSPHYEN) in
RCC_AHB2ENR1. Change OTG_HS clock to be bit 14 (OTGEN).

Calculate in runtime OTG_HS PHY clock source frequency. Try to match that
to supported (16, 19.2, 20, 24, 26, 32 MHz) frequencies and select proper
option with HAL_SYSCFG_SetOTGPHYReferenceClockSelection() API (instead of
hardcoded 16 MHz selection).

Co-authored-by: Adrian Chadd <adrian.chadd@meta.com>
Signed-off-by: Adrian Chadd <adrian.chadd@meta.com>
Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2024-12-11 08:00:03 +01:00
..
arc/synopsys drivers: spi: dw: define max-xfer-size 2024-01-20 13:11:42 +01:00
arm drivers: usb: stm32: fix support of STM32U5 OTG_HS with embedded PHY 2024-12-11 08:00:03 +01:00
arm64 dts: arm64: broadcom: bcm2712: Add node for RP1 GPIO 2024-12-06 12:14:37 +01:00
bindings drivers: usb: stm32: fix support of STM32U5 OTG_HS with embedded PHY 2024-12-11 08:00:03 +01:00
common dts: common: nordic: Add clock property for fast PWM120 2024-12-02 14:25:09 +01:00
nios2/intel dts: nios2: intel: Fix unit and first address mismatch 2024-09-18 15:30:24 +02:00
posix
riscv dts: esp32: enhance memory regions description 2024-12-07 11:02:46 +01:00
sparc/gaisler soc/gr716a: Enable GPIO support on LEON GR716A 2024-07-29 14:27:15 +02:00
x86/intel dts/x86: use proper unit-address values 2024-11-18 13:18:53 -05:00
xtensa dts: esp32: enhance memory regions description 2024-12-07 11:02:46 +01:00
binding-template.yaml
Kconfig dts: drop HAS_DTS 2023-10-20 12:18:17 -07:00