Merge commit '949bdcc8a97c' into omap-for-v4.19/dt
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / input / mtk-pmic-keys.txt
1 MediaTek MT6397/MT6323 PMIC Keys Device Driver
2
3 There are two key functions provided by MT6397/MT6323 PMIC, pwrkey
4 and homekey. The key functions are defined as the subnode of the function
5 node provided by MT6397/MT6323 PMIC that is being defined as one kind
6 of Muti-Function Device (MFD)
7
8 For MT6397/MT6323 MFD bindings see:
9 Documentation/devicetree/bindings/mfd/mt6397.txt
10
11 Required properties:
12 - compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys"
13 - linux,keycodes: See Documentation/devicetree/bindings/input/keys.txt
14
15 Optional Properties:
16 - wakeup-source: See Documentation/devicetree/bindings/power/wakeup-source.txt
17 - mediatek,long-press-mode: Long press key shutdown setting, 1 for
18         pwrkey only, 2 for pwrkey/homekey together, others for disabled.
19 - power-off-time-sec: See Documentation/devicetree/bindings/input/keys.txt
20
21 Example:
22
23         pmic: mt6397 {
24                 compatible = "mediatek,mt6397";
25
26                 ...
27
28                 mt6397keys: mt6397keys {
29                         compatible = "mediatek,mt6397-keys";
30                         mediatek,long-press-mode = <1>;
31                         power-off-time-sec = <0>;
32
33                         power {
34                                 linux,keycodes = <116>;
35                                 wakeup-source;
36                         };
37
38                         home {
39                                 linux,keycodes = <114>;
40                         };
41                 };
42
43         };