-
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: power: reset: qcom-pon: Convert qcom PON binding to yaml
Convert qcom PON binding from .txt to .yaml format. Signed-off-by: satya priya <skakit@codeaurora.org> Reviewed-by: Rob Herring <robh@kernel.org> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Reviewed-by: Stephen Boyd <swboyd@chromium.org> Link: https://lore.kernel.org/r/1620800053-26405-6-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
400793b
commit 76ba190
Showing
2 changed files
with
80 additions
and
49 deletions.
There are no files selected for viewing
49 changes: 0 additions & 49 deletions
49
Documentation/devicetree/bindings/power/reset/qcom,pon.txt
This file was deleted.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
Documentation/devicetree/bindings/power/reset/qcom,pon.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,80 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/power/reset/qcom,pon.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Qualcomm PON Device | ||
|
||
maintainers: | ||
- Vinod Koul <vkoul@kernel.org> | ||
|
||
description: | | ||
The Power On device for Qualcomm PM8xxx is MFD supporting pwrkey | ||
and resin along with the Android reboot-mode. | ||
This DT node has pwrkey and resin as sub nodes. | ||
allOf: | ||
- $ref: reboot-mode.yaml# | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- qcom,pm8916-pon | ||
- qcom,pms405-pon | ||
- qcom,pm8998-pon | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
pwrkey: | ||
type: object | ||
$ref: "../../input/qcom,pm8941-pwrkey.yaml#" | ||
|
||
resin: | ||
type: object | ||
$ref: "../../input/qcom,pm8941-pwrkey.yaml#" | ||
|
||
required: | ||
- compatible | ||
- reg | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
#include <dt-bindings/input/linux-event-codes.h> | ||
#include <dt-bindings/spmi/spmi.h> | ||
spmi_bus: spmi@c440000 { | ||
reg = <0x0c440000 0x1100>; | ||
#address-cells = <2>; | ||
#size-cells = <0>; | ||
pmk8350: pmic@0 { | ||
reg = <0x0 SPMI_USID>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
pmk8350_pon: pon_hlos@1300 { | ||
reg = <0x1300>; | ||
compatible = "qcom,pm8998-pon"; | ||
pwrkey { | ||
compatible = "qcom,pm8941-pwrkey"; | ||
interrupts = < 0x0 0x8 0 IRQ_TYPE_EDGE_BOTH >; | ||
debounce = <15625>; | ||
bias-pull-up; | ||
linux,code = <KEY_POWER>; | ||
}; | ||
resin { | ||
compatible = "qcom,pm8941-resin"; | ||
interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; | ||
debounce = <15625>; | ||
bias-pull-up; | ||
linux,code = <KEY_VOLUMEDOWN>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
... |