Skip to content

Commit

Permalink
dt-bindings: input: pm8941-pwrkey: Convert pm8941 power key binding t…
Browse files Browse the repository at this point in the history
…o yaml

Convert qcom pm8941 power key binding from .txt to .yaml format.

The example has been removed in favour of full example being
available in the qcom,pon.yaml binding.

Signed-off-by: satya priya <skakit@codeaurora.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/1620800053-26405-5-git-send-email-skakit@codeaurora.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
satya priya authored and Dmitry Torokhov committed Jul 23, 2021
1 parent da5e96f commit 400793b
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 55 deletions.
55 changes: 0 additions & 55 deletions Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt

This file was deleted.

51 changes: 51 additions & 0 deletions Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/qcom,pm8941-pwrkey.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm PM8941 PMIC Power Key

maintainers:
- Courtney Cavin <courtney.cavin@sonymobile.com>
- Vinod Koul <vkoul@kernel.org>

allOf:
- $ref: input.yaml#

properties:
compatible:
enum:
- qcom,pm8941-pwrkey
- qcom,pm8941-resin
- qcom,pmk8350-pwrkey
- qcom,pmk8350-resin

interrupts:
maxItems: 1

debounce:
description: |
Time in microseconds that key must be pressed or
released for state change interrupt to trigger.
$ref: /schemas/types.yaml#/definitions/uint32

bias-pull-up:
description: |
Presence of this property indicates that the KPDPWR_N
pin should be configured for pull up.
$ref: /schemas/types.yaml#/definitions/flag

linux,code:
description: |
The input key-code associated with the power key.
Use the linux event codes defined in
include/dt-bindings/input/linux-event-codes.h
When property is omitted KEY_POWER is assumed.
required:
- compatible
- interrupts

unevaluatedProperties: false
...

0 comments on commit 400793b

Please sign in to comment.