diff mbox series

dt-bindings: memory-controllers: Make "additionalProperties: true" explicit

Message ID 20230925212626.1974676-1-robh@kernel.org
State Not Applicable
Headers show
Series dt-bindings: memory-controllers: Make "additionalProperties: true" explicit | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied success
robh/dtbs-check warning build log
robh/dt-meta-schema success

Commit Message

Rob Herring (Arm) Sept. 25, 2023, 9:26 p.m. UTC
Make it explicit that child nodes have additional properties and the
child node schema is not complete. The complete schemas are applied
separately based the compatible strings.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/memory-controllers/ingenic,nemc.yaml    | 1 +
 .../devicetree/bindings/memory-controllers/renesas,rpc-if.yaml  | 2 ++
 .../devicetree/bindings/memory-controllers/ti,gpmc.yaml         | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)

Comments

Roger Quadros Sept. 26, 2023, 6:36 p.m. UTC | #1
On 26/09/2023 00:26, Rob Herring wrote:
> Make it explicit that child nodes have additional properties and the
> child node schema is not complete. The complete schemas are applied
> separately based the compatible strings.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  .../devicetree/bindings/memory-controllers/ingenic,nemc.yaml    | 1 +
>  .../devicetree/bindings/memory-controllers/renesas,rpc-if.yaml  | 2 ++
>  .../devicetree/bindings/memory-controllers/ti,gpmc.yaml         | 2 +-

For ti,gpmc.yaml

Reviewed-by: Roger Quadros <rogerq@kernel.org>
Krzysztof Kozlowski Sept. 28, 2023, 5:54 a.m. UTC | #2
On Mon, 25 Sep 2023 16:26:21 -0500, Rob Herring wrote:
> Make it explicit that child nodes have additional properties and the
> child node schema is not complete. The complete schemas are applied
> separately based the compatible strings.
> 
> 

Applied, thanks!

[1/1] dt-bindings: memory-controllers: Make "additionalProperties: true" explicit
      https://git.kernel.org/krzk/linux-mem-ctrl/c/387bb6fdd0af1f853deeb1cdd8331c07b6a66b32

Best regards,
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml
index b40cec0eb651..ee74a362f4ca 100644
--- a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml
@@ -40,6 +40,7 @@  patternProperties:
   ".*@[0-9]+$":
     type: object
     $ref: mc-peripheral-props.yaml#
+    additionalProperties: true
 
 required:
   - compatible
diff --git a/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml b/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml
index 56e62cd0b36a..25f3bb9890ae 100644
--- a/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml
@@ -80,6 +80,8 @@  properties:
 patternProperties:
   "flash@[0-9a-f]+$":
     type: object
+    additionalProperties: true
+
     properties:
       compatible:
         contains:
diff --git a/Documentation/devicetree/bindings/memory-controllers/ti,gpmc.yaml b/Documentation/devicetree/bindings/memory-controllers/ti,gpmc.yaml
index b049837ee669..c7a8a041da50 100644
--- a/Documentation/devicetree/bindings/memory-controllers/ti,gpmc.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/ti,gpmc.yaml
@@ -130,7 +130,7 @@  patternProperties:
       bus. The device can be a NAND chip, SRAM device, NOR device
       or an ASIC.
     $ref: ti,gpmc-child.yaml
-
+    additionalProperties: true
 
 required:
   - compatible