AnsweredAssumed Answered

How to configure iMX6 (Linux) to power resume via GPIO

Question asked by Norman C on Mar 3, 2014
Latest reply on Sep 10, 2014 by Sean Chen

I have a wandboard iMX6-solo platform with Yocto build.  I can set UART as power resume source, but I am not able to do it with GPIO.


with UART, I can do


echo enabled > /sys/de is no /platform/imx-uart.0/tty/ttymxc0/power/wakeup

echo mem > /sys/power/state


Then board go to sleep.  And any UART activity will wake up CPU.


But there is NO  /sys/class/gpio/gpio<n>/power/wakeup in the gpio /sys/class.  I wonder if there is any .config option I need to set in the Linux kernel?  Our do I have to setup the GPIO's IRQ as source of wakeup, if so, how?