Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/qcom,pm8941-pwrkey.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm PM8941 PMIC Power Key
8
9maintainers:
10 - Courtney Cavin <courtney.cavin@sonymobile.com>
11 - Vinod Koul <vkoul@kernel.org>
12
13properties:
14 compatible:
15 enum:
16 - qcom,pm8941-pwrkey
17 - qcom,pm8941-resin
18 - qcom,pmk8350-pwrkey
19 - qcom,pmk8350-resin
20
21 interrupts:
22 maxItems: 1
23
24 debounce:
25 description:
26 Time in microseconds that key must be pressed or released for state
27 change interrupt to trigger.
28 $ref: /schemas/types.yaml#/definitions/uint32
29
30 bias-pull-up:
31 description:
32 Presence of this property indicates that the KPDPWR_N pin should be
33 configured for pull up.
34 $ref: /schemas/types.yaml#/definitions/flag
35
36 wakeup-source:
37 description:
38 Button can wake-up the system. Only applicable for 'resin', 'pwrkey'
39 always wakes the system by default.
40
41 linux,code:
42 description:
43 The input key-code associated with the power key. Use the linux event
44 codes defined in include/dt-bindings/input/linux-event-codes.h.
45 When property is omitted KEY_POWER is assumed.
46
47allOf:
48 - $ref: input.yaml#
49 - if:
50 properties:
51 compatible:
52 contains:
53 enum:
54 - qcom,pm8941-pwrkey
55 - qcom,pmk8350-pwrkey
56 then:
57 properties:
58 wakeup-source: false
59
60required:
61 - compatible
62 - interrupts
63
64unevaluatedProperties: false
65...