Skip to content

Commit 350301a

Browse files
Arseniy Krasnovmiquelraynal
authored andcommitted
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 <AVKrasnov@sberdevices.ru> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20230717053402.1203724-2-AVKrasnov@sberdevices.ru
1 parent c3519ae commit 350301a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ patternProperties:
6666

6767
unevaluatedProperties: false
6868

69+
dependencies:
70+
nand-ecc-strength: ['nand-ecc-step-size']
71+
nand-ecc-step-size: ['nand-ecc-strength']
72+
6973

7074
required:
7175
- compatible

0 commit comments

Comments
 (0)