AnsweredAssumed Answered

wake up from sleep on gpio interrupt

Question asked by Pratyush Tomar on Jun 14, 2016
Latest reply on May 23, 2017 by Jesper Åhman


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

gpio-keys {

    compatible = "gpio-keys";

    wakeup {

      label = "wakeup gpio";

      gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;

      linux,code = <29>;

      gpio-key,wakeup;

    };

  };

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?

Outcomes