Skip to content

Commit 74b7e3b

Browse files
committed
dt-bindings: mtd: brcmnand: 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: Brian Norris <computersforpeace@gmail.com> Cc: Kamal Dasu <kdasu.kdev@gmail.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-11-miquel.raynal@bootlin.com
1 parent e37eaf5 commit 74b7e3b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ properties:
114114
patternProperties:
115115
"^nand@[a-f0-9]$":
116116
type: object
117+
$ref: raw-nand-chip.yaml
117118
properties:
118119
compatible:
119120
const: brcm,nandcs
@@ -136,6 +137,8 @@ patternProperties:
136137
layout.
137138
$ref: /schemas/types.yaml#/definitions/uint32
138139

140+
unevaluatedProperties: false
141+
139142
allOf:
140143
- $ref: nand-controller.yaml#
141144
- if:

0 commit comments

Comments
 (0)