public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: Enforce child props
@ 2025-03-06  8:58 Krzysztof Kozlowski
  2025-03-06  8:58 ` [PATCH 2/2] dt-bindings: memory-controllers: qcom,ebi2: " Krzysztof Kozlowski
  2025-03-06 13:39 ` [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: " Rob Herring
  0 siblings, 2 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-06  8:58 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Conor Dooley, Alim Akhtar,
	Bjorn Andersson, linux-kernel, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-arm-msm
  Cc: Krzysztof Kozlowski

Samsung Exynos SROM peripheral properties were moved from the device
schema to separate "peripheral-props" schema for child node, but the
device schema does not reference the new one.

Reference the peripheral-props schema so the child nodes will be
properly validated from the device schema.

Fixes: 67bf606fcf18 ("dt-bindings: memory-controllers: samsung,exynos4210-srom: Split out child node properties")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Fix for Rob's tree.
---
 .../devicetree/bindings/memory-controllers/exynos-srom.yaml      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml b/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml
index 2267c5107d60..1578514ec58d 100644
--- a/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml
@@ -38,6 +38,7 @@ properties:
 patternProperties:
   "^.*@[0-3],[a-f0-9]+$":
     type: object
+    $ref: mc-peripheral-props.yaml#
     additionalProperties: true
 
     properties:
-- 
2.43.0


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

* [PATCH 2/2] dt-bindings: memory-controllers: qcom,ebi2: Enforce child props
  2025-03-06  8:58 [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: Enforce child props Krzysztof Kozlowski
@ 2025-03-06  8:58 ` Krzysztof Kozlowski
  2025-03-06 13:39 ` [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: " Rob Herring
  1 sibling, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-06  8:58 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Conor Dooley, Alim Akhtar,
	Bjorn Andersson, linux-kernel, devicetree, linux-arm-kernel,
	linux-samsung-soc, linux-arm-msm
  Cc: Krzysztof Kozlowski

Qualcomm EBI2 peripheral properties were moved from the device schema to
separate "peripheral-props" schema for child node, but the device schema
does not reference the new one.

Reference the peripheral-props schema so the child nodes will be
properly validated from the device schema.

Fixes: 06652f348f28 ("dt-bindings: memory-controllers: qcom,ebi2: Split out child node properties")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Fix for Rob's tree.
---
 .../devicetree/bindings/memory-controllers/qcom,ebi2.yaml        | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/memory-controllers/qcom,ebi2.yaml b/Documentation/devicetree/bindings/memory-controllers/qcom,ebi2.yaml
index 3e6da1ba460e..423d7a75134f 100644
--- a/Documentation/devicetree/bindings/memory-controllers/qcom,ebi2.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/qcom,ebi2.yaml
@@ -104,6 +104,7 @@ required:
 patternProperties:
   "^.*@[0-5],[0-9a-f]+$":
     type: object
+    $ref: mc-peripheral-props.yaml#
     additionalProperties: true
 
 additionalProperties: false
-- 
2.43.0


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

* Re: [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: Enforce child props
  2025-03-06  8:58 [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: Enforce child props Krzysztof Kozlowski
  2025-03-06  8:58 ` [PATCH 2/2] dt-bindings: memory-controllers: qcom,ebi2: " Krzysztof Kozlowski
@ 2025-03-06 13:39 ` Rob Herring
  2025-03-06 13:51   ` Krzysztof Kozlowski
  1 sibling, 1 reply; 5+ messages in thread
From: Rob Herring @ 2025-03-06 13:39 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Krzysztof Kozlowski, Conor Dooley, Alim Akhtar, Bjorn Andersson,
	linux-kernel, devicetree, linux-arm-kernel, linux-samsung-soc,
	linux-arm-msm

On Thu, Mar 6, 2025 at 2:58 AM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
>
> Samsung Exynos SROM peripheral properties were moved from the device
> schema to separate "peripheral-props" schema for child node, but the
> device schema does not reference the new one.
>
> Reference the peripheral-props schema so the child nodes will be
> properly validated from the device schema.
>
> Fixes: 67bf606fcf18 ("dt-bindings: memory-controllers: samsung,exynos4210-srom: Split out child node properties")
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> Fix for Rob's tree.
> ---
>  .../devicetree/bindings/memory-controllers/exynos-srom.yaml      | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml b/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml
> index 2267c5107d60..1578514ec58d 100644
> --- a/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml
> +++ b/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml
> @@ -38,6 +38,7 @@ properties:
>  patternProperties:
>    "^.*@[0-3],[a-f0-9]+$":
>      type: object
> +    $ref: mc-peripheral-props.yaml#

Why do we need this? Any child node should have a schema which needs
to include mc-peripheral-props.yaml if any properties from it can be
used.

Rob

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

* Re: [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: Enforce child props
  2025-03-06 13:39 ` [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: " Rob Herring
@ 2025-03-06 13:51   ` Krzysztof Kozlowski
  2025-03-06 20:52     ` Rob Herring
  0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-06 13:51 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski
  Cc: Conor Dooley, Alim Akhtar, Bjorn Andersson, linux-kernel,
	devicetree, linux-arm-kernel, linux-samsung-soc, linux-arm-msm

On 06/03/2025 14:39, Rob Herring wrote:
> Why do we need this? Any child node should have a schema which needs
> to include mc-peripheral-props.yaml if any properties from it can be
> used.

From correctness point of view, you are right, we don't need it. However:

1. Convention was so far to have in every controller. I think this also
is easier to understand whenever one reads the bindings - clear
documentation what children on this bus should look like.

2. To clearly document from where samsung,srom-timing comes in the
required block:

https://web.git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/tree/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml?h=dt/next#n50
Otherwise for me it is a bit confusing to require a property which is
nowhere here defined.


Best regards,
Krzysztof

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

* Re: [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: Enforce child props
  2025-03-06 13:51   ` Krzysztof Kozlowski
@ 2025-03-06 20:52     ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2025-03-06 20:52 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Krzysztof Kozlowski, Conor Dooley, Alim Akhtar, Bjorn Andersson,
	linux-kernel, devicetree, linux-arm-kernel, linux-samsung-soc,
	linux-arm-msm

On Thu, Mar 6, 2025 at 7:51 AM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On 06/03/2025 14:39, Rob Herring wrote:
> > Why do we need this? Any child node should have a schema which needs
> > to include mc-peripheral-props.yaml if any properties from it can be
> > used.
>
> From correctness point of view, you are right, we don't need it. However:
>
> 1. Convention was so far to have in every controller. I think this also
> is easier to understand whenever one reads the bindings - clear
> documentation what children on this bus should look like.
>
> 2. To clearly document from where samsung,srom-timing comes in the
> required block:

I could be wrong, but I want to say that's pretty much an exception.
They are usually optional (other than reg). Though I guess we want to
enforce 'reg'...

> https://web.git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/tree/Documentation/devicetree/bindings/memory-controllers/exynos-srom.yaml?h=dt/next#n50
> Otherwise for me it is a bit confusing to require a property which is
> nowhere here defined.

It's a bit weird that non-exynos properties are allowed too, though
that's always the case for these properties.

I'll apply these.

Rob

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

end of thread, other threads:[~2025-03-06 20:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-06  8:58 [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: Enforce child props Krzysztof Kozlowski
2025-03-06  8:58 ` [PATCH 2/2] dt-bindings: memory-controllers: qcom,ebi2: " Krzysztof Kozlowski
2025-03-06 13:39 ` [PATCH 1/2] dt-bindings: memory-controllers: samsung,exynos4210-srom: " Rob Herring
2025-03-06 13:51   ` Krzysztof Kozlowski
2025-03-06 20:52     ` Rob Herring

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