treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / input / st,stpmic1-onkey.txt
blobeb8e83736c02e29120f80a6085c9193452623b6f
1 STMicroelectronics STPMIC1 Onkey
3 Required properties:
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
11 Optional properties:
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/input.yaml
20 Example:
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>;