Parser compatibles cannot be used anywhere, and the list is limited. In
order to constrain this list, enumerate them all under the top
"partitions" subnode. New parsers will have to add their own compatible
here as well.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
Documentation/devicetree/bindings/mtd/mtd.yaml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation/devicetree/bindings/mtd/mtd.yaml
index bddb7bdf441b..29db0b5c115e 100644
--- a/Documentation/devicetree/bindings/mtd/mtd.yaml
+++ b/Documentation/devicetree/bindings/mtd/mtd.yaml
@@ -27,13 +27,29 @@ properties:
partitions:
type: object
properties:
+ compatible:
+ contains:
+ enum:
+ - fixed-partitions
+ - arm,arm-firmware-suite
+ - brcm,bcm4908-partitions
+ - brcm,bcm947xx-cfe-partitions
+ - nksys,ns-partitions
+ - nvmem-cells
+ - qcom,smem-part
+ - redboot-fis
+
'#address-cells': true
+
'#size-cells': true
patternProperties:
"partition@[0-9a-f]+":
$ref: partitions/partition.yaml
+ required:
+ - compatible
+
patternProperties:
"@[0-9a-f]+$":
$ref: partitions/partition.yaml--
2.34.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel