Skip to content

Commit c168ac2

Browse files
Abhishek Sahumiquelraynal
authored andcommitted
dt-bindings: qcom_nandc: update for ECC strength and step size
1. If nand-ecc-strength specified in DT, then controller will use this ECC strength otherwise ECC strength will be calculated according to chip requirement and available OOB size. 2. QCOM NAND controller supports only one step size (512 bytes) but nand-ecc-step-size is required property in DT. This DT property can be removed and ecc step size can be assigned in driver with 512 bytes value. Signed-off-by: Abhishek Sahu <absahu@codeaurora.org> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent f9801fd commit c168ac2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Documentation/devicetree/bindings/mtd/qcom_nandc.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ Required properties:
4545
number (e.g., 0, 1, 2, etc.)
4646
- #address-cells: see partition.txt
4747
- #size-cells: see partition.txt
48-
- nand-ecc-strength: see nand.txt
49-
- nand-ecc-step-size: must be 512. see nand.txt for more details.
5048

5149
Optional properties:
5250
- nand-bus-width: see nand.txt
51+
- nand-ecc-strength: see nand.txt. If not specified, then ECC strength will
52+
be used according to chip requirement and available
53+
OOB size.
5354

5455
Each nandcs device node may optionally contain a 'partitions' sub-node, which
5556
further contains sub-nodes describing the flash partition mapping. See
@@ -77,7 +78,6 @@ nand-controller@1ac00000 {
7778
reg = <0>;
7879

7980
nand-ecc-strength = <4>;
80-
nand-ecc-step-size = <512>;
8181
nand-bus-width = <8>;
8282

8383
partitions {
@@ -117,7 +117,6 @@ nand-controller@79b0000 {
117117
nand@0 {
118118
reg = <0>;
119119
nand-ecc-strength = <4>;
120-
nand-ecc-step-size = <512>;
121120
nand-bus-width = <8>;
122121

123122
partitions {

0 commit comments

Comments
 (0)