diff mbox series

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

Message ID 20230606103057.137711-4-miquel.raynal@bootlin.com
State New
Headers show
Series None | 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>
---
 .../devicetree/bindings/mtd/ingenic,nand.yaml         | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml
index a7bdb5d3675c..facb44ebcaa6 100644
--- a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml
+++ b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml
@@ -40,6 +40,8 @@  patternProperties:
   "^nand@[a-f0-9]$":
     type: object
     properties:
+      reg: true
+
       rb-gpios:
         description: GPIO specifier for the busy pin.
         maxItems: 1
@@ -48,6 +50,15 @@  patternProperties:
         description: GPIO specifier for the write-protect pin.
         maxItems: 1
 
+      nand-ecc-step-size: true
+      nand-ecc-strength: true
+      nand-ecc-mode: true
+      nand-on-flash-bbt: true
+
+      partitions: true
+
+    unevaluatedProperties: false
+
 required:
   - compatible
   - reg