From patchwork Tue Oct 2 21:12:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Packham X-Patchwork-Id: 10624039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CCA791515 for ; Tue, 2 Oct 2018 21:13:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB07D26E7B for ; Tue, 2 Oct 2018 21:13:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE1D227F7F; Tue, 2 Oct 2018 21:13:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5EDE626E7B for ; Tue, 2 Oct 2018 21:13:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=AMt1o+e76pFNhtg2nrkI/yqx4dRxddci0GwaC9TLdjo=; b=BsFIpLFrAK2eBh HCdGq7iu/UP4OxlC039NsrmA5CgKFlIMYd94foqjcvk9XrTMpxb8VDhhtPCWB4FnCg3vWdCvD+7o+ VZeANyDWtlG+B2H1LKExo37bMETu3L3xlDtzaJ4uIX+64XK8fxARJ8qZjnn7rRVwJtDzKvIs9+6Jq 0ykVyJLqljudbwFj0C4/DYig+DPiqTCp1WrmE7eH3ifc0vtpI3XI7+9BrnDMd8UDEWkKpzyC8r7bn 2OJc6Mee3WpUsbkCxjlsqmZijydvMjcQL+bJSOlW2k9qH+bFWZtht7nYSIAjPGLQxtM9RQmeuj6Ay avwhQNnU8b+UuEge0sIg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7Ryr-0006iY-Mm; Tue, 02 Oct 2018 21:13:21 +0000 Received: from gate2.alliedtelesis.co.nz ([202.36.163.20]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7RyU-0006Qx-Np for linux-arm-kernel@lists.infradead.org; Tue, 02 Oct 2018 21:13:17 +0000 Received: from mmarshal3.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id A4FA68011F; Wed, 3 Oct 2018 10:12:40 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail; t=1538514760; bh=Pu+1ciGlEm6xZggihOkIbM7fZFzJGWqFxIymnxZ/nUc=; h=From:To:Cc:Subject:Date; b=LPQ7HNHPVSwsSNTtRs8BDHg6tLtV61CeILPyBJ6oQ06RCpn+tPmP6ahs3irtlEpi7 yI/r/0VJUNv2zdo15+JU8ZlkBSX3rww9xME4swohD7l+imbhOU+AOeQSM7NBKRy3K1 c20fOfKnNJT10+dgUWjVl4S+xqTo5DcSCshNF8iY= Received: from smtp (Not Verified[10.32.16.33]) by mmarshal3.atlnz.lc with Trustwave SEG (v7, 5, 8, 10121) id ; Wed, 03 Oct 2018 10:12:40 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by smtp (Postfix) with ESMTP id 87A3F13EEA8; Wed, 3 Oct 2018 10:12:44 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 6A09E1E1D93; Wed, 3 Oct 2018 10:12:40 +1300 (NZDT) From: Chris Packham To: gregory.clement@bootlin.com, andrew@lunn.ch, jason@lakedaemon.net Subject: [PATCH] ARM: dts: auto-detect nand ECC properites for db-88f6820-amc Date: Wed, 3 Oct 2018 10:12:33 +1300 Message-Id: <20181002211233.20774-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 x-atlnz-ls: pat X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181002_141259_102867_2BD3F199 X-CRM114-Status: UNSURE ( 9.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Chris Packham , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This board has a Micron MT29F8G08ABACAWP chip which requires a ECC strength of 8/512. Rather than hard coding any particular strength the the nand controller auto-detect the ECC strength based on the ONFI data. Signed-off-by: Chris Packham --- arch/arm/boot/dts/armada-385-db-88f6820-amc.dts | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/boot/dts/armada-385-db-88f6820-amc.dts b/arch/arm/boot/dts/armada-385-db-88f6820-amc.dts index dc9ccce1d4a1..7881df3b28a0 100644 --- a/arch/arm/boot/dts/armada-385-db-88f6820-amc.dts +++ b/arch/arm/boot/dts/armada-385-db-88f6820-amc.dts @@ -99,8 +99,6 @@ label = "pxa3xx_nand-0"; nand-rb = <0>; nand-on-flash-bbt; - nand-ecc-strength = <4>; - nand-ecc-step-size = <512>; partitions { compatible = "fixed-partitions";