Linux-mtd Archive on
 help / color / Atom feed
From: Miquel Raynal <>
To: Rob Herring <>,
	Mark Rutland <>, <>
Cc: Vignesh Raghavendra <>,
	Tudor Ambarus <>,, Richard Weinberger <>,
	Boris Brezillon <>,,
	Thomas Petazzoni <>,
	Miquel Raynal <>,
Subject: [PATCH v12 2/2] dt-bindings: mtd: Document boolean NAND ECC properties
Date: Tue, 30 Jun 2020 09:28:22 +0200
Message-ID: <> (raw)
In-Reply-To: <>

Document nand-use-soft-ecc-engine and nand-no-ecc-engine properties.
The former is here to force software correction, the latter prevents
any correction to happen.

These properties (along with nand-ecc-engine) are supposed to be more
accurate than the current nand-ecc-modes wich is very misleading and
very often people think it is mandatory while the core should be
relied upon to decide which correction to handle.

nand-ecc-mode was already inacurate, but it becomes totally
problematic with setups where there are several hardware engines.

Signed-off-by: Miquel Raynal <>
 .../devicetree/bindings/mtd/nand-controller.yaml          | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/nand-controller.yaml b/Documentation/devicetree/bindings/mtd/nand-controller.yaml
index 9ee0f3827047..d0238e9ba3f4 100644
--- a/Documentation/devicetree/bindings/mtd/nand-controller.yaml
+++ b/Documentation/devicetree/bindings/mtd/nand-controller.yaml
@@ -69,6 +69,14 @@ patternProperties:
           3/ The ECC engine is external, in this case the phandle should
           reference the specific ECC engine node.
+      nand-use-soft-ecc-engine:
+        type: boolean
+        description: Use a software ECC engine.
+      nand-no-ecc-engine:
+        type: boolean
+        description: Do not use any ECC correction.
           - $ref: /schemas/types.yaml#/definitions/string

Linux MTD discussion mailing list

      parent reply index

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-30  7:28 [PATCH v12 0/2] NAND ECC engine binding changes Miquel Raynal
2020-06-30  7:28 ` [PATCH v12 1/2] dt-bindings: mtd: Document nand-ecc-engine Miquel Raynal
2020-06-30  7:28 ` Miquel Raynal [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-mtd Archive on

Archives are clonable:
	git clone --mirror linux-mtd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-mtd linux-mtd/ \
	public-inbox-index linux-mtd

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone