From: Miquel Raynal Date: Mon, 19 Jun 2023 09:29:08 +0000 (+0200) Subject: dt-bindings: mtd: meson: Prevent NAND chip unevaluated properties X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e37eaf5ebc5be693f76f9d53ea55828fe5af5ffb;p=linux.git 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 Signed-off-by: Miquel Raynal Reviewed-by: Rob Herring Link: https://lore.kernel.org/linux-mtd/20230619092916.3028470-10-miquel.raynal@bootlin.com --- diff --git a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml index 3bec8af91bbb1..787ef488dd5b1 100644 --- a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml @@ -40,6 +40,7 @@ properties: patternProperties: "^nand@[0-7]$": type: object + $ref: raw-nand-chip.yaml properties: reg: minimum: 0 @@ -63,6 +64,9 @@ patternProperties: items: maximum: 0 + unevaluatedProperties: false + + required: - compatible - reg