From patchwork Fri Dec 6 23:13:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 3302741 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B92E09F37A for ; Fri, 6 Dec 2013 23:16:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DF3E7202FE for ; Fri, 6 Dec 2013 23:16:00 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 371B320303 for ; Fri, 6 Dec 2013 23:15:59 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vp4bV-00075y-72; Fri, 06 Dec 2013 23:14:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vp4bA-0005KB-2E; Fri, 06 Dec 2013 23:14:16 +0000 Received: from mic92-1-81-57-185-249.fbx.proxad.net ([81.57.185.249] helo=smtp.natisbad.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vp4b7-0005IV-J1; Fri, 06 Dec 2013 23:14:14 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id 40E112C0C57; Sat, 7 Dec 2013 00:13:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1386371632; bh=MsOzsubhJY8IjsrVM9gHUfQZr+Rvqxw2W566EFT+1LI=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=AzgQ60bz99xo8PkDX0dZjvoze0wMlUh3QfhUrLwhkxZRSdG0kakQMI9fnUSzm/21O 9mwqHZhEC+SzxM1hYhJ/eYjmu1fwLkHQzxIhQAdJpVHMSZbS05m5bcUyccTWFzzTxh q5smItVU0Umv62INZyildrT6vZ6coen17ZMusByA= X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from small (localhost [127.0.0.1]) by smtp.natisbad.org (Postfix) with ESMTP id 07CC32C00B1; Sat, 7 Dec 2013 00:13:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1386371618; bh=MsOzsubhJY8IjsrVM9gHUfQZr+Rvqxw2W566EFT+1LI=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=OXWKLG4roN/jScRS/KvvH4SnV92Eny1dHr/iaQGrc8TseHm9SDi5oq94tm9Azlbh6 YeUj4FofAEeGkbMywJFGEJnvZ6tUfH8pyuRLrz7mfcUu2majdxK52ahDS79OYTvsR8 xDwt08/0h78crbM5vGpwLNQt/7CQYb0A+RHtbttE= X-Hashcash: 1:20:131206:jason@lakedaemon.net::ufCOnupq8zzw5rP4:000000000000000000000000000000000000000001JB0 X-Hashcash: 1:20:131206:andrew@lunn.ch::XnQZdq1hBtOQiN9W:00016WH X-Hashcash: 1:20:131206:gregory.clement@free-electrons.com::3caEcCycZqqFlTry:00000000000000000000000000015ag X-Hashcash: 1:20:131206:sebastian.hesselbarth@gmail.com::Vf7MrmTtibhF7Hwk:0000000000000000000000000000003emH X-Hashcash: 1:20:131206:ezequiel.garcia@free-electrons.com::NasqreKmXzRSbaag:0000000000000000000000000009Epd X-Hashcash: 1:20:131206:linux@arm.linux.org.uk::jcWIeMY3uYOkQRLy:0000000000000000000000000000000000000003S0Z X-Hashcash: 1:20:131206:linux-arm-kernel@lists.infradead.org::7bbVJR/LrHOlAIT1:00000000000000000000000000tMD X-Hashcash: 1:20:131206:rob.herring@calxeda.com::pAV+ABkHQ7WQMJXR:000000000000000000000000000000000000007klc X-Hashcash: 1:20:131206:pawel.moll@arm.com::W2d+FZkbk+YqB9xU:00000000000000000000000000000000000000000001Z5d X-Hashcash: 1:20:131206:mark.rutland@arm.com::X1iZwkSYjFIhVJo+:000000000000000000000000000000000000000000M49 X-Hashcash: 1:20:131206:swarren@wwwdotorg.org::8HIwYqNjly3w1MPy:00000000000000000000000000000000000000002YTB X-Hashcash: 1:20:131206:ijc+devicetree@hellion.org.uk::K70lJ8VdrAa6/9aj:00000000000000000000000000000000241a X-Hashcash: 1:20:131206:devicetree@vger.kernel.org::IuSpgE42wJrl0MMv:000000000000000000000000000000000001Ccg X-Hashcash: 1:20:131206:computersforpeace@gmail.com::v59rCtvD4stIFf15:00000000000000000000000000000000008BHu X-Hashcash: 1:20:131206:thomas.petazzoni@free-electrons.com::St0Xs5bYVRz/Rb1y:000000000000000000000000003pZS X-Hashcash: 1:20:131206:olof@lixom.net::QTDo4okeQiAbg0Rj:0003XUx X-Hashcash: 1:20:131206:alior@marvell.com::rqMfehRRPVScYe2D:000000000000000000000000000000000000000000004BKZ X-Hashcash: 1:20:131206:linux-mtd@lists.infradead.org::T4z6F9eb3+xfC1tu:000000000000000000000000000000009383 From: Arnaud Ebalard To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Ezequiel Garcia Subject: [PATCHv0 1/3] ARM: mvebu: Enable NAND controller in ReadyNAS 102 .dts file In-Reply-To: References: Message-Id: <44fca21c0eadbd1c59161a57a348f93e717b4f80.1386370808.git.arno@natisbad.org> Date: Sat, 07 Dec 2013 00:13:37 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131206_181413_912816_941045B9 X-CRM114-Status: GOOD ( 10.52 ) X-Spam-Score: -1.0 (-) Cc: Mark Rutland , devicetree@vger.kernel.org, Russell King , Pawel Moll , Stephen Warren , Ian Campbell , Rob Herring , Lior Amsalem , Andrew Lunn , Olof Johansson , linux-mtd@lists.infradead.org, Brian Norris , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 Now that NAND controller support is available for Armada 370 (cb28e2537a6f: ARM: mvebu: Add support for NAND controller in Armada 370/XP), this patch enables support for ReadyNAS 102 and defines default partition layout as delivered by NETGEAR. As described in similar commits 2be2bc39c6f0 (ARM: mvebu: Enable NAND controller in Armada XP GP board) and d8c552dddfbf (ARM: mvebu: Enable NAND controller in Armada 370 Mirabox), "marvell,keep-config" parameter is used as current support does not allow for setting of timing parameters yet. Signed-off-by: Arnaud Ebalard --- arch/arm/boot/dts/armada-370-netgear-rn102.dts | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/armada-370-netgear-rn102.dts b/arch/arm/boot/dts/armada-370-netgear-rn102.dts index 1c2d13d..6a7383f 100644 --- a/arch/arm/boot/dts/armada-370-netgear-rn102.dts +++ b/arch/arm/boot/dts/armada-370-netgear-rn102.dts @@ -131,6 +131,42 @@ pwm_polarity = <0>; }; }; + + nand@d0000 { + status = "okay"; + num-cs = <1>; + marvell,nand-keep-config; + marvell,nand-enable-arbiter; + nand-on-flash-bbt; + + partition@0 { + label = "u-boot"; + reg = <0x0000000 0x180000>; /* 1.5MB */ + read-only; + }; + + partition@180000 { + label = "u-boot-env"; + reg = <0x180000 0x20000>; /* 128KB */ + read-only; + }; + + partition@200000 { + label = "uImage"; + reg = <0x0200000 0x600000>; /* 6MB */ + }; + + partition@800000 { + label = "minirootfs"; + reg = <0x0800000 0x400000>; /* 4MB */ + }; + + /* Last MB is for the BBT, i.e. not writable */ + partition@c00000 { + label = "ubifs"; + reg = <0x0c00000 0x7400000>; /* 116MB */ + }; + }; }; };