xref: /freebsd/sys/contrib/device-tree/Bindings/input/qcom,pm8941-pwrkey.txt (revision 5956d97f4b3204318ceb6aa9c77bd0bc6ea87a41)
1c66ec88fSEmmanuel VadotQualcomm PM8941 PMIC Power Key
2c66ec88fSEmmanuel Vadot
3c66ec88fSEmmanuel VadotPROPERTIES
4c66ec88fSEmmanuel Vadot
5c66ec88fSEmmanuel Vadot- compatible:
6c66ec88fSEmmanuel Vadot	Usage: required
7c66ec88fSEmmanuel Vadot	Value type: <string>
8c66ec88fSEmmanuel Vadot	Definition: must be one of:
9c66ec88fSEmmanuel Vadot		    "qcom,pm8941-pwrkey"
10c66ec88fSEmmanuel Vadot		    "qcom,pm8941-resin"
11*5956d97fSEmmanuel Vadot		    "qcom,pmk8350-pwrkey"
12*5956d97fSEmmanuel Vadot		    "qcom,pmk8350-resin"
13c66ec88fSEmmanuel Vadot
14c66ec88fSEmmanuel Vadot- reg:
15c66ec88fSEmmanuel Vadot	Usage: required
16c66ec88fSEmmanuel Vadot	Value type: <prop-encoded-array>
17c66ec88fSEmmanuel Vadot	Definition: base address of registers for block
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadot- interrupts:
20c66ec88fSEmmanuel Vadot	Usage: required
21c66ec88fSEmmanuel Vadot	Value type: <prop-encoded-array>
22c66ec88fSEmmanuel Vadot	Definition: key change interrupt; The format of the specifier is
23c66ec88fSEmmanuel Vadot		    defined by the binding document describing the node's
24c66ec88fSEmmanuel Vadot		    interrupt parent.
25c66ec88fSEmmanuel Vadot
26c66ec88fSEmmanuel Vadot- debounce:
27c66ec88fSEmmanuel Vadot	Usage: optional
28c66ec88fSEmmanuel Vadot	Value type: <u32>
29c66ec88fSEmmanuel Vadot	Definition: time in microseconds that key must be pressed or released
30c66ec88fSEmmanuel Vadot		    for state change interrupt to trigger.
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot- bias-pull-up:
33c66ec88fSEmmanuel Vadot	Usage: optional
34c66ec88fSEmmanuel Vadot	Value type: <empty>
35c66ec88fSEmmanuel Vadot	Definition: presence of this property indicates that the KPDPWR_N pin
36c66ec88fSEmmanuel Vadot		    should be configured for pull up.
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadot- linux,code:
39c66ec88fSEmmanuel Vadot	Usage: optional
40c66ec88fSEmmanuel Vadot	Value type: <u32>
41c66ec88fSEmmanuel Vadot	Definition: The input key-code associated with the power key.
42c66ec88fSEmmanuel Vadot		    Use the linux event codes defined in
43c66ec88fSEmmanuel Vadot		    include/dt-bindings/input/linux-event-codes.h
44c66ec88fSEmmanuel Vadot		    When property is omitted KEY_POWER is assumed.
45c66ec88fSEmmanuel Vadot
46c66ec88fSEmmanuel VadotEXAMPLE
47c66ec88fSEmmanuel Vadot
48c66ec88fSEmmanuel Vadot	pwrkey@800 {
49c66ec88fSEmmanuel Vadot		compatible = "qcom,pm8941-pwrkey";
50c66ec88fSEmmanuel Vadot		reg = <0x800>;
51c66ec88fSEmmanuel Vadot		interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
52c66ec88fSEmmanuel Vadot		debounce = <15625>;
53c66ec88fSEmmanuel Vadot		bias-pull-up;
54c66ec88fSEmmanuel Vadot		linux,code = <KEY_POWER>;
55c66ec88fSEmmanuel Vadot	};
56