From patchwork Mon Jun 6 07:43:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9157333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C8A6760759 for ; Mon, 6 Jun 2016 07:46:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA1132656B for ; Mon, 6 Jun 2016 07:46:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE04F281BE; Mon, 6 Jun 2016 07:46:25 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 396A82656B for ; Mon, 6 Jun 2016 07:46:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1b9pDK-0004wR-HK; Mon, 06 Jun 2016 07:44:46 +0000 Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b9pDF-0004rx-Qs for linux-arm-kernel@lists.infradead.org; Mon, 06 Jun 2016 07:44:42 +0000 Received: by mail-lf0-x244.google.com with SMTP id w16so12630309lfd.0 for ; Mon, 06 Jun 2016 00:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f9+0t1WrugH/M4U9eJdIxOysPKK1exgYAo6qCYPW2Sw=; b=U0UQx7twtwvSMqCCHtbXkCDk7RuZpaCD8A4893Jhvt9ZCuOI8sbSrv/rZdUIdSQNKa 0xjTKVpTVZZ4iprCKSISELzJPDI97erCxdHAEoTmSkolqWgs7JEnxMwHFfv6Efl01KrZ CkMBiNLIFUtCxRkl/oP8Lt83tlhg0ZE01gCoWIji36GIn/zAEs1jXZ8FPwkNOaOK2klx /DWrC7Dc37GwD3XBSmRwY5Jb4y4O7u5ihc8oKZNaXDBgbnmv/pfD/oQ+w5O6hpr4H43D LT5HPezNpOEY+I6VDcUI5n8/W+hNTUry0SzwLWXuVSJW7MLsMdKB5zdgvUZC+7rMNcgp rCGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f9+0t1WrugH/M4U9eJdIxOysPKK1exgYAo6qCYPW2Sw=; b=UAp/rr1Z9vqMTTEgY0ej36Cs2rsSVGvXj8GkeX6sUeHCqa3X57wiWwe0ouFVstmzVz U6t+Xa+pVvR2YGxuiV0TfX5BlZxGdVHbFI7W2yTJd2682gWDnGKC+J3+wGANlrm4DuXx Gkz9oNqGQguxHAB4APYXY8D7jM1Vjg2ihmcd73psNd/177RgzvlB/KEFXJanWLTCsTCo DXniFeUwBRRVbx3BOaLpfH4glUajTK5JJpcujdTUofwjsxej9uC6Sxe+mS9gZntlBdvm 6+lzds3L5aJ6Inc0o5kMquXz/QdfVDoTs9B2vvQg58fQtAYHfr/lIlce3feANTg2Snxh L5IQ== X-Gm-Message-State: ALyK8tK6DSKosPFSqDBLQK1pqjIG8VhYqlWGF8bFGfwetQnNqXgL1S35CMvNWLYNfpL5pw== X-Received: by 10.25.22.70 with SMTP id m67mr748765lfi.25.1465199059881; Mon, 06 Jun 2016 00:44:19 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id ky3sm1673320lbc.37.2016.06.06.00.44.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2016 00:44:19 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Florian Fainelli Subject: [PATCH 2/2] ARM: BCM5301X: Fix NAND ECC parameters for D-Link DIR-885L Date: Mon, 6 Jun 2016 09:43:50 +0200 Message-Id: <1465199036-24366-2-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 In-Reply-To: <1465199036-24366-1-git-send-email-zajec5@gmail.com> References: <1465199036-24366-1-git-send-email-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160606_004442_098816_8E708FA5 X-CRM114-Status: GOOD ( 16.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Pawel Moll , Ian Campbell , Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Russell King , open list , Rob Herring , "open list:BROADCOM BCM5301X ARM ARCHITECTURE" , Kumar Gala , "open list:BROADCOM BCM5301X ARM ARCHITECTURE" 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 device uses BCH-1 instead of BCH-8. This fixes ECC errors and makes NAND usable with brcmnand. Signed-off-by: Rafał Miłecki --- As suggested recently, the new file uses BSD-compatible license. I was considering BSD [23]-clause license and Hauke said he likes ISC which is even simpler, so I picked this one. --- arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 2 +- arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi diff --git a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts index 50cf804..c8c0b36 100644 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts @@ -10,7 +10,7 @@ /dts-v1/; #include "bcm4708.dtsi" -#include "bcm5301x-nand-cs0-bch8.dtsi" +#include "bcm5301x-nand-cs0-bch1.dtsi" / { compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708"; diff --git a/arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi new file mode 100644 index 0000000..24b099c --- /dev/null +++ b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi @@ -0,0 +1,15 @@ +/* + * Broadcom Northstar NAND. + * + * Copyright (C) 2016 Rafał Miłecki + * + * Licensed under the ISC license. + */ + +#include "bcm5301x-nand-cs0.dtsi" + +&nandcs { + nand-ecc-algo = "bch"; + nand-ecc-strength = <1>; + nand-ecc-step-size = <512>; +};