Closed hansemro closed 2 years ago
&twl {
twl_pwrbutton: pwrbutton {
compatible = "ti,twl4030-pwrbutton";
interrupts = <0>;
};
};
Adding the following (and enabling its corresponding kernel config) will create an input device, but evtest reports no events upon pressing the power button.
twl6030-pwrbutton driver support from klokik's Jem (Kindle Fire HD 8.9") mainline linux fork works great. I will prepare patches for this repo soon.
amazon-otter:~$ evtest /dev/input/event1
Input driver version is 1.0.1
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0
Input device name: "twl4030_pwrbutton"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
Event: time 1643193696.698334, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1643193696.698334, -------------- SYN_REPORT ------------
Event: time 1643193696.884893, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1643193696.884893, -------------- SYN_REPORT ------------
Event: time 1643193697.471046, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1643193697.471046, -------------- SYN_REPORT ------------
Event: time 1643193697.646950, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1643193697.646950, -------------- SYN_REPORT ------------
Event: time 1643193698.847149, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1643193698.847149, -------------- SYN_REPORT ------------
Event: time 1643193699.891891, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1643193699.891891, -------------- SYN_REPORT ------------
References:
Issue: Power button cannot be used as an input due to it missing proper drivers.
Notes:
kc1_twl6030 snippet:
Tasks/Status: