[v2,15/17] dt-bindings: mtd: Argue in favor of keeping additionalProperties set to true
Commit Message
In most cases we try to avoid it but in some cases this is
needed. Clarify why by adding a small comment.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
Documentation/devicetree/bindings/mtd/mtd.yaml | 1 +
Documentation/devicetree/bindings/mtd/nand-chip.yaml | 1 +
Documentation/devicetree/bindings/mtd/nand-controller.yaml | 1 +
Documentation/devicetree/bindings/mtd/partitions/partition.yaml | 1 +
4 files changed, 4 insertions(+)
@@ -60,6 +60,7 @@ patternProperties:
required:
- compatible
+# This is a generic file other binding inherit from
additionalProperties: true
examples:
@@ -70,4 +70,5 @@ properties:
required:
- reg
+# This file can be referenced by more specific devices (like spi-nands)
additionalProperties: true
@@ -129,6 +129,7 @@ required:
- "#address-cells"
- "#size-cells"
+# This is a generic file other binding inherit from and extend
additionalProperties: true
examples:
@@ -60,4 +60,5 @@ then:
$nodename:
pattern: '^partition-.*$'
+# This is a generic file other binding inherit from and extend
additionalProperties: true