Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp514323imm; Wed, 20 Jun 2018 02:02:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLto0ZFAYlPrSbrDLXaQ+a8xtrX/PPyZT9FpcvTghJGY1srqshpn4Paz6/LJXLj04vjZqgz X-Received: by 2002:a63:9041:: with SMTP id a62-v6mr17872351pge.191.1529485340503; Wed, 20 Jun 2018 02:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529485340; cv=none; d=google.com; s=arc-20160816; b=AZEJNjUdep9YM4GZwhXkMvTzEDAa+YYQaX0iq6wT7p0qMT3BgEgcjyHknQSfnJxVLb ePvmSH9vXGku3PdIaFhCC2hnSvdSqvD50sCNDgXdDutILxINYVvgZ8/YuPG59GR79ZVa EjN0z7aCCygle67NFpfWRGrqibcN7gqNJzlMOHTMP7usSj+pkHylE5ZObdXY5JmuNQSi Bixx4+CEKYaZ2NgX4PotyiuPI738A5zUioGeFCqN6NSUpDc7bjz9dxuwuRecaRXFkD/N r5lCg/60jsAlAWN3OV8uigrJRhQMKYkOsuEJuFUTAVAC7G4GLJg3HhUlyexpI7LNyHA5 B9Yg== 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=94HwOSKmC1vj6L++7AHWHAmLUqR2nOfSIBg2JJUuH5g=; b=pmE/6lYv/sygBOAz9MEgGlSfzTzheBQmol52fHDfD20PqvtPxlNnL0sYgqt7myx+BT //+78AcM4NkWgD5tKvcyM2fQhd6M79N+OqWkIOmEOa3s32fFRmPMBp3HFk+c+0cjRhvI HLoPLYyRt5HKBU/q71I8XneOlAKCmbgWYEV8lYzlIcth1Gq3aEeIgXICJ1bomgfc4mid 7RpcGL8Wb9w+kWaQhcFKXT3ozvzICd5WSxljhf4O0xcVOPeGHAqjGg+PgOdKI5XVuIZt kvT/FGDgXLsa/dMRgWtKuzFQepZK8sJWieGc/qgnHOzfpVlUnKGnCojjuGPixPibz7Q5 zwrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="mg3N/U29"; dkim=pass header.i=@codeaurora.org header.s=default header.b=cZvbJevC; 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 d65-v6si2001737pfg.142.2018.06.20.02.02.06; Wed, 20 Jun 2018 02:02:20 -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="mg3N/U29"; dkim=pass header.i=@codeaurora.org header.s=default header.b=cZvbJevC; 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 S933139AbeFTI5i (ORCPT + 99 others); Wed, 20 Jun 2018 04:57:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:49548 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932748AbeFTIpA (ORCPT ); Wed, 20 Jun 2018 04:45:00 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1BBA360B23; Wed, 20 Jun 2018 07:28:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529479686; bh=YtQ0W2EsxcF0VoS5Cw3s5QEdqrgfZpLdj9N0gU3onic=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mg3N/U29qYqRZ3LujoFLuTgsQkULsGpWjouOJiCqnlQXFc0U3UjtlYAWKEjinOZI0 bywYkxt9eDIEQANgPJivLHxPOHsuQ1tkaYb0oHmnPzAOs1jHBt93UcX2woom7X/NPP Gc3uKq2lJmKY6qsK4eU7eDqb0bwaLyeM2L+wqDTU= 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 5CFD360B11; Wed, 20 Jun 2018 07:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1529479685; bh=YtQ0W2EsxcF0VoS5Cw3s5QEdqrgfZpLdj9N0gU3onic=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cZvbJevC1f6iwq62yafUg0ODMTiVQlf+2jeWIlr/WZQYFEavwsGKcMBnwKyll11nP cQhg6uTzNG2+LW2zuS1t2tTXijDV2ORMiBQOreplN6MwxVVMDY4X7dDWQrWKS/fmp1 /JNOOHB1SF+cVu+6UOWIDBv/lFt+if3VRvz/2Ad0= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5CFD360B11 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 , Miquel Raynal Cc: David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , 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 v4 03/15] dt-bindings: qcom_nandc: update for ECC strength and step size Date: Wed, 20 Jun 2018 12:57:30 +0530 Message-Id: <1529479662-4026-4-git-send-email-absahu@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1529479662-4026-1-git-send-email-absahu@codeaurora.org> References: <1529479662-4026-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 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 --- * Changes from v3: 1. Clubbed following 2 patches into one https://patchwork.ozlabs.org/patch/920465/ https://patchwork.ozlabs.org/patch/920467/ * Changes from v2: NONE * Changes from v1: NEW PATCH Documentation/devicetree/bindings/mtd/qcom_nandc.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt index 73d336be..1123cc6 100644 --- a/Documentation/devicetree/bindings/mtd/qcom_nandc.txt +++ b/Documentation/devicetree/bindings/mtd/qcom_nandc.txt @@ -45,11 +45,12 @@ 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 @@ -77,7 +78,6 @@ nand-controller@1ac00000 { reg = <0>; nand-ecc-strength = <4>; - nand-ecc-step-size = <512>; nand-bus-width = <8>; partitions { @@ -117,7 +117,6 @@ nand-controller@79b0000 { nand@0 { reg = <0>; nand-ecc-strength = <4>; - nand-ecc-step-size = <512>; nand-bus-width = <8>; partitions { -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation