dt-bindings: mtd: rockchip: Prevent NAND chip unevaluated properties
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 19 Jun 2023 09:29:12 +0000 (11:29 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 22 Jun 2023 21:08:35 +0000 (23:08 +0200)
List all the possible properties in the NAND chip as per the example and
set unevaluatedProperties to false in the NAND chip section.

Cc: Heiko Stuebner <heiko@sntech.de>
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-14-miquel.raynal@bootlin.com
Documentation/devicetree/bindings/mtd/rockchip,nand-controller.yaml

index 7eb1d0a..ee53715 100644 (file)
@@ -57,6 +57,7 @@ properties:
 patternProperties:
   "^nand@[0-7]$":
     type: object
+    $ref: raw-nand-chip.yaml
     properties:
       reg:
         minimum: 0
@@ -116,6 +117,8 @@ patternProperties:
 
           Only used in combination with 'nand-is-boot-medium'.
 
+    unevaluatedProperties: false
+
 required:
   - compatible
   - reg