summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2023-06-19 11:29:08 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2023-06-22 23:07:11 +0200
commite37eaf5ebc5be693f76f9d53ea55828fe5af5ffb (patch)
tree5bb48ea38b35009c79332dc286c2d8737fd92f9d
parentd58d29623a8aa3f6b34f4c4fadf4c0de821fcbff (diff)
downloadlinux-stable-e37eaf5ebc5be693f76f9d53ea55828fe5af5ffb.tar.gz
linux-stable-e37eaf5ebc5be693f76f9d53ea55828fe5af5ffb.tar.bz2
linux-stable-e37eaf5ebc5be693f76f9d53ea55828fe5af5ffb.zip
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
-rw-r--r--Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml
index 3bec8af91bbb..787ef488dd5b 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