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

dt-bindings: mtd: sunxi: 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: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: Jernej Skrabec <jernej.skrabec@gmail.com>
Cc: Samuel Holland <samuel@sholland.org>
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-9-miquel.raynal@bootlin.com

+2 -3
+2 -3
Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml
··· 49 49 patternProperties: 50 50 "^nand@[a-f0-9]$": 51 51 type: object 52 + $ref: raw-nand-chip.yaml 52 53 properties: 53 54 reg: 54 55 minimum: 0 55 56 maximum: 7 56 - 57 - nand-ecc-mode: true 58 57 59 58 nand-ecc-algo: 60 59 const: bch ··· 74 75 minimum: 0 75 76 maximum: 1 76 77 77 - additionalProperties: false 78 + unevaluatedProperties: false 78 79 79 80 required: 80 81 - compatible