[IMX6DL] KEY_EVT evtest problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

[IMX6DL] KEY_EVT evtest problem

跳至解决方案
1,901 次查看
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

 

标签 (2)
0 项奖励
回复
1 解答
1,864 次查看
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 项奖励
回复
2 回复数
1,866 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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

 

0 项奖励
回复
1,865 次查看
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 项奖励
回复