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