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
compatible = "gpio-keys";
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.