-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: input: pm8941-pwrkey: Convert pm8941 power key binding t…
…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
Showing
2 changed files
with
51 additions
and
55 deletions.
There are no files selected for viewing
55 changes: 0 additions & 55 deletions
55
Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
... |