xref: /freebsd/sys/contrib/device-tree/Bindings/input/qcom,pm8xxx-pwrkey.txt (revision 02e9120893770924227138ba49df1edb3896112a)
1Qualcomm PM8xxx PMIC Power Key
2
3PROPERTIES
4
5- compatible:
6	Usage: required
7	Value type: <string>
8	Definition: must be one of:
9		    "qcom,pm8058-pwrkey"
10		    "qcom,pm8921-pwrkey"
11
12- reg:
13	Usage: required
14	Value type: <prop-encoded-array>
15	Definition: address of power key control register
16
17- interrupts:
18	Usage: required
19	Value type: <prop-encoded-array>
20	Definition: the first interrupt specifies the key release interrupt
21		    and the second interrupt specifies the key press interrupt.
22		    The format of the specifier is defined by the binding
23		    document describing the node's interrupt parent.
24
25- debounce:
26	Usage: optional
27	Value type: <u32>
28	Definition: time in microseconds that key must be pressed or release
29		    for state change interrupt to trigger.
30
31- pull-up:
32	Usage: optional
33	Value type: <empty>
34	Definition: presence of this property indicates that the KPDPWR_N pin
35		    should be configured for pull up.
36
37EXAMPLE
38
39	pwrkey@1c {
40		compatible = "qcom,pm8921-pwrkey";
41		reg = <0x1c>;
42		interrupt-parent = <&pmicintc>;
43		interrupts = <50 1>, <51 1>;
44		debounce = <15625>;
45		pull-up;
46	};
47