From: Elliot Berman <quic_eberman@quicinc.com>
To: Rob Herring <robh@kernel.org>
Cc: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Sebastian Reichel <sre@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>, Vinod Koul <vkoul@kernel.org>,
Andy Yan <andy.yan@rock-chips.com>,
Lorenzo Pieralisi <lpieralisi@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>,
Satya Durga Srinivasu Prabhala <quic_satyap@quicinc.com>,
Melody Olvera <quic_molvera@quicinc.com>,
Shivendra Pratap <quic_spratap@quicinc.com>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
Florian Fainelli <florian.fainelli@broadcom.com>,
<linux-pm@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>
Subject: Re: [PATCH v4 1/4] dt-bindings: power: reset: Convert mode-.* properties to array
Date: Tue, 11 Jun 2024 16:23:00 -0700 [thread overview]
Message-ID: <20240611160619020-0700.eberman@hu-eberman-lv.qualcomm.com> (raw)
In-Reply-To: <20240611204001.GA3026541-robh@kernel.org>
On Tue, Jun 11, 2024 at 02:40:01PM -0600, Rob Herring wrote:
> On Tue, Jun 11, 2024 at 08:35:13AM -0700, Elliot Berman wrote:
> > PSCI reboot mode will map a mode name to multiple magic values instead
> > of just one. Convert the mode-.* property to an array. Users of the
> > reboot-mode schema will need to specify the maxItems of the mode-.*
> > properties. Existing users will all be 1.
> >
> > Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
> > ---
> > .../devicetree/bindings/power/reset/nvmem-reboot-mode.yaml | 5 +++++
> > Documentation/devicetree/bindings/power/reset/qcom,pon.yaml | 8 ++++++++
> > Documentation/devicetree/bindings/power/reset/reboot-mode.yaml | 4 ++--
> > .../devicetree/bindings/power/reset/syscon-reboot-mode.yaml | 5 +++++
> > 4 files changed, 20 insertions(+), 2 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml
> > index 627f8a6078c2..9b9bbc0f29e7 100644
> > --- a/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml
> > +++ b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml
> > @@ -31,6 +31,11 @@ properties:
> > allOf:
> > - $ref: reboot-mode.yaml#
> >
> > +patternProperties:
> > + "^mode-.*$":
> > + items:
> > + maxItems: 1
>
> Drop 'items'. Otherwise, you are defining constraints of a matrix.
>
If I do this, I also have to add $ref: .../uint32-array as well so
the property can be picked up as an array type. Let me know if this isn't
right, otherwise I'll send out a fixed version in a few days.
Thanks,
Elliot
next prev parent reply other threads:[~2024-06-11 23:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-11 15:35 [PATCH v4 0/4] Implement vendor resets for PSCI SYSTEM_RESET2 Elliot Berman
2024-06-11 15:35 ` [PATCH v4 1/4] dt-bindings: power: reset: Convert mode-.* properties to array Elliot Berman
2024-06-11 20:40 ` Rob Herring
2024-06-11 23:23 ` Elliot Berman [this message]
2024-06-13 17:35 ` Rob Herring
2024-06-11 15:35 ` [PATCH v4 2/4] dt-bindings: arm: Document reboot mode magic Elliot Berman
2024-06-11 15:35 ` [PATCH v4 3/4] firmware: psci: Read and use vendor reset types Elliot Berman
2024-06-11 15:35 ` [PATCH v4 4/4] arm64: dts: qcom: Add PSCI SYSTEM_RESET2 types for qcm6490-idp Elliot Berman
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=20240611160619020-0700.eberman@hu-eberman-lv.qualcomm.com \
--to=quic_eberman@quicinc.com \
--cc=andersson@kernel.org \
--cc=andy.yan@rock-chips.com \
--cc=bartosz.golaszewski@linaro.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=mark.rutland@arm.com \
--cc=quic_molvera@quicinc.com \
--cc=quic_satyap@quicinc.com \
--cc=quic_spratap@quicinc.com \
--cc=robh@kernel.org \
--cc=sre@kernel.org \
--cc=vkoul@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox