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