diff mbox series

[2/3] dt-bindings: mtd: qcom: Prevent NAND chip unevaluated properties

Message ID 20230606103057.137711-3-miquel.raynal@bootlin.com
State Changes Requested
Delegated to: Miquel Raynal
Headers show
Series Fix a couple of missing unevaluated properties | expand

Commit Message

Miquel Raynal June 6, 2023, 10:30 a.m. UTC
List all the possible properties in the NAND chip as per the example and
set unevaluatedProperties to false in the NAND chip section.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 Documentation/devicetree/bindings/mtd/qcom,nandc.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml
index 7217d8a64d14..4ed14cd97cb8 100644
--- a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml
+++ b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml
@@ -35,6 +35,8 @@  patternProperties:
   "^nand@[a-f0-9]$":
     type: object
     properties:
+      reg: true
+
       nand-bus-width:
         const: 8
 
@@ -61,6 +63,10 @@  patternProperties:
 
           Refer to the ipq8064 example on how to use this special binding.
 
+      partitions: true
+
+    unevaluatedProperties: false
+
 allOf:
   - $ref: "nand-controller.yaml#"