xref: /freebsd/sys/contrib/device-tree/Bindings/input/qcom,pm8941-pwrkey.yaml (revision 354d7675fe12ace9cde344cb79c7ded792802f88)
1*354d7675SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*354d7675SEmmanuel Vadot%YAML 1.2
3*354d7675SEmmanuel Vadot---
4*354d7675SEmmanuel Vadot$id: http://devicetree.org/schemas/input/qcom,pm8941-pwrkey.yaml#
5*354d7675SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*354d7675SEmmanuel Vadot
7*354d7675SEmmanuel Vadottitle: Qualcomm PM8941 PMIC Power Key
8*354d7675SEmmanuel Vadot
9*354d7675SEmmanuel Vadotmaintainers:
10*354d7675SEmmanuel Vadot  - Courtney Cavin <courtney.cavin@sonymobile.com>
11*354d7675SEmmanuel Vadot  - Vinod Koul <vkoul@kernel.org>
12*354d7675SEmmanuel Vadot
13*354d7675SEmmanuel VadotallOf:
14*354d7675SEmmanuel Vadot  - $ref: input.yaml#
15*354d7675SEmmanuel Vadot
16*354d7675SEmmanuel Vadotproperties:
17*354d7675SEmmanuel Vadot  compatible:
18*354d7675SEmmanuel Vadot    enum:
19*354d7675SEmmanuel Vadot      - qcom,pm8941-pwrkey
20*354d7675SEmmanuel Vadot      - qcom,pm8941-resin
21*354d7675SEmmanuel Vadot      - qcom,pmk8350-pwrkey
22*354d7675SEmmanuel Vadot      - qcom,pmk8350-resin
23*354d7675SEmmanuel Vadot
24*354d7675SEmmanuel Vadot  interrupts:
25*354d7675SEmmanuel Vadot    maxItems: 1
26*354d7675SEmmanuel Vadot
27*354d7675SEmmanuel Vadot  debounce:
28*354d7675SEmmanuel Vadot    description: |
29*354d7675SEmmanuel Vadot          Time in microseconds that key must be pressed or
30*354d7675SEmmanuel Vadot          released for state change interrupt to trigger.
31*354d7675SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
32*354d7675SEmmanuel Vadot
33*354d7675SEmmanuel Vadot  bias-pull-up:
34*354d7675SEmmanuel Vadot    description: |
35*354d7675SEmmanuel Vadot           Presence of this property indicates that the KPDPWR_N
36*354d7675SEmmanuel Vadot           pin should be configured for pull up.
37*354d7675SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
38*354d7675SEmmanuel Vadot
39*354d7675SEmmanuel Vadot  linux,code:
40*354d7675SEmmanuel Vadot    description: |
41*354d7675SEmmanuel Vadot           The input key-code associated with the power key.
42*354d7675SEmmanuel Vadot           Use the linux event codes defined in
43*354d7675SEmmanuel Vadot           include/dt-bindings/input/linux-event-codes.h
44*354d7675SEmmanuel Vadot           When property is omitted KEY_POWER is assumed.
45*354d7675SEmmanuel Vadot
46*354d7675SEmmanuel Vadotrequired:
47*354d7675SEmmanuel Vadot  - compatible
48*354d7675SEmmanuel Vadot  - interrupts
49*354d7675SEmmanuel Vadot
50*354d7675SEmmanuel VadotunevaluatedProperties: false
51*354d7675SEmmanuel Vadot...
52