Commit 1dcd3142 authored by Miquel Raynal's avatar Miquel Raynal

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

nand-ecc-mode is a generic property which may apply to any raw NAND
chip, it does not need to be listed in each controller
description. Instead, let's reference the raw NAND chip description file
which contains the property. The description contained
"additionalProperties: false" which is wrong as other properties such as
partitions might very well be added in the final .dts, and anyway needs
to be converted into "unexpectedProperties: false" to fit the property
change new requirements.

Cc: Vadivel Murugan <vadivel.muruganx.ramuthevar@linux.intel.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-13-miquel.raynal@bootlin.com
parent 129a70a1
...@@ -42,17 +42,16 @@ properties: ...@@ -42,17 +42,16 @@ properties:
patternProperties: patternProperties:
"^nand@[a-f0-9]$": "^nand@[a-f0-9]$":
type: object type: object
$ref: raw-nand-chip.yaml
properties: properties:
reg: reg:
minimum: 0 minimum: 0
maximum: 1 maximum: 1
nand-ecc-mode: true
nand-ecc-algo: nand-ecc-algo:
const: hw const: hw
additionalProperties: false unevaluatedProperties: false
required: required:
- compatible - compatible
......
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