dt-bindings: mtd: qcom: Prevent NAND chip unevaluated properties
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 19 Jun 2023 09:29:05 +0000 (11:29 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 22 Jun 2023 21:05:14 +0000 (23:05 +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: Manivannan Sadhasivam <mani@kernel.org>
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-7-miquel.raynal@bootlin.com
Documentation/devicetree/bindings/mtd/qcom,nandc.yaml

index 3d77922dfaef7b8020ad93e2bed3fd9ea3497522..4ada60fbf81de40070f4f92838b4dcb4b200a928 100644 (file)
@@ -34,7 +34,9 @@ properties:
 patternProperties:
   "^nand@[a-f0-9]$":
     type: object
+    $ref: raw-nand-chip.yaml
     properties:
+
       nand-bus-width:
         const: 8
 
@@ -61,6 +63,8 @@ patternProperties:
 
           Refer to the ipq8064 example on how to use this special binding.
 
+    unevaluatedProperties: false
+
 allOf:
   - $ref: nand-controller.yaml#