Skip to content

Commit 1dcd314

Browse files
committed
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: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/linux-mtd/20230619092916.3028470-13-miquel.raynal@bootlin.com
1 parent 129a70a commit 1dcd314

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,16 @@ properties:
4242
patternProperties:
4343
"^nand@[a-f0-9]$":
4444
type: object
45+
$ref: raw-nand-chip.yaml
4546
properties:
4647
reg:
4748
minimum: 0
4849
maximum: 1
4950

50-
nand-ecc-mode: true
51-
5251
nand-ecc-algo:
5352
const: hw
5453

55-
additionalProperties: false
54+
unevaluatedProperties: false
5655

5756
required:
5857
- compatible

0 commit comments

Comments
 (0)