All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Yassine Oudjana <y.oudjana@protonmail.com>
Cc: Niklas Cassel <nks@flawful.org>,
	Niklas Cassel <niklas.cassel@linaro.org>,
	devicetree@vger.kernel.org,
	linux-arm-msm <linux-arm-msm@vger.kernel.org>,
	"open list:THERMAL" <linux-pm@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] dt-bindings: power: avs: qcom,cpr: Convert to DT schema
Date: Tue, 4 Jan 2022 16:03:49 -0600	[thread overview]
Message-ID: <CAL_JsqKCff0-d5vAXKsPQXr67zUfxgkkuOOM41i6Q5m1NLMnGA@mail.gmail.com> (raw)
In-Reply-To: <20220104041303.349963-1-y.oudjana@protonmail.com>

On Mon, Jan 3, 2022 at 10:14 PM Yassine Oudjana
<y.oudjana@protonmail.com> wrote:
>
> On Tue, 21 Dec 2021 19:15:25 -0400, Rob Herring <robh@kernel.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@protonmail.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@flawful.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

      reply	other threads:[~2022-01-04 22:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-21 13:40 [PATCH] dt-bindings: power: avs: qcom,cpr: Convert to DT schema Yassine Oudjana
2021-12-21 22:45 ` Rob Herring
2021-12-21 23:15 ` Rob Herring
2022-01-04  4:14   ` Yassine Oudjana
2022-01-04 22:03     ` Rob Herring [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL_JsqKCff0-d5vAXKsPQXr67zUfxgkkuOOM41i6Q5m1NLMnGA@mail.gmail.com \
    --to=robh@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=niklas.cassel@linaro.org \
    --cc=nks@flawful.org \
    --cc=y.oudjana@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.