Commit be907ba6 authored by Miquel Raynal's avatar Miquel Raynal

dt-bindings: mtd: stm32: Prevent NAND chip unevaluated properties

List all the possible properties in the NAND chip as per the example and
set unevaluatedProperties to false in the NAND chip section.

Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: Christophe Kerello <christophe.kerello@foss.st.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/linux-mtd/20230619092916.3028470-15-miquel.raynal@bootlin.com
parent d028c1cf
...@@ -37,6 +37,7 @@ properties: ...@@ -37,6 +37,7 @@ properties:
patternProperties: patternProperties:
"^nand@[a-f0-9]$": "^nand@[a-f0-9]$":
type: object type: object
$ref: raw-nand-chip.yaml
properties: properties:
nand-ecc-step-size: nand-ecc-step-size:
const: 512 const: 512
...@@ -44,6 +45,8 @@ patternProperties: ...@@ -44,6 +45,8 @@ patternProperties:
nand-ecc-strength: nand-ecc-strength:
enum: [1, 4, 8] enum: [1, 4, 8]
unevaluatedProperties: false
allOf: allOf:
- $ref: nand-controller.yaml# - $ref: nand-controller.yaml#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment