aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2014-08-26 18:57:47 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-09-12 02:40:16 -0400
commitadff5962fdd2f29bac943bc014ebd529444b2153 (patch)
tree82e58e33eb0e2e903d55f2813f2dfeea3dbf94de /Documentation
parent1c24622572d6ab2ec8e731588d1c131563a64b53 (diff)
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt b/Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt
new file mode 100644
index 000000000000..a3dde8c30e67
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/ti,palmas-pwrbutton.txt
@@ -0,0 +1,36 @@
1Texas Instruments Palmas family power button module
2
3This module is part of the Palmas family of PMICs. For more details
4about the whole chip see:
5Documentation/devicetree/bindings/mfd/palmas.txt.
6
7This module provides a simple power button event via an Interrupt.
8
9Required properties:
10- compatible: should be one of the following
11 - "ti,palmas-pwrbutton": For Palmas compatible power on button
12- interrupt-parent: Parent interrupt device, must be handle of palmas node.
13- interrupts: Interrupt number of power button submodule on device.
14
15Optional Properties:
16
17- ti,palmas-long-press-seconds: Duration in seconds which the power
18 button should be kept pressed for Palmas to power off automatically.
19 NOTE: This depends on OTP support and POWERHOLD signal configuration
20 on platform. Valid values are 6, 8, 10 and 12.
21- ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds
22 which the power button should be kept pressed for Palmas to register
23 a press for debouncing purposes. NOTE: This depends on specific
24 Palmas variation capability. Valid values are 15, 100, 500 and 1000.
25
26Example:
27
28&palmas {
29 palmas_pwr_button: pwrbutton {
30 compatible = "ti,palmas-pwrbutton";
31 interrupt-parent = <&tps659038>;
32 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
33 ti,palmas-long-press-seconds = <12>;
34 ti,palmas-pwron-debounce-milli-seconds = <15>;
35 };
36};