From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from top.free-electrons.com ([176.31.233.9] helo=mail.free-electrons.com) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WHixR-0002q6-7p for linux-mtd@lists.infradead.org; Sun, 23 Feb 2014 23:59:41 +0000 Date: Sun, 23 Feb 2014 20:59:08 -0300 From: Ezequiel Garcia To: linux-mtd@lists.infradead.org Subject: Re: [PATCH v2 0/2] mtd: Add NAND ECC devicetree binding Message-ID: <20140223235907.GB5343@localhost> References: <1392749474-12936-1-git-send-email-ezequiel.garcia@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1392749474-12936-1-git-send-email-ezequiel.garcia@free-electrons.com> Cc: Grant Likely , Brian Norris , Boris BREZILLON List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Feb 18, 2014 at 03:51:12PM -0300, Ezequiel Garcia wrote: > Finally we collect an ack from a devicetree authority (thanks Grant) so > this is the second round to add a suitable ECC devicetree binding. > > NAND controllers have special ECC modes, raising per-driver ECC mode devicetree > binding. See for instance the binding for OMAP: > > - ti,nand-ecc-opt: A string setting the ECC layout to use. One of: > "sw" use "ham1" instead > "hw" use "ham1" instead > "hw-romcode" use "ham1" instead > "ham1" 1-bit Hamming ecc code > "bch4" 4-bit BCH ecc code > "bch8" 8-bit BCH ecc code > > Other drivers (such as pxa3xx-nand) have similar requirements, with special > (controller-specific) ECC modes. Instead of adding a possibly different > binding per compatible-string, let's add generic ECC strength and ECC step size. > > This properties aim at providing a complete description of the required ECC > correction to let drivers choose the appropriate ECC mode. > > Ezequiel Garcia (2): > of_mtd: Add helpers to get ECC strength and ECC step size > mtd: nand: Add a devicetree binding for ECC strength and ECC step size > > Documentation/devicetree/bindings/mtd/nand.txt | 14 +++++++++++ > drivers/of/of_mtd.c | 34 ++++++++++++++++++++++++++ > include/linux/of_mtd.h | 12 +++++++++ > 3 files changed, 60 insertions(+) > Any comments about this? -- Ezequiel GarcĂ­a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com