2021-05-10 07:02:49

by Satya Priya

[permalink] [raw]
Subject: [PATCH V3 5/5] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml

Convert qcom PON binding from .txt to .yaml format.

The example has been removed in favour of full example being
available in the qcom,pm8941-pwrkey binding.

Signed-off-by: satya priya <[email protected]>
---
Changes in V2:
- As per Rob's comments, converted the main PON binding and added in V2.

Changes in V3:
- As per Sebastian's comments, added allOf to refer reboot-mode.yaml and
used unevaluatedProperties = false. Added maxItems for reg.

.../devicetree/bindings/power/reset/qcom,pon.txt | 49 ----------------------
.../devicetree/bindings/power/reset/qcom,pon.yaml | 44 +++++++++++++++++++
2 files changed, 44 insertions(+), 49 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt
create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.yaml

diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt
deleted file mode 100644
index 0c0dc3a..0000000
--- a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt
+++ /dev/null
@@ -1,49 +0,0 @@
-Qualcomm PON Device
-
-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.
-
-Required Properties:
--compatible: Must be one of:
- "qcom,pm8916-pon"
- "qcom,pms405-pon"
- "qcom,pm8998-pon"
-
--reg: Specifies the physical address of the pon register
-
-Optional subnode:
--pwrkey: Specifies the subnode pwrkey and should follow the
- qcom,pm8941-pwrkey.txt description.
--resin: Specifies the subnode resin and should follow the
- qcom,pm8xxx-pwrkey.txt description.
-
-The rest of the properties should follow the generic reboot-mode description
-found in reboot-mode.txt
-
-Example:
-
- pon@800 {
- compatible = "qcom,pm8916-pon";
-
- reg = <0x800>;
- mode-bootloader = <0x2>;
- mode-recovery = <0x1>;
-
- 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>;
- };
- };
diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
new file mode 100644
index 0000000..439f082
--- /dev/null
+++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
@@ -0,0 +1,44 @@
+# 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 <[email protected]>
+
+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
+...
--
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation


2021-05-10 16:28:57

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH V3 5/5] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml

On Mon, 10 May 2021 12:31:04 +0530, satya priya wrote:
> Convert qcom PON binding from .txt to .yaml format.
>
> The example has been removed in favour of full example being
> available in the qcom,pm8941-pwrkey binding.
>
> Signed-off-by: satya priya <[email protected]>
> ---
> Changes in V2:
> - As per Rob's comments, converted the main PON binding and added in V2.
>
> Changes in V3:
> - As per Sebastian's comments, added allOf to refer reboot-mode.yaml and
> used unevaluatedProperties = false. Added maxItems for reg.
>
> .../devicetree/bindings/power/reset/qcom,pon.txt | 49 ----------------------
> .../devicetree/bindings/power/reset/qcom,pon.yaml | 44 +++++++++++++++++++
> 2 files changed, 44 insertions(+), 49 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt
> create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
>

Reviewed-by: Rob Herring <[email protected]>

2021-06-04 11:10:56

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [PATCH V3 5/5] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml

Hi,

On Mon, May 10, 2021 at 11:25:06AM -0500, Rob Herring wrote:
> On Mon, 10 May 2021 12:31:04 +0530, satya priya wrote:
> > Convert qcom PON binding from .txt to .yaml format.
> >
> > The example has been removed in favour of full example being
> > available in the qcom,pm8941-pwrkey binding.
> >
> > Signed-off-by: satya priya <[email protected]>
> > ---
> > Changes in V2:
> > - As per Rob's comments, converted the main PON binding and added in V2.
> >
> > Changes in V3:
> > - As per Sebastian's comments, added allOf to refer reboot-mode.yaml and
> > used unevaluatedProperties = false. Added maxItems for reg.
> >
> > .../devicetree/bindings/power/reset/qcom,pon.txt | 49 ----------------------
> > .../devicetree/bindings/power/reset/qcom,pon.yaml | 44 +++++++++++++++++++
> > 2 files changed, 44 insertions(+), 49 deletions(-)
> > delete mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt
> > create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
> >
>
> Reviewed-by: Rob Herring <[email protected]>

Acked-by: Sebastian Reichel <[email protected]>

-- Sebastian


Attachments:
(No filename) (1.14 kB)
signature.asc (849.00 B)
Download all attachments

2021-06-04 11:47:04

by Satya Priya

[permalink] [raw]
Subject: Re: [PATCH V3 5/5] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml

Hi,

