summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/input/da9062-onkey.txt
blob: 5f9fbc68e58a45bd95af3ea2a5998d581a328b52 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
* Dialog DA9061/62/63 OnKey Module

This module is part of the DA9061/DA9062/DA9063. For more details about entire
DA9062 and DA9061 chips see Documentation/devicetree/bindings/mfd/da9062.txt
For DA9063 see Documentation/devicetree/bindings/mfd/da9063.txt

This module provides the KEY_POWER event.

Required properties:

- compatible: should be one of the following valid compatible string lines:
	"dlg,da9061-onkey", "dlg,da9062-onkey"
	"dlg,da9062-onkey"
	"dlg,da9063-onkey"

Optional properties:

- dlg,disable-key-power : Disable power-down using a long key-press. If this
    entry exists the OnKey driver will remove support for the KEY_POWER key
    press when triggered using a long press of the OnKey.

Example: DA9063

	pmic0: da9063@58 {
		onkey {
			compatible = "dlg,da9063-onkey";
			dlg,disable-key-power;
		};
	};

Example: DA9062

	pmic0: da9062@58 {
		onkey {
			compatible = "dlg,da9062-onkey";
			dlg,disable-key-power;
		};
	};

Example: DA9061 using a fall-back compatible for the DA9062 onkey driver

	pmic0: da9061@58 {
		onkey {
			compatible = "dlg,da9061-onkey", "dlg,da9062-onkey";
			dlg,disable-key-power;
		};
	};