From patchwork Mon Jun 6 07:43:49 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: 9157335 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 B7D3D60759 for ; Mon, 6 Jun 2016 07:46:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9E092656B for ; Mon, 6 Jun 2016 07:46:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E6EF26E82; Mon, 6 Jun 2016 07:46:26 +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 3BECA26907 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 1b9pDE-0004vS-Cj; Mon, 06 Jun 2016 07:44:40 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1b9pDB-0004qd-7z for linux-arm-kernel@lists.infradead.org; Mon, 06 Jun 2016 07:44:38 +0000 Received: by mail-lf0-x241.google.com with SMTP id s186so5962242lfs.2 for ; Mon, 06 Jun 2016 00:44:15 -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:mime-version :content-transfer-encoding; bh=Nss/vnhqkagDGNjdaSew3Nz7KNVSNG+7/hgzVMaMNMc=; b=Fvov9mt3dsYnRX+nDiA/90aL2HgewvvbC8Yz39fZ0riphIkZHZPTAjag7/qIxY133R TvEsaiAhe/zUU9i3/etVQjgKrPpO3JT62GggVhpptPLd9mu/d9SI3SWsCkmrooe/khjG pkqPCjsa93x0yQai/aQWOnAMKRZ3QdceXVZPGQDIYt3AySRl79Rw9cc6EhUpMbN+DU/N dRLfuzYnbdzoDH/9QVSyQuhFP4cth3LRXDuoyLoYZ/5L3T/UfdpRsMt95555IMX2k9/p 68rGt1CLxnwPfbgVBZWygCBwfCoi0Lg2PJ/nN0qcJUqCbZfx9yJEF7dzBdDnHDdvjN4F sC7A== 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:mime-version :content-transfer-encoding; bh=Nss/vnhqkagDGNjdaSew3Nz7KNVSNG+7/hgzVMaMNMc=; b=IrqhXgENKfj9GJd0rbvSJhcUYgnA5RJvASr591ocY0j2/dPgtqNXtTpEIe6KYHK6ct DIJlIwwGDD20KGV+CxsNHTHL/AfVU4fxCaGfnmkHVwALIKimjsubAXSpwaE3L0HX8zU3 na8Mr7hIpYyINKU3FaQqs1dSaaCOAu6nI0oyipoQbRZwYgw0ng8mX/rM2F94zn271Fbr /4r1gX9v5M0RNVFyx4njfd10uCHuzthHa5NVEmff2olET9zrIzn3XwaJ15/1bEvOSFUO kPnMbIhfXTUVVeDJbwQygBRKHXZMIITbOC49VSuY6AhsPFU6+bQdhu9dRGfTJ0YX1YxG DuPg== X-Gm-Message-State: ALyK8tLsthtgY2OLO/pJDQn50QyEEwL1tJcjuh2pxkfNSdzpO+snNNgs1rrokWPYO6RgNg== X-Received: by 10.25.168.9 with SMTP id r9mr734034lfe.18.1465199053954; Mon, 06 Jun 2016 00:44:13 -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.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Jun 2016 00:44:13 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Florian Fainelli Subject: [PATCH 1/2] ARM: BCM5301X: Specify NAND chip select and ECC in separated files Date: Mon, 6 Jun 2016 09:43:49 +0200 Message-Id: <1465199036-24366-1-git-send-email-zajec5@gmail.com> X-Mailer: git-send-email 1.8.4.5 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160606_004437_479289_9D0C8D3D X-CRM114-Status: GOOD ( 16.69 ) 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 Using separated file with common chip select parameters will allow us adding other ECC setups without code duplication. Signed-off-by: Rafał Miłecki --- arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi | 16 +++++----------- arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi diff --git a/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi index d10781e..9a9630d 100644 --- a/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi +++ b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi @@ -9,16 +9,10 @@ * Licensed under the GNU/GPL. See COPYING for details. */ -/ { - nand@18028000 { - nandcs@0 { - compatible = "brcm,nandcs"; - reg = <0>; - #address-cells = <1>; - #size-cells = <1>; +#include "bcm5301x-nand-cs0.dtsi" - nand-ecc-strength = <8>; - nand-ecc-step-size = <512>; - }; - }; +&nandcs { + nand-ecc-algo = "bch"; + nand-ecc-strength = <8>; + nand-ecc-step-size = <512>; }; diff --git a/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi b/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi new file mode 100644 index 0000000..1684951 --- /dev/null +++ b/arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi @@ -0,0 +1,18 @@ +/* + * Broadcom Northstar NAND. + * + * Copyright (C) 2015 Hauke Mehrtens + * + * Licensed under the GNU/GPL. See COPYING for details. + */ + +/ { + nand@18028000 { + nandcs: nandcs@0 { + compatible = "brcm,nandcs"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + }; + }; +};