mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v6] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes
@ 2023-01-12 20:36 Melody Olvera
  2023-01-12 20:41 ` Melody Olvera
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Melody Olvera @ 2023-01-12 20:36 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski
  Cc: Melody Olvera, open list:ARM/QUALCOMM SUPPORT,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

Update the bindings to allow for generic regulator nodes instead of
device-specific node names.

Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
---
 Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
index b246500d3d5d..a4046ba60846 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
@@ -112,8 +112,9 @@ properties:
     $ref: /schemas/power/qcom,rpmpd.yaml#
 
 patternProperties:
-  '-regulators$':
+  '^regulators(-[0-9])?$':
     $ref: /schemas/regulator/qcom,rpmh-regulator.yaml#
+    unevaluatedProperties: false
 
 required:
   - compatible

base-commit: 0a093b2893c711d82622a9ab27da4f1172821336
-- 
2.38.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v6] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes
  2023-01-12 20:36 [PATCH v6] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes Melody Olvera
@ 2023-01-12 20:41 ` Melody Olvera
  2023-01-13 20:46 ` Rob Herring
  2023-02-06 22:30 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Melody Olvera @ 2023-01-12 20:41 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski
  Cc: open list:ARM/QUALCOMM SUPPORT,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list



On 1/12/2023 12:36 PM, Melody Olvera wrote:
> Update the bindings to allow for generic regulator nodes instead of
> device-specific node names.
>
> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
Apologies; forgot the change log.


Changes from v5:
* Fixed buggy regulator pattern to include 0-9

Changes from v4:
* updated regulator pattern to accommodate more regulators

This patch comes from discussions on [1] and is separated out. It also
has updated pattern matching to match the comments left from [1].

[1] https://lore.kernel.org/all/20221026200429.162212-2-quic_molvera@quicinc.com/

> ---
>  Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
> index b246500d3d5d..a4046ba60846 100644
> --- a/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
> +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml
> @@ -112,8 +112,9 @@ properties:
>      $ref: /schemas/power/qcom,rpmpd.yaml#
>  
>  patternProperties:
> -  '-regulators$':
> +  '^regulators(-[0-9])?$':
>      $ref: /schemas/regulator/qcom,rpmh-regulator.yaml#
> +    unevaluatedProperties: false
>  
>  required:
>    - compatible
>
> base-commit: 0a093b2893c711d82622a9ab27da4f1172821336


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v6] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes
  2023-01-12 20:36 [PATCH v6] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes Melody Olvera
  2023-01-12 20:41 ` Melody Olvera
@ 2023-01-13 20:46 ` Rob Herring
  2023-02-06 22:30 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Rob Herring @ 2023-01-13 20:46 UTC (permalink / raw)
  To: Melody Olvera
  Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, Konrad Dybcio,
	open list:ARM/QUALCOMM SUPPORT,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	Bjorn Andersson, open list


On Thu, 12 Jan 2023 12:36:53 -0800, Melody Olvera wrote:
> Update the bindings to allow for generic regulator nodes instead of
> device-specific node names.
> 
> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
> ---
>  Documentation/devicetree/bindings/soc/qcom/qcom,rpmh-rsc.yaml | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v6] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes
  2023-01-12 20:36 [PATCH v6] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes Melody Olvera
  2023-01-12 20:41 ` Melody Olvera
  2023-01-13 20:46 ` Rob Herring
@ 2023-02-06 22:30 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2023-02-06 22:30 UTC (permalink / raw)
  To: Andy Gross, Melody Olvera, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski
  Cc: open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, open list:ARM/QUALCOMM SUPPORT

On Thu, 12 Jan 2023 12:36:53 -0800, Melody Olvera wrote:
> Update the bindings to allow for generic regulator nodes instead of
> device-specific node names.
> 
> 

Applied, thanks!

[1/1] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes
      commit: 22b0e764c1b41ee75d7ee76287746a65727aa78a

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-02-06 22:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-12 20:36 [PATCH v6] dt-bindings: soc: qcom,rpmh-rsc: Update to allow for generic nodes Melody Olvera
2023-01-12 20:41 ` Melody Olvera
2023-01-13 20:46 ` Rob Herring
2023-02-06 22:30 ` Bjorn Andersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®