AnsweredAssumed Answered

imx6 snvs-pwrkey not working

Question asked by Joe Deschamp on Jul 8, 2015
Latest reply on Dec 18, 2017 by Ken Lin

I am trying to get snvs-pwrkey to function on my custom hardware using a imx6Q to detect a power off request.

I modified my device tree and defconfig files to include the snvs-pwrkey driver, and I see it is instantiated and registered as a keyboard in dmesg.

However when I run evtest to test the keyboard I get no response from the keypress.

snvs-rtc is working fine, and I have another keyboard kpp working fine as well.


added to arch/arm/boot/dts/imx6qdl.dtsi


snvs_pwrkey: snvs-pwrkey@0x020cc000 {

compatible = "fsl,imx6sx-snvs-pwrkey";

reg = <0x020cc000 0x4000>;

interrupts = <0 4 IRQ_TYPE_LEVEL_HIGH>;

fsl,keycode = <116>; /* KEY_POWER */





added to arch/arm/boot/dts/imx6qdl-wandboard.dtsi


&snvs_pwrkey {

status = "okay";