i.MX8MP immediate usb wakeup from deep sleep

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX8MP immediate usb wakeup from deep sleep

Jump to solution
2,021 Views
antoluk
Contributor II

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
.

Tags (3)
0 Kudos
Reply
1 Solution
1,776 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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

View solution in original post

7 Replies
1,777 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

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

1,764 Views
antoluk
Contributor II
thanks for your help. the device goes to sleep normally
1,750 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

You are welcome~~

Wish you have a nice day

0 Kudos
Reply
1,778 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

For the  "the wakeup flag for the usb hub is set" Which path does this refer to?

0 Kudos
Reply
1,976 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Which version BSP are you using? Are you using nxp i.MX8MP EVK board? Then I will help confirm it.

0 Kudos
Reply
1,890 Views
antoluk
Contributor II
I checked it on the latest version of the demo image from the nxp website. usb behavior is also different from expected. Any device connected to USB 3.0 prevents the device from falling asleep.
0 Kudos
Reply
1,975 Views
antoluk
Contributor II
BSP version - 6.1.22-2.0.0 mickledore
Board - i.MX 8M Plus Evaluation Kit Enabling Power Measurement
0 Kudos
Reply