| 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 |
|
| 7 |
title: Qualcomm PM8941 PMIC Power Key |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Courtney Cavin <[email protected]> |
| 11 |
- Vinod Koul <[email protected]> |
| 12 |
|
| 13 |
properties: |
| 14 |
compatible: |
| 15 |
oneOf: |
| 16 |
- enum: |
| 17 |
- qcom,pm8941-pwrkey |
| 18 |
- qcom,pm8941-resin |
| 19 |
- qcom,pmk8350-pwrkey |
| 20 |
- qcom,pmk8350-resin |
| 21 |
- items: |
| 22 |
- const: qcom,pmm8654au-pwrkey |
| 23 |
- const: qcom,pmk8350-pwrkey |
| 24 |
- items: |
| 25 |
- const: qcom,pmm8654au-resin |
| 26 |
- const: qcom,pmk8350-resin |
| 27 |
|
| 28 |
interrupts: |
| 29 |
maxItems: 1 |
| 30 |
|
| 31 |
debounce: |
| 32 |
description: |
| 33 |
Time in microseconds that key must be pressed or released for state |
| 34 |
change interrupt to trigger. |
| 35 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 36 |
|
| 37 |
bias-pull-up: |
| 38 |
description: |
| 39 |
Presence of this property indicates that the KPDPWR_N pin should be |
| 40 |
configured for pull up. |
| 41 |
$ref: /schemas/types.yaml#/definitions/flag |
| 42 |
|
| 43 |
wakeup-source: |
| 44 |
description: |
| 45 |
Button can wake-up the system. Only applicable for 'resin', 'pwrkey' |
| 46 |
always wakes the system by default. |
| 47 |
|
| 48 |
linux,code: |
| 49 |
description: |
| 50 |
The input key-code associated with the power key. Use the linux event |
| 51 |
codes defined in include/dt-bindings/input/linux-event-codes.h. |
| 52 |
When property is omitted KEY_POWER is assumed. |
| 53 |
|
| 54 |
allOf: |
| 55 |
- $ref: input.yaml# |
| 56 |
- if: |
| 57 |
properties: |
| 58 |
compatible: |
| 59 |
contains: |
| 60 |
enum: |
| 61 |
- qcom,pm8941-pwrkey |
| 62 |
- qcom,pmk8350-pwrkey |
| 63 |
then: |
| 64 |
properties: |
| 65 |
wakeup-source: false |
| 66 |
|
| 67 |
required: |
| 68 |
- compatible |
| 69 |
- interrupts |
| 70 |
|
| 71 |
unevaluatedProperties: false |
| 72 |
... |