From patchwork Fri Jan 17 12:13:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 312044 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4BC162C0078 for ; Fri, 17 Jan 2014 23:13:32 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751379AbaAQMNb (ORCPT ); Fri, 17 Jan 2014 07:13:31 -0500 Received: from top.free-electrons.com ([176.31.233.9]:55355 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751331AbaAQMNb (ORCPT ); Fri, 17 Jan 2014 07:13:31 -0500 Received: by mail.free-electrons.com (Postfix, from userid 106) id 89A987F1; Fri, 17 Jan 2014 13:13:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.3.2 Received: from localhost.localdomain (unknown [190.2.98.212]) by mail.free-electrons.com (Postfix) with ESMTPA id 6104961B; Fri, 17 Jan 2014 13:13:32 +0100 (CET) From: Ezequiel Garcia To: , Cc: Brian Norris , David Woodhouse , Pekon Gupta , Thomas Petazzoni , Gregory Clement , Seif Mazareeb , Lior Amsalem , Ezequiel Garcia Subject: [RFC/PATCH 1/1] mtd: nand: Add a devicetree binding for ECC strength and ECC step size Date: Fri, 17 Jan 2014 09:13:40 -0300 Message-Id: <1389960820-18696-2-git-send-email-ezequiel.garcia@free-electrons.com> X-Mailer: git-send-email 1.8.1.5 In-Reply-To: <1389960820-18696-1-git-send-email-ezequiel.garcia@free-electrons.com> References: <1389960820-18696-1-git-send-email-ezequiel.garcia@free-electrons.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Some flashes can only be properly accessed when the ECC mode is specified, and a way to describe such mode is required. Such ECC mode is completely driver-specific so instead of having one binding per compatible-string, let's add generic ECC strength and ECC step size. Driver's can choose the appropriate ECC mode, based on this specification. Signed-off-by: Ezequiel Garcia --- Documentation/devicetree/bindings/mtd/nand.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/nand.txt b/Documentation/devicetree/bindings/mtd/nand.txt index 03855c8..683a310 100644 --- a/Documentation/devicetree/bindings/mtd/nand.txt +++ b/Documentation/devicetree/bindings/mtd/nand.txt @@ -3,5 +3,9 @@ - nand-ecc-mode : String, operation mode of the NAND ecc mode. Supported values are: "none", "soft", "hw", "hw_syndrome", "hw_oob_first", "soft_bch". +- nand-ecc-strength : integer ECC required strength. +- nand-ecc-size : integer step size associated to the ECC strength. + The exact meaning of the ECC strength and ECC size parameters is completely + driver-specific. - nand-bus-width : 8 or 16 bus width if not present 8 - nand-on-flash-bbt: boolean to enable on flash bbt option if not present false