Skip to contentSkip to conversation

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

PATCH Applied Rob Herring 3 participants 3 messages Sep 25, 2023 – Sep 28, 2023

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: memory-controllers: Make "additionalProperties: true" explicit

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.

---
 .../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(-)
Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml +1 -0
index b40cec0eb651..ee74a362f4ca 100644
@@ -40,6 +40,7 @@ patternProperties:
   ".*@[0-9]+$":
     type: object
     $ref: mc-peripheral-props.yaml#
+    additionalProperties: true
 
 required:
   - compatible
Documentation/devicetree/bindings/memory-controllers/renesas,rpc-if.yaml +2 -0
index 56e62cd0b36a..25f3bb9890ae 100644
@@ -80,6 +80,8 @@ properties:
 patternProperties:
   "flash@[0-9a-f]+$":
     type: object
+    additionalProperties: true
+
     properties:
       compatible:
         contains:
Documentation/devicetree/bindings/memory-controllers/ti,gpmc.yaml +1 -1
index b049837ee669..c7a8a041da50 100644
@@ -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
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Rob Herring

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.

---
 .../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

#2 lore raw
In reply to Rob Herring
Quoted 5 lines · Rob Herring

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,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>