Hello,
I'm working with i.MX8MP and the task is to wake up via usb. The problem is that the device instantly wakes up from deep sleep if the device is connected to one of the usb ports and the wakeup flag for the usb hub is set. I found a description of the problem and a solution to it in errata for imx8MP ERR050689: USB: USB3 device immediate wakeup in low power mode. But I don’t understand at all how to implement the solution.
I would appreciate your help.
Solved! Go to Solution.
echo enabled > /sys/devices/platform/soc@0/30800000.bus/30a30000.i2c/i2c-1/1-0050/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.1.auto/usb1/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.1.auto/usb1/1-1/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.1.auto/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.1.auto/usb2/power/wakeup
echo enabled > /sys/devices/platform/soc@0/381f0040.usb-phy/power/wakeup
echo enabled > /sys/devices/platform/soc@0/382f0040.usb-phy/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10100.usb/power/wakeup
echo enabled > /sys/devices/genpd:3:32f10000.blk-ctrl/power/wakeup
echo enabled > /sys/devices/genpd:2:32f10000.blk-ctrl/power/wakeup
echo auto > /sys/bus/usb/devices/1-1/power/control
echo auto > /sys/bus/usb/devices/usb1/power/control
echo auto > /sys/bus/usb/devices/usb2/power/control
You can try entering the above before attempting echo mem
echo enabled > /sys/devices/platform/soc@0/30800000.bus/30a30000.i2c/i2c-1/1-0050/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.1.auto/usb1/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.1.auto/usb1/1-1/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.1.auto/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10108.usb/38200000.usb/xhci-hcd.1.auto/usb2/power/wakeup
echo enabled > /sys/devices/platform/soc@0/381f0040.usb-phy/power/wakeup
echo enabled > /sys/devices/platform/soc@0/382f0040.usb-phy/power/wakeup
echo enabled > /sys/devices/platform/soc@0/32f10100.usb/power/wakeup
echo enabled > /sys/devices/genpd:3:32f10000.blk-ctrl/power/wakeup
echo enabled > /sys/devices/genpd:2:32f10000.blk-ctrl/power/wakeup
echo auto > /sys/bus/usb/devices/1-1/power/control
echo auto > /sys/bus/usb/devices/usb1/power/control
echo auto > /sys/bus/usb/devices/usb2/power/control
You can try entering the above before attempting echo mem
You are welcome~~
Wish you have a nice day
For the "the wakeup flag for the usb hub is set" Which path does this refer to?
Which version BSP are you using? Are you using nxp i.MX8MP EVK board? Then I will help confirm it.