Skip to content

Commit d58d296

Browse files
committed
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
1 parent 711be9c commit d58d296

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ properties:
4949
patternProperties:
5050
"^nand@[a-f0-9]$":
5151
type: object
52+
$ref: raw-nand-chip.yaml
5253
properties:
5354
reg:
5455
minimum: 0
5556
maximum: 7
5657

57-
nand-ecc-mode: true
58-
5958
nand-ecc-algo:
6059
const: bch
6160

@@ -75,7 +74,7 @@ patternProperties:
7574
minimum: 0
7675
maximum: 1
7776

78-
additionalProperties: false
77+
unevaluatedProperties: false
7978

8079
required:
8180
- compatible

0 commit comments

Comments
 (0)