]> git.baikalelectronics.ru Git - kernel.git/commit
Input: introduce palmas-pwrbutton
authorNishanth Menon <nm@ti.com>
Tue, 26 Aug 2014 22:57:47 +0000 (15:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 12 Sep 2014 06:40:16 +0000 (23:40 -0700)
commitc8f9eed1f49467b87f7a1218b44d02b9cf95aa14
tree82e58e33eb0e2e903d55f2813f2dfeea3dbf94de
parentb5cb77901b57a03626030e57572294ee92511c30
Input: introduce palmas-pwrbutton

Many palmas family of PMICs have support for interrupt based power button.
This allows the device to notify the processor of external push button
events over the shared palmas interrupt. However, this event is generated
only during a "press" operation. Software is supposed to poll(sigh!) for
detecting a release event.

The PMIC also supports ability to power off independent of the software
decisions when the button is pressed for a long duration if the PMIC is
appropriately configured on the platform.

Even though the function is similar to twl4030_pwrbutton, it is
substantially different in operation to belong to a new driver of it's own.

Based on original work done by Girish S Ghongdemath <girishsg@ti.com>

Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt [new file with mode: 0644]
drivers/input/misc/Kconfig
drivers/input/misc/Makefile
drivers/input/misc/palmas-pwrbutton.c [new file with mode: 0644]