Even if HW could permit that, in STM32MP1 series, we do not offer any support for USBPHYC, USBH or OTG IPs configuration on Cortex-M4 side.
Please also note that OTG device in High-Speed mode is required to be managed by Cortex-A7 during Flash programming phases (but Cortex-M4 is not used during this sequence).
Please note that both USB share some ressources (e.g. same PLL inside USBPHYC) which make sharing USBH under Linux Control and OTG under M4 control very complex when we talk about init and low power modes.
We do not recommend using USB from Cortex-M4 which should be managed mostly as a coprocessor.
Could you share the use case you have in mind ?
In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent