Wakeup on USB, Ethernet & i2c interfaces

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

Wakeup on USB, Ethernet & i2c interfaces

Jump to solution
1,813 Views
nirmalluhana
Contributor IV

Hi,

Release: Yocto-Morty (4.9.51_GA)

Board: i.Mx8mq EVK

I want to configure wake-up functionality on USB, Ethernet & i2c interfaces. For that, I have followed many NXP forums and configured wake-up on those interfaces using sysfs.

For USB interface wake-up enabled wake-up option as below: 

echo enabled > /sys/devices/platform/usb@38200000/38200000.dwc3/xhci-hcd.0.auto/usb1/power/wakeup
echo enabled > /sys/devices/platform/usb@38200000/38200000.dwc3/xhci-hcd.0.auto/usb1/1-1/power/wakeup
echo enabled > /sys/devices/platform/usb@38200000/38200000.dwc3/xhci-hcd.0.auto/usb2/power/wakeup

For Ethernet interface wake-up enabled wake-up option as below:

echo enabled > /sys/devices/platform/30be0000.ethernet/net/eth0/power/wakeup

After configuring wake-up on those interfaces I freeze the system by echo freeze > /sys/power/state and send a magic packet (sudo wakeonlan <Device MAC ADDRESS>)from other PC connected in the same network but failed to wake-up on Ethernet interface. Next, connect the USB mouse to wake-up system on the USB interface and it is also not working in my case.

I observed that wake-up functionality working with push-button and UART interface and to activate it need to enable it as below:

echo enabled > /sys/devices/platform/30860000.serial/tty/ttymxc0/power/wakeup

So, at that time after freezing the system when I push any key system was resumed.

Did I missed anything or step to activate wake-up functionality on USB, i2c & Ethernet interfaces?

Labels (1)
1 Solution
1,459 Views
igorpadykov
NXP Employee
NXP Employee

Hi Nirmal

according to e11231: USB: Clock must remain on during suspend/resume

i.MX8MDQ Errata : USB cannot be used as a wakeup source.
https://www.nxp.com/docs/en/errata/IMX8MDQLQ_0N14W.pdf

- i2c has not wake capability

-for ethernet wake one can look at documentation

fsl-fec.txt\net\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

Wakeup using Wake-on-Lan (ethernet magic packet) for Apalis iMX6Q from suspend mem (Linux) - Toradex... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
1,460 Views
igorpadykov
NXP Employee
NXP Employee

Hi Nirmal

according to e11231: USB: Clock must remain on during suspend/resume

i.MX8MDQ Errata : USB cannot be used as a wakeup source.
https://www.nxp.com/docs/en/errata/IMX8MDQLQ_0N14W.pdf

- i2c has not wake capability

-for ethernet wake one can look at documentation

fsl-fec.txt\net\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

Wakeup using Wake-on-Lan (ethernet magic packet) for Apalis iMX6Q from suspend mem (Linux) - Toradex... 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,459 Views
nirmalluhana
Contributor IV

Hi,

Any update on this?

Best regards,

Nirmal

0 Kudos