Merge tag 'selinux-pr-20190312' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / 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 };