On 2021-06-04 16:39, Sebastian Reichel wrote:
> Hi,
>
> On Mon, May 10, 2021 at 11:25:06AM -0500, Rob Herring wrote:
>> On Mon, 10 May 2021 12:31:04 +0530, satya priya wrote:
>> > Convert qcom PON binding from .txt to .yaml format.
>> >
>> > The example has been removed in favour of full example being
>> > available in the qcom,pm8941-pwrkey binding.
>> >
>> > Signed-off-by: satya priya <[email protected]>
>> > ---
>> > Changes in V2:
>> > - As per Rob's comments, converted the main PON binding and added in V2.
>> >
>> > Changes in V3:
>> > - As per Sebastian's comments, added allOf to refer reboot-mode.yaml and
>> > used unevaluatedProperties = false. Added maxItems for reg.
>> >
>> > .../devicetree/bindings/power/reset/qcom,pon.txt | 49 ----------------------
>> > .../devicetree/bindings/power/reset/qcom,pon.yaml | 44 +++++++++++++++++++
>> > 2 files changed, 44 insertions(+), 49 deletions(-)
>> > delete mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt
>> > create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
>> >
>>
>> Reviewed-by: Rob Herring <[email protected]>
>
> Acked-by: Sebastian Reichel <[email protected]>
>

There is a V4 for this.
https://lore.kernel.org/patchwork/patch/1425638/

> -- Sebastian

2021-06-04 11:48:07

by Satya Priya

[permalink] [raw]
Subject: Re: [PATCH V3 5/5] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml

On 2021-06-04 17:12, [email protected] wrote:
> Hi,
>
> On 2021-06-04 16:39, Sebastian Reichel wrote:
>> Hi,
>>
>> On Mon, May 10, 2021 at 11:25:06AM -0500, Rob Herring wrote:
>>> On Mon, 10 May 2021 12:31:04 +0530, satya priya wrote:
>>> > Convert qcom PON binding from .txt to .yaml format.
>>> >
>>> > The example has been removed in favour of full example being
>>> > available in the qcom,pm8941-pwrkey binding.
>>> >
>>> > Signed-off-by: satya priya <[email protected]>
>>> > ---
>>> > Changes in V2:
>>> > - As per Rob's comments, converted the main PON binding and added in V2.
>>> >
>>> > Changes in V3:
>>> > - As per Sebastian's comments, added allOf to refer reboot-mode.yaml and
>>> > used unevaluatedProperties = false. Added maxItems for reg.
>>> >
>>> > .../devicetree/bindings/power/reset/qcom,pon.txt | 49 ----------------------
>>> > .../devicetree/bindings/power/reset/qcom,pon.yaml | 44 +++++++++++++++++++
>>> > 2 files changed, 44 insertions(+), 49 deletions(-)
>>> > delete mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt
>>> > create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
>>> >
>>>
>>> Reviewed-by: Rob Herring <[email protected]>
>>
>> Acked-by: Sebastian Reichel <[email protected]>
>>
>
> There is a V4 for this.
> https://lore.kernel.org/patchwork/patch/1425638/
>
Seems like you already reviewed the V4.

Thanks,
Satya Priya
>> -- Sebastian

2021-06-04 12:00:47

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [PATCH V3 5/5] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml

Hi,

On Fri, Jun 04, 2021 at 05:15:17PM +0530, [email protected] wrote:
> On 2021-06-04 17:12, [email protected] wrote:
> > Hi,
> >
> > On 2021-06-04 16:39, Sebastian Reichel wrote:
> > > Hi,
> > >
> > > On Mon, May 10, 2021 at 11:25:06AM -0500, Rob Herring wrote:
> > > > On Mon, 10 May 2021 12:31:04 +0530, satya priya wrote:
> > > > > Convert qcom PON binding from .txt to .yaml format.
> > > > >
> > > > > The example has been removed in favour of full example being
> > > > > available in the qcom,pm8941-pwrkey binding.
> > > > >
> > > > > Signed-off-by: satya priya <[email protected]>
> > > > > ---
> > > > > Changes in V2:
> > > > > - As per Rob's comments, converted the main PON binding and added in V2.
> > > > >
> > > > > Changes in V3:
> > > > > - As per Sebastian's comments, added allOf to refer reboot-mode.yaml and
> > > > > used unevaluatedProperties = false. Added maxItems for reg.
> > > > >
> > > > > .../devicetree/bindings/power/reset/qcom,pon.txt | 49 ----------------------
> > > > > .../devicetree/bindings/power/reset/qcom,pon.yaml | 44 +++++++++++++++++++
> > > > > 2 files changed, 44 insertions(+), 49 deletions(-)
> > > > > delete mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt
> > > > > create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.yaml
> > > > >
> > > >
> > > > Reviewed-by: Rob Herring <[email protected]>
> > >
> > > Acked-by: Sebastian Reichel <[email protected]>
> > >
> >
> > There is a V4 for this.
> > https://lore.kernel.org/patchwork/patch/1425638/
> >
> Seems like you already reviewed the V4.

Ack, just ignore this :)

-- Sebastian


Attachments:
(No filename) (1.66 kB)
signature.asc (849.00 B)
Download all attachments