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