Received: by 10.192.165.148 with SMTP id m20csp1782969imm; Thu, 3 May 2018 05:27:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrWcVrLSqYfCe1MAJE/gAmaAnaR9maZ+sLzWYx9AY9Aw1hpACeOd5xqCBp7sY7Ijx12d8HS X-Received: by 2002:a63:7945:: with SMTP id u66-v6mr18941972pgc.376.1525350462960; Thu, 03 May 2018 05:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525350462; cv=none; d=google.com; s=arc-20160816; b=MmbV9LHuSHwymfANX/4oGMOgWwNUfpXTjse4aBdehTJiHvDLuju8PMkiQRMOU80p3o J/jCcmuGudI5OIqDM65mZHjZum97rjZiHCc/TQFDdokO/q8nsNt43mf0RO0YYDYR00af 2hecLWPAOoGjKmpFmSjPMSJZxGYfxa4/A5Wc1aETbTYOMnEwlL/ziPZZ0g3uOXReJdOy jTUV1ejavQbFurai4mJpwANPnV7w2SbW15R5ZpT0mOXGVCdTC2VqWCfzxoSDvkkYRt2Z 77mYkyE9kPlJak7oc9bJIxCAoUFmCrGvk+E6u9csB4vAC0XrYB4h0H6lNHyNUt/lDNIC 2E9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=pBvU1Hrbo6UNOCwE2v3+wTl6W+LrhaZDqqYzsr379nc=; b=f5547n9Gwz/P+Fhvkt6oy0+7IvwoKEq9673tfv7bR93D6GkunOeP44afb4mn83yln9 w6PQgRU8SxY64+qaGLqrI3WQZ97I1PIvI/b/OsXqVjfPWKWQnR/I+EQpiJ4vn2TNsAgT Sw1x99NJzC6Z4Q3EosWWplhcJtK1+G9QuDHb2D8eZEK/QNpuwMsjBiRBm9XurNSPht7b 5K6XEJldrOeRzLhcHd5oD0qPH3sgMRiPFauUUi7nvKPG0WuWHKhOifCFLXV1iK4UWavS PGXM7sYKGZgPD4TzXEPZOaZstU7HX2n2Pl1bSceFKV3MWJk48Ew+yCJkeiAVzoMOvoNY lv7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=BYgO2aJH; dkim=pass header.i=@codeaurora.org header.s=default header.b=oyIP79V+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1-v6si11250248pgq.282.2018.05.03.05.27.28; Thu, 03 May 2018 05:27:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=BYgO2aJH; dkim=pass header.i=@codeaurora.org header.s=default header.b=oyIP79V+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752272AbeECMZO (ORCPT + 99 others); Thu, 3 May 2018 08:25:14 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41408 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbeECMVJ (ORCPT ); Thu, 3 May 2018 08:21:09 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7D641607E4; Thu, 3 May 2018 12:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525350068; bh=Te26cEgYn2AdQGiHAG57aXZmXkqfUhGmwroqtIfqd58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BYgO2aJHlSqzFVgWh7fa0lQGeFySf9fU4kuY7sx4c9tA1YvbVdk4h8EMibQ4SXIDP y5X3X7DKPLVvFFkEiuMvQW5gBroGG2KG1PzoUlhG4ugSALElIOLkxHUBWFoT8SgGt8 8V0BGgi6lHPnPGZ+b29usVzMKXJw4ClxPqWEwWGk= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from absahu-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: absahu@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3B20E607CF; Thu, 3 May 2018 12:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525350067; bh=Te26cEgYn2AdQGiHAG57aXZmXkqfUhGmwroqtIfqd58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oyIP79V+GHrtayQDBhyZZ9sKh4mEVQqJl2U0qJDbcyIywZSMMQnGahMGmpiD3p8Ny DDYRe5UCAIar3Z469GxvVbQrA7Buaz6858zQpWkNiGZ69QP1kqLO7OddpnovqAqm8t 1sjU2NU/W5wwabYXS0BmYAzKFXyl4yxs8YoHMSUg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3B20E607CF Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=absahu@codeaurora.org From: Abhishek Sahu To: Boris Brezillon Cc: David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Miquel Raynal , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Andy Gross , Archit Taneja , Abhishek Sahu , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v2 03/14] dt-bindings: qcom_nandc: make nand-ecc-strength optional Date: Thu, 3 May 2018 17:50:30 +0530 Message-Id: <1525350041-22995-4-git-send-email-absahu@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1525350041-22995-1-git-send-email-absahu@codeaurora.org> References: <1525350041-22995-1-git-send-email-absahu@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now, nand-ecc-strength is optional. If specified in DT, then controller will use this ECC strength otherwise ECC strength will be calculated according to chip requirement and available OOB size. Signed-off-by: Abhishek Sahu --- * Changes from v1: NEW PATCH Documentation/devicetree/bindings/mtd/qcom_nandc.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt index 73d336be..f246aa0 100644 --- a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt +++ b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt @@ -45,11 +45,13 @@ Required properties: number (e.g., 0, 1, 2, etc.) - #address-cells: see partition.txt - #size-cells: see partition.txt -- nand-ecc-strength: see nand.txt - nand-ecc-step-size: must be 512. see nand.txt for more details. Optional properties: - nand-bus-width: see nand.txt +- nand-ecc-strength: see nand.txt. If not specified, then ECC strength will + be used according to chip requirement and available + OOB size. Each nandcs device node may optionally contain a 'partitions' sub-node, which further contains sub-nodes describing the flash partition mapping. See -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation