summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/input/st,stpmic1-onkey.txt
blob: eb8e83736c02e29120f80a6085c9193452623b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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/input.yaml

Example:

onkey {
	compatible = "st,stpmic1-onkey";
	interrupt-parent = <&pmic>;
	interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>;
	interrupt-names = "onkey-falling", "onkey-rising";
	power-off-time-sec = <10>;
};