AnsweredAssumed Answered

Wakeup the system from gpio interrupt

Question asked by sharmila d on Oct 20, 2019
Latest reply on Nov 13, 2019 by sharmila d


I am using pcf2127 rtc module in my custom board. The GPIO3_16 is used for rtc alarm interrupt. Now I have to suspend the module and when rtc alarm interrupt comes, it should wake up. I am using below command for suspending the system


echo mem > /sys/power/state


When rtc alarm interrupt comes , the system is not waking up. The configuration I have made in my dts file is as below


gpio-keys {

    compatible = "gpio-keys";

    wakeup {

      label = "wakeup gpio";

      gpios = <&gpio3 16 GPIO_ACTIVE_LOW>;

      linux,code = <29>;





But the system is not coming out of suspend mode. Please tell me where I am going wrong.

Thank You,