Input: add driver for AXP20x Power Enable Key
authorCarlo Caione <carlo@caione.org>
Mon, 29 Dec 2014 19:20:54 +0000 (11:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 8 Jan 2015 21:53:51 +0000 (13:53 -0800)
This change adds support for the Power Enable Key found on MFD AXP202
and AXP209. Besides the basic support for the button, the driver adds
two entries in sysfs to configure the time delay for power on/off.

Signed-off-by: Carlo Caione <carlo@caione.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
[wens@csie.org: made axp20x_pek_remove() static; removed driver owner
 field; fixed path for sysfs entries]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/ABI/testing/sysfs-driver-input-axp-pek [new file with mode: 0644]
drivers/input/misc/Kconfig
drivers/input/misc/Makefile
drivers/input/misc/axp20x-pek.c [new file with mode: 0644]

diff --git a/Documentation/ABI/testing/sysfs-driver-input-axp-pek b/Documentation/ABI/testing/sysfs-driver-input-axp-pek
new file mode 100644 (file)
index 0000000..a5e671b
--- /dev/null
@@ -0,0 +1,11 @@
+What:          /sys/class/input/input(x)/device/startup
+Date:          March 2014
+Contact:       Carlo Caione <carlo@caione.org>
+Description:   Startup time in us. Board is powered on if the button is pressed
+               for more than <startup_time>
+
+What:          /sys/class/input/input(x)/device/shutdown
+Date:          March 2014
+Contact:       Carlo Caione <carlo@caione.org>
+Description:   Shutdown time in us. Board is powered off if the button is pressed
+               for more than <shutdown_time>
Simple merge
Simple merge
Simple merge