2024-11-24 04:11 PM
Hello, we have trouble finding any dts example for USB dual role utilizing STPMIC1 internal boost regulator and power switches. Our design is pretty close to attached scheme (from AN5260 page 6).
We need to know how to use stpmic1 linux driver to dynamically start and stop boots regulator and power swich on USB device insertion. We use USB-C witch additional IC but for simplicity just assume oldstyle ID pin and VBUS detection.
Could we get information what we need to do for this functionality to work? Any driver modyfications needs to be done? Maybe theory of operation (linux side)?
Any starting point for further work will be helpful. Thank you!
2024-11-24 11:36 PM
Hi,
please have a look to
(note that VBUS GPIO should have a voltage divider as listed in AN4879. STM32MP1 OTG_VBUS pin should be left open)
For STPMIC1 BOOST, I think you should look at https://wiki.st.com/stm32mpu/wiki/Regulator_overview and https://github.com/STMicroelectronics/linux/blob/v6.6-stm32mp/Documentation/devicetree/bindings/mfd/st,stpmic1.yaml
Regards.