xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunQualcomm PM8941 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,pm8941-pwrkey"
10*4882a593Smuzhiyun		    "qcom,pm8941-resin"
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun- reg:
13*4882a593Smuzhiyun	Usage: required
14*4882a593Smuzhiyun	Value type: <prop-encoded-array>
15*4882a593Smuzhiyun	Definition: base address of registers for block
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun- interrupts:
18*4882a593Smuzhiyun	Usage: required
19*4882a593Smuzhiyun	Value type: <prop-encoded-array>
20*4882a593Smuzhiyun	Definition: key change interrupt; The format of the specifier is
21*4882a593Smuzhiyun		    defined by the binding document describing the node's
22*4882a593Smuzhiyun		    interrupt parent.
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun- debounce:
25*4882a593Smuzhiyun	Usage: optional
26*4882a593Smuzhiyun	Value type: <u32>
27*4882a593Smuzhiyun	Definition: time in microseconds that key must be pressed or released
28*4882a593Smuzhiyun		    for state change interrupt to trigger.
29*4882a593Smuzhiyun
30*4882a593Smuzhiyun- bias-pull-up:
31*4882a593Smuzhiyun	Usage: optional
32*4882a593Smuzhiyun	Value type: <empty>
33*4882a593Smuzhiyun	Definition: presence of this property indicates that the KPDPWR_N pin
34*4882a593Smuzhiyun		    should be configured for pull up.
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun- linux,code:
37*4882a593Smuzhiyun	Usage: optional
38*4882a593Smuzhiyun	Value type: <u32>
39*4882a593Smuzhiyun	Definition: The input key-code associated with the power key.
40*4882a593Smuzhiyun		    Use the linux event codes defined in
41*4882a593Smuzhiyun		    include/dt-bindings/input/linux-event-codes.h
42*4882a593Smuzhiyun		    When property is omitted KEY_POWER is assumed.
43*4882a593Smuzhiyun
44*4882a593SmuzhiyunEXAMPLE
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun	pwrkey@800 {
47*4882a593Smuzhiyun		compatible = "qcom,pm8941-pwrkey";
48*4882a593Smuzhiyun		reg = <0x800>;
49*4882a593Smuzhiyun		interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
50*4882a593Smuzhiyun		debounce = <15625>;
51*4882a593Smuzhiyun		bias-pull-up;
52*4882a593Smuzhiyun		linux,code = <KEY_POWER>;
53*4882a593Smuzhiyun	};
54