dt-bindings: mtd: Argue in favor of keeping additionalProperties set to true
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 14 Nov 2022 09:03:13 +0000 (10:03 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 17 Nov 2022 20:59:30 +0000 (21:59 +0100)
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>
Link: https://lore.kernel.org/linux-mtd/20221114090315.848208-16-miquel.raynal@bootlin.com
Documentation/devicetree/bindings/mtd/mtd.yaml
Documentation/devicetree/bindings/mtd/nand-chip.yaml
Documentation/devicetree/bindings/mtd/nand-controller.yaml
Documentation/devicetree/bindings/mtd/partitions/partition.yaml

index 2494ec2d80e30968a7664b2945b84906607fb56a..9ee285b7d16230cae20a07390724fb8f265cf244 100644 (file)
@@ -60,6 +60,7 @@ patternProperties:
     required:
       - compatible
 
+# This is a generic file other binding inherit from
 additionalProperties: true
 
 examples:
index 8d5d2d3ef56bd694705a85b374e534a233590601..6e2dc025d694da430517bafc1fcef2c903dac7a4 100644 (file)
@@ -70,4 +70,5 @@ properties:
 required:
   - reg
 
+# This file can be referenced by more specific devices (like spi-nands)
 additionalProperties: true
index 3f2a1480e1ebccb318680f1b1b46bd09aa120cc6..220aa2c8c0b50ef8fc2848e609eb0576718e1021 100644 (file)
@@ -129,6 +129,7 @@ required:
   - "#address-cells"
   - "#size-cells"
 
+# This is a generic file other binding inherit from and extend
 additionalProperties: true
 
 examples:
index a25cd23a34c0b94627364bfc1ae8fb1f85162d00..cdffbb9cedc2d7cbb7e7557189922d49bc83fb8a 100644 (file)
@@ -64,4 +64,5 @@ then:
     $nodename:
       pattern: '^partition-.*$'
 
+# This is a generic file other binding inherit from and extend
 additionalProperties: true