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:
compatible = "gpio-keys";
label = "Power Button";
gpios = <&gpio4 3 1>;
linux,code = <116>; // KEY_POWER
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?