USB OTG FS in low power mode
Hi,
I'm using a STM32MPU157C with linux 6.6, uboot, OP-TEE 4.0 and TF-A 2.10 and I have a Device Tree (for linux and uboot) which declares the USB OTG node as following :
&usbotg_hs {
compatible = "st,stm32mp15-fsotg", "snps,dwc2";
pinctrl-names = "default";
dr_mode = "host";
pinctrl-0 = <&usbotg_hs_pins &usbotg_fs_dp_dm_pins>;
vbus-supply = <&vbus_sw>;
/delete-property/ wakeup-source;
};
usbotg_hs_pins: usbotg-hs-0 {
pins {
pinmux = <STM32_PINMUX('A', 10, ANALOG)>; /* OTG_ID */
};
};
usbotg_fs_dp_dm_pins: usbotg-fs-dp-dm-0 {
pins {
pinmux = <STM32_PINMUX('A', 11, ANALOG)>, /* OTG_FS_DM */
<STM32_PINMUX('A', 12, ANALOG)>; /* OTG_FS_DP */
};
};I explicitly use it in FS as a Host and remove the wakeup-source declared by the stm32mpu151.dtsi.
My problem is that I can see that when entering in suspend, there is a difference of ~4-5mW in power consumption depending on if the USB node is enabled or not in the device tree. I can't figure out why. (and I'm sure the MPU goes into STM32_PM_CSTOP_ALLOW_STANDBY_DDR_SR)
If I understand well, default pins are already in their lowest power mode (ANALOG) and the linux dwc2 driver do handle all deactivation of clocks and power rails.
Did I miss something ?
Any help is more than welcome,
Thanks in advance
