Skip to content

Commit 280962d

Browse files
William Zhangmiquelraynal
authored andcommitted
dt-bindings: mtd: brcmnand: Add ecc strap property
Add brcm,nand-ecc-use-strap to get ecc and spare area size settings from board boot strap for broadband board designs because they do not specify ecc setting in dts but rather using the strap setting. Signed-off-by: William Zhang <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 638eff8 commit 280962d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ patternProperties:
146146
layout.
147147
$ref: /schemas/types.yaml#/definitions/uint32
148148

149+
brcm,nand-ecc-use-strap:
150+
description:
151+
This property requires the host system to get the ECC related
152+
settings from the SoC NAND boot strap configuration instead of
153+
the generic NAND ECC settings. This is a common hardware design
154+
on BCMBCA based boards. This strap ECC option and generic NAND
155+
ECC option can not be specified at the same time.
156+
$ref: /schemas/types.yaml#/definitions/flag
157+
149158
unevaluatedProperties: false
150159

151160
allOf:
@@ -195,6 +204,21 @@ allOf:
195204
required:
196205
- interrupt-names
197206

207+
- if:
208+
patternProperties:
209+
"^nand@[a-f0-9]$":
210+
required:
211+
- brcm,nand-ecc-use-strap
212+
then:
213+
patternProperties:
214+
"^nand@[a-f0-9]$":
215+
properties:
216+
nand-ecc-strength: false
217+
nand-ecc-step-size: false
218+
nand-ecc-maximize: false
219+
nand-ecc-algo: false
220+
brcm,nand-oob-sector-size: false
221+
198222
unevaluatedProperties: false
199223

200224
required:

0 commit comments

Comments
 (0)