Skip to content

Commit e37eaf5

Browse files
committed
dt-bindings: mtd: meson: Prevent NAND chip unevaluated properties
Ensure all raw NAND chip properties are valid by referencing the relevant schema and set unevaluatedProperties to false in the NAND chip section to avoid spurious additions of random properties. Cc: Liang Yang <liang.yang@amlogic.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-10-miquel.raynal@bootlin.com
1 parent d58d296 commit e37eaf5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ properties:
4040
patternProperties:
4141
"^nand@[0-7]$":
4242
type: object
43+
$ref: raw-nand-chip.yaml
4344
properties:
4445
reg:
4546
minimum: 0
@@ -63,6 +64,9 @@ patternProperties:
6364
items:
6465
maximum: 0
6566

67+
unevaluatedProperties: false
68+
69+
6670
required:
6771
- compatible
6872
- reg

0 commit comments

Comments
 (0)