Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: input: Document STPMIC1 PMIC onkey

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 <p.paillet@st.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Pascal PAILLET-LME and committed by
Lee Jones
d1f1c768 51908d2e

+28
+28
Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt
··· 1 + STMicroelectronics STPMIC1 Onkey 2 + 3 + Required properties: 4 + 5 + - compatible = "st,stpmic1-onkey"; 6 + - interrupts: interrupt line to use 7 + - interrupt-names = "onkey-falling", "onkey-rising" 8 + onkey-falling: happens when onkey is pressed; IT_PONKEY_F of pmic 9 + onkey-rising: happens when onkey is released; IT_PONKEY_R of pmic 10 + 11 + Optional properties: 12 + 13 + - st,onkey-clear-cc-flag: onkey is able power on after an 14 + over-current shutdown event. 15 + - st,onkey-pu-inactive: onkey pull up is not active 16 + - power-off-time-sec: Duration in seconds which the key should be kept 17 + pressed for device to power off automatically (from 1 to 16 seconds). 18 + see See Documentation/devicetree/bindings/input/keys.txt 19 + 20 + Example: 21 + 22 + onkey { 23 + compatible = "st,stpmic1-onkey"; 24 + interrupt-parent = <&pmic>; 25 + interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>; 26 + interrupt-names = "onkey-falling", "onkey-rising"; 27 + power-off-time-sec = <10>; 28 + };