[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAL_JsqKCff0-d5vAXKsPQXr67zUfxgkkuOOM41i6Q5m1NLMnGA@mail.gmail.com>
Date: Tue, 4 Jan 2022 16:03:49 -0600
From: Rob Herring <robh@...nel.org>
To: Yassine Oudjana <y.oudjana@...tonmail.com>
Cc: Niklas Cassel <nks@...wful.org>,
Niklas Cassel <niklas.cassel@...aro.org>,
devicetree@...r.kernel.org,
linux-arm-msm <linux-arm-msm@...r.kernel.org>,
"open list:THERMAL" <linux-pm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] dt-bindings: power: avs: qcom,cpr: Convert to DT schema
On Mon, Jan 3, 2022 at 10:14 PM Yassine Oudjana
<y.oudjana@...tonmail.com> wrote:
>
> On Tue, 21 Dec 2021 19:15:25 -0400, Rob Herring <robh@...nel.org> wrote:
> > On Tue, Dec 21, 2021 at 01:40:05PM +0000, Yassine Oudjana wrote:
> > > Convert qcom,cpr.txt to DT schema format.
> > >
> > > Signed-off-by: Yassine Oudjana <y.oudjana@...tonmail.com>
> > > ---
> > > .../bindings/power/avs/qcom,cpr.txt | 130 --------------
> > > .../bindings/power/avs/qcom,cpr.yaml | 161 ++++++++++++++++++
> > > MAINTAINERS | 2 +-
> > > 3 files changed, 162 insertions(+), 131 deletions(-)
> > > delete mode 100644 Documentation/devicetree/bindings/power/avs/qcom,cpr.txt
> > > create mode 100644 Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml
> >
> >
> > > diff --git a/Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml b/Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml
> > > new file mode 100644
> > > index 000000000000..852eb36eea93
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml
> > > @@ -0,0 +1,161 @@
> > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > > +%YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/power/avs/qcom,cpr.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: Qualcomm Core Power Reduction (CPR) bindings
> > > +
> > > +maintainers:
> > > + - Niklas Cassel <nks@...wful.org>
> > > +
> > > +description: |
> > > + CPR (Core Power Reduction) is a technology to reduce core power on a CPU
> > > + or other device. Each OPP of a device corresponds to a "corner" that has
> > > + a range of valid voltages for a particular frequency. While the device is
> > > + running at a particular frequency, CPR monitors dynamic factors such as
> > > + temperature, etc. and suggests adjustments to the voltage to save power
> > > + and meet silicon characteristic requirements.
> > > +
> > > +properties:
> > > + compatible:
> > > + allOf:
> >
> > Don't need allOf with only 1 entry.
>
> I get this from dt_binding_check without it:
>
> Documentation/devicetree/bindings/power/avs/qcom,cpr.yaml: properties:compatible: [{'items': [{'enum': ['qcom,qcs404-cpr']}, {'const': 'qcom,cpr'}]}] is not of type 'object', 'boolean'
Because you made 'compatible' a list rather than a dict/object.
'allOf' is a list of subschemas though.
Rob
Powered by blists - more mailing lists