dt-bindings: mtd: meson: Prevent NAND chip unevaluated properties
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 19 Jun 2023 09:29:08 +0000 (11:29 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 22 Jun 2023 21:07:11 +0000 (23:07 +0200)
Ensure all raw NAND chip properties are valid by referencing the
relevant schema and set unevaluatedProperties to false in the NAND chip
section to avoid spurious additions of random properties.

Cc: Liang Yang <liang.yang@amlogic.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/linux-mtd/20230619092916.3028470-10-miquel.raynal@bootlin.com
Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml

index 3bec8af..787ef48 100644 (file)
@@ -40,6 +40,7 @@ properties:
 patternProperties:
   "^nand@[0-7]$":
     type: object
+    $ref: raw-nand-chip.yaml
     properties:
       reg:
         minimum: 0
@@ -63,6 +64,9 @@ patternProperties:
         items:
           maximum: 0
 
+    unevaluatedProperties: false
+
+
 required:
   - compatible
   - reg