aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseniy Krasnov <[email protected]>2023-07-17 08:34:00 +0300
committerMiquel Raynal <[email protected]>2023-07-27 17:01:57 +0200
commit350301a3d73b217ab3d87ae42d8fcce2795fe097 (patch)
tree473eb80a5aa06979db0d22e8fa1a6a7567785b11
parentc3519aed2a3faf77b66350214fb5caa9a0905888 (diff)
dt-bindings: nand: meson: make ECC properties dependent
ECC properties 'nand-ecc-strength' and 'nand-ecc-step-size' depends on each other, so they must be both either set or not set. In first case ECC core will try to use these values if possible (by checking ECC caps provided by driver), in second case ECC core will select most optimal values for both properties. Signed-off-by: Arseniy Krasnov <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
-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 a98b5d61ea5d..1c79815e1f7f 100644
--- a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml
+++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml
@@ -66,6 +66,10 @@ patternProperties:
unevaluatedProperties: false
+ dependencies:
+ nand-ecc-strength: ['nand-ecc-step-size']
+ nand-ecc-step-size: ['nand-ecc-strength']
+
required:
- compatible