AnsweredAssumed Answered

key_power button not getting interrupts

Question asked by Anantha Raman on May 3, 2019
Latest reply on Apr 2, 2020 by tao lu

Hi all,


I am trying to enable power_btn in imx8qm by adding

gpio-keys {
compatible = "gpio-keys";
label = "gpio-keys";
status = "okay";

power_btn: power_btn {
status = "okay";
label = "key_power";
linux,code = <KEY_POWER>;
gpios = <&gpiox xx GPIO_ACTIVE_LOW>;
debounce-interval = <10>;
linux,input-type = <EV_KEY>;

in dts file.


When I check /proc/interrupts the interrupt is registered, but no interrupts are generated when pressing the button.


Thanks in advance