[PATCH v2 14/17] dt-bindings: mtd: stm32: Prevent NAND chip unevaluated properties
Miquel Raynal
miquel.raynal at bootlin.com
Tue Jun 6 10:52:43 PDT 2023
List all the possible properties in the NAND chip as per the example and
set unevaluatedProperties to false in the NAND chip section.
Cc: Maxime Coquelin <mcoquelin.stm32 at gmail.com>
Cc: Alexandre Torgue <alexandre.torgue at foss.st.com>
Cc: Christophe Kerello <christophe.kerello at foss.st.com>
Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
---
Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml b/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml
index 19cf1f18b61c..17011b64d83d 100644
--- a/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml
+++ b/Documentation/devicetree/bindings/mtd/st,stm32-fmc2-nand.yaml
@@ -37,6 +37,7 @@ properties:
patternProperties:
"^nand@[a-f0-9]$":
type: object
+ $ref: raw-nand-chip.yaml
properties:
nand-ecc-step-size:
const: 512
@@ -44,6 +45,8 @@ patternProperties:
nand-ecc-strength:
enum: [1, 4, 8]
+ unevaluatedProperties: false
+
allOf:
- $ref: "nand-controller.yaml#"
--
2.34.1
More information about the linux-mtd
mailing list