[PATCH v6 5/8] dt-bindings: input: document stpmic1 pmic onkey

2018-11-27 Thread Pascal PAILLET-LME
The stpmic1 pmic is able to manage an onkey button. It can be configured
to shut-down the power supplies on a long key-press with an adjustable
duration.

Signed-off-by: Pascal Paillet 
Reviewed-by: Rob Herring 
---
changes in v6: nothing

 .../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 ++
 1 file changed, 28 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt

diff --git a/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt 
b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt
new file mode 100644
index 000..4494613
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt
@@ -0,0 +1,28 @@
+STMicroelectronics STPMIC1 Onkey
+
+Required properties:
+
+- compatible = "st,stpmic1-onkey";
+- interrupts: interrupt line to use
+- interrupt-names = "onkey-falling", "onkey-rising"
+   onkey-falling: happens when onkey is pressed; IT_PONKEY_F of pmic
+   onkey-rising: happens when onkey is released; IT_PONKEY_R of pmic
+
+Optional properties:
+
+- st,onkey-clear-cc-flag: onkey is able power on after an
+  over-current shutdown event.
+- st,onkey-pu-inactive: onkey pull up is not active
+- power-off-time-sec: Duration in seconds which the key should be kept
+pressed for device to power off automatically (from 1 to 16 seconds).
+see See Documentation/devicetree/bindings/input/keys.txt
+
+Example:
+
+onkey {
+   compatible = "st,stpmic1-onkey";
+   interrupt-parent = <>;
+   interrupts = ,;
+   interrupt-names = "onkey-falling", "onkey-rising";
+   power-off-time-sec = <10>;
+};
-- 
1.9.1


[PATCH v6 5/8] dt-bindings: input: document stpmic1 pmic onkey

2018-11-27 Thread Pascal PAILLET-LME
The stpmic1 pmic is able to manage an onkey button. It can be configured
to shut-down the power supplies on a long key-press with an adjustable
duration.

Signed-off-by: Pascal Paillet 
Reviewed-by: Rob Herring 
---
changes in v6: nothing

 .../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 ++
 1 file changed, 28 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt

diff --git a/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt 
b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt
new file mode 100644
index 000..4494613
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt
@@ -0,0 +1,28 @@
+STMicroelectronics STPMIC1 Onkey
+
+Required properties:
+
+- compatible = "st,stpmic1-onkey";
+- interrupts: interrupt line to use
+- interrupt-names = "onkey-falling", "onkey-rising"
+   onkey-falling: happens when onkey is pressed; IT_PONKEY_F of pmic
+   onkey-rising: happens when onkey is released; IT_PONKEY_R of pmic
+
+Optional properties:
+
+- st,onkey-clear-cc-flag: onkey is able power on after an
+  over-current shutdown event.
+- st,onkey-pu-inactive: onkey pull up is not active
+- power-off-time-sec: Duration in seconds which the key should be kept
+pressed for device to power off automatically (from 1 to 16 seconds).
+see See Documentation/devicetree/bindings/input/keys.txt
+
+Example:
+
+onkey {
+   compatible = "st,stpmic1-onkey";
+   interrupt-parent = <>;
+   interrupts = ,;
+   interrupt-names = "onkey-falling", "onkey-rising";
+   power-off-time-sec = <10>;
+};
-- 
1.9.1