I'm using imx6slevk board with yocto bsp kernel version 4.9.88.
I want to configure a gpio pin(power button) to send the board to stand-by mode.
I'm able to enter stand by mode using echo "freeze" > /sys/power/state
and on pressing the power button the board wakes up
However the board doesn't go into standby on pressing the power button.
This is my dts node:
gpio-keys {
compatible = "gpio-keys";
power {
label = "Power Button";
gpios = <&gpio4 3 1>;
linux,code = <116>; // KEY_POWER
gpio-key,wakeup;
debounce-interval = <1>;
status = "okay";
};
};
like gpio-key,wakeup; I tried adding gpio-key,sleep but it had no effect
is there any way I can configure this?