Input: bbnsm_pwrkey - add bbnsm power key support
authorJacky Bai <ping.bai@nxp.com>
Tue, 21 Feb 2023 19:41:45 +0000 (11:41 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 21 Feb 2023 21:56:35 +0000 (13:56 -0800)
commit40e40fdfec3faf08951c2a600177e23f4d43fc32
treea58cca5908be3df681ff75484c652c47a012282c
parent9e69e845ae95227949c400af1037dca023f73038
Input: bbnsm_pwrkey - add bbnsm power key support

The ON/OFF logic inside the BBNSM allows for connecting directly
into a PMIC or other voltage regulator device. The module has an
button input signal and a wakeup request input signal. It also
has two interrupts (set_pwr_off_irq and set_pwr_on_irq) and an
active-low PMIC enable (pmic_en_b) output.

Add the power key support for the ON/OFF button function found in
BBNSM module.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20230215024117.3357341-2-ping.bai@nxp.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/Kconfig
drivers/input/misc/Makefile
drivers/input/misc/nxp-bbnsm-pwrkey.c [new file with mode: 0644]