diff options
Diffstat (limited to 'Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt')
-rw-r--r-- | Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt new file mode 100644 index 000000000000..07bf55f6e0b9 --- /dev/null +++ b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt | |||
@@ -0,0 +1,43 @@ | |||
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 | EXAMPLE | ||
36 | |||
37 | pwrkey@800 { | ||
38 | compatible = "qcom,pm8941-pwrkey"; | ||
39 | reg = <0x800>; | ||
40 | interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; | ||
41 | debounce = <15625>; | ||
42 | bias-pull-up; | ||
43 | }; | ||