Input: Add tps65219 interrupt driven powerbutton
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Fri, 4 Nov 2022 15:23:10 +0000 (16:23 +0100)
committerLee Jones <lee@kernel.org>
Wed, 7 Dec 2022 13:28:15 +0000 (13:28 +0000)
commitc8cf6e2328ce42ba016f6c321ba663d07e6f70ff
tree77a8921e65fba91e61d2d39869d52d0eca2aeb9a
parent74c17a0a49a6ad3b32cb130f25196d1f8d5d560e
Input: Add tps65219 interrupt driven powerbutton

TPS65219 has different interrupts compared to other TPS6521* chips.
TPS65219 defines two interrupts for the powerbutton one for push and one
for release.

This driver is very simple in that it maps the push interrupt to a key
input and the release interrupt to a key release.

Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Signed-off-by: Jerome Neanne <jneanne@baylibre.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221104152311.1098603-6-jneanne@baylibre.com
drivers/input/misc/Kconfig
drivers/input/misc/Makefile
drivers/input/misc/tps65219-pwrbutton.c [new file with mode: 0644]