Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+2 -3
+2 -3
Documentation/devicetree/bindings/mtd/intel,lgm-ebunand.yaml
··· 42 42 patternProperties: 43 43 "^nand@[a-f0-9]$": 44 44 type: object 45 + $ref: raw-nand-chip.yaml 45 46 properties: 46 47 reg: 47 48 minimum: 0 48 49 maximum: 1 49 50 50 - nand-ecc-mode: true 51 - 52 51 nand-ecc-algo: 53 52 const: hw 54 53 55 - additionalProperties: false 54 + unevaluatedProperties: false 56 55 57 56 required: 58 57 - compatible