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?