[IMX6DL] KEY_EVT evtest problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[IMX6DL] KEY_EVT evtest problem

Jump to solution
900 Views
Whitehouse112
Contributor I

Hi everyone,

i'm trying to capture KEYS_EVT on a IMX6DL with Linux (kernel 4.9.11). I set two gpio input and configured gpio-keys from dtsi. Then I have a script that listen for evtest. the problem is that only one event is read correctly, while the second one never happens. The configuration is the same and I don't understand why only one event works.

Whitehouse112_1-1671525571659.png

Whitehouse112_0-1671525537619.png

Whitehouse112_2-1671525614098.png

The problem is on gpio1 13, on KEY_POWER event. I've already checked that this pin is not use by other peripherals. The PCB schematic is the following: I tested the AC_MISS signal and works correctly (high to low when ac miss)

Whitehouse112_0-1671525948182.png

 

Labels (2)
0 Kudos
Reply
1 Solution
863 Views
Whitehouse112
Contributor I

Hi jimmy,

the problem is solved: i forgot to add "pinctrl-0 = <&pinctrl_gpio_keys>" in order to link the GPIO.

View solution in original post

0 Kudos
Reply
2 Replies
865 Views
jimmychan
NXP TechSupport
NXP TechSupport

Have you try to output 1 or 0 from this gpio pin?

 

0 Kudos
Reply
864 Views
Whitehouse112
Contributor I

Hi jimmy,

the problem is solved: i forgot to add "pinctrl-0 = <&pinctrl_gpio_keys>" in order to link the GPIO.

0 Kudos
Reply