Input: pm8941-pwrkey - abstract register offsets and event code
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / input / qcom,pm8941-pwrkey.txt
1 Qualcomm PM8941 PMIC Power Key
2
3 PROPERTIES
4
5 - compatible:
6         Usage: required
7         Value type: <string>
8         Definition: must be one of:
9                     "qcom,pm8941-pwrkey"
10
11 - reg:
12         Usage: required
13         Value type: <prop-encoded-array>
14         Definition: base address of registers for block
15
16 - interrupts:
17         Usage: required
18         Value type: <prop-encoded-array>
19         Definition: key change interrupt; The format of the specifier is
20                     defined by the binding document describing the node's
21                     interrupt parent.
22
23 - debounce:
24         Usage: optional
25         Value type: <u32>
26         Definition: time in microseconds that key must be pressed or released
27                     for state change interrupt to trigger.
28
29 - bias-pull-up:
30         Usage: optional
31         Value type: <empty>
32         Definition: presence of this property indicates that the KPDPWR_N pin
33                     should be configured for pull up.
34
35 - linux,code:
36         Usage: optional
37         Value type: <u32>
38         Definition: The input key-code associated with the power key.
39                     Use the linux event codes defined in
40                     include/dt-bindings/input/linux-event-codes.h
41                     When property is omitted KEY_POWER is assumed.
42
43 EXAMPLE
44
45         pwrkey@800 {
46                 compatible = "qcom,pm8941-pwrkey";
47                 reg = <0x800>;
48                 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
49                 debounce = <15625>;
50                 bias-pull-up;
51                 linux,code = <KEY_POWER>;
52         };