I am using imx6ul evk with yocto. Once my evk goes to sleep I want to wake it up once interrupt is received on gpio2 21. I added following lines to my dts file
compatible = "gpio-keys";
label = "wakeup gpio";
gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
linux,code = <29>;
I suspend using following command
echo standby > /sys/power/state
but it doesn't wake up once interrupt(high to low) is received on gpio2 21. Where I am making a mistake? Can anyone help me find out reason for failure to wake up?