- The PHY has to be USB_OTG_HS_EMBEDDED_PHY on that board as it doesn't have an embedded full-speed PHY
Strange. STM32F72xxx SoC reference manual mentions an on-chip full-speed PHY.
- The check on CONFIG_SERIES_STM32F7X is wrong and should be CONFIG_SOC_SERIES_STM32F7X instead.
Fixed.
I also I believe that the STM32F7 SoCs without embedded HS speed behave the same than the STM32F4. Therefore I think that both OTGHSULPI and OTGPHYC clocks should be enabled if the SoC has an internal HS PHY, otherwise OTGHSULPI should be disabled.
I agree. That's why I am trying to find a way to define the PHYs (maybe in device tree).
diff --git a/drivers/usb/device/usb_dc_stm32.c b/drivers/usb/device/usb_dc_stm32.c index f11233535..c85bca9a5 100644 --- a/drivers/usb/device/usb_dc_stm32.c +++ b/drivers/usb/device/usb_dc_stm32.c @@ -248,17 +248,14 @@ static int usb_dc_stm32_clock_enable(void)