From patchwork Fri Dec 6 23:13:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 3302801 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 69B7F9F37A for ; Fri, 6 Dec 2013 23:16:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 963F7203A8 for ; Fri, 6 Dec 2013 23:16:37 +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 9E1692038F for ; Fri, 6 Dec 2013 23:16:35 +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-0007M7-EA; Fri, 06 Dec 2013 23:15:04 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vp4bQ-0005Lu-0A; Fri, 06 Dec 2013 23:14:32 +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 1Vp4bM-0005Jp-JK; Fri, 06 Dec 2013 23:14:29 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id 91FDF2C0C4D; Sat, 7 Dec 2013 00:14:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1386371647; bh=3yTPnqNtJdkfkxMU16ylki9WMbqJUuywuur8BXxyQ7g=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=jgnalhPlf99PyBP0mRxTcdS1o8MR/7Q3F2Yncm9KOrsbVKkqBkDO9ex/FXLVOZGir I9jwmv1s7U+CPTnK7Qwx2yGvrceuYCeo2wHUCNU7w+3gu8ZxDUVWdxxezk29JRrX7O +1spNuMQpOS+AvFRzNn35jmYTjirbMArUXCQSmdM= 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 241192C0D6D; Sat, 7 Dec 2013 00:13:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1386371634; bh=3yTPnqNtJdkfkxMU16ylki9WMbqJUuywuur8BXxyQ7g=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=Yn3/BRBHHcK1EtfEVkmD+9AmRXYJc0b4WnmyW9DJ10dLMLslq/845BIhEb/h4/Ub2 UZlofndIc9Q5MgGCq8CnxtStC4yMq6S45L2iIaducfC3pJmWVyZxyDjiYjFjEz4U3q cC9glErpmE3hTdefUPQoHTMVc0OQDZ1pv2f6eQGs= X-Hashcash: 1:20:131206:jason@lakedaemon.net::D4JgGr3XM4iKRRSB:00000000000000000000000000000000000000000DQIw X-Hashcash: 1:20:131206:andrew@lunn.ch::qPmjSKRZ+vzRZPri:0000UJ5 X-Hashcash: 1:20:131206:gregory.clement@free-electrons.com::mMycqpIrRcozeA5x:0000000000000000000000000002Set X-Hashcash: 1:20:131206:sebastian.hesselbarth@gmail.com::DEYk/VW+zw4nI0vA:0000000000000000000000000000004oxs X-Hashcash: 1:20:131206:ezequiel.garcia@free-electrons.com::BmX2pv8a729+s44m:0000000000000000000000000000v92 X-Hashcash: 1:20:131206:linux@arm.linux.org.uk::L7SAJ1TT52y2hMiB:0000000000000000000000000000000000000004z1i X-Hashcash: 1:20:131206:linux-arm-kernel@lists.infradead.org::LcKNPfCON1aEr22c:00000000000000000000000000PdM X-Hashcash: 1:20:131206:rob.herring@calxeda.com::IykSL+lqyvI5AMPQ:000000000000000000000000000000000000000TNQ X-Hashcash: 1:20:131206:pawel.moll@arm.com::VYhH+LH0t/ZEuD6w:00000000000000000000000000000000000000000000EDy X-Hashcash: 1:20:131206:mark.rutland@arm.com::fUCJt30i2LOPzVoS:000000000000000000000000000000000000000009eyg X-Hashcash: 1:20:131206:swarren@wwwdotorg.org::3FSxky2dC8REcNma:00000000000000000000000000000000000000008TVy X-Hashcash: 1:20:131206:ijc+devicetree@hellion.org.uk::Z05XDzml8xPwte7S:0000000000000000000000000000000047Wc X-Hashcash: 1:20:131206:devicetree@vger.kernel.org::rHuRPxn6/x0+xOHr:000000000000000000000000000000000001AJ2 X-Hashcash: 1:20:131206:computersforpeace@gmail.com::H9m2z/YQpyrYF1q2:00000000000000000000000000000000002lgG X-Hashcash: 1:20:131206:thomas.petazzoni@free-electrons.com::TCOeFLVfy24bNGOW:000000000000000000000000003EKu X-Hashcash: 1:20:131206:olof@lixom.net::rKZiJLMbvL6zWIKT:0002KwE X-Hashcash: 1:20:131206:alior@marvell.com::N2k2IujrzZMZde1X:000000000000000000000000000000000000000000003JxD X-Hashcash: 1:20:131206:linux-mtd@lists.infradead.org::9xZ5vCln4bH2w91p:000000000000000000000000000000004go+ From: Arnaud Ebalard To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Ezequiel Garcia Subject: [PATCHv0 3/3] ARM: mvebu: Enable NAND controller in ReadyNAS 2120 .dts file In-Reply-To: References: Message-Id: Date: Sat, 07 Dec 2013 00:13:53 +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_181429_232399_08809152 X-CRM114-Status: GOOD ( 10.42 ) 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 XP (cb28e2537a6f: ARM: mvebu: Add support for NAND controller in Armada 370/XP), this patch enables support for ReadyNAS 2120 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-xp-netgear-rn2120.dts | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/armada-xp-netgear-rn2120.dts b/arch/arm/boot/dts/armada-xp-netgear-rn2120.dts index 8b2a787..f048b4e 100644 --- a/arch/arm/boot/dts/armada-xp-netgear-rn2120.dts +++ b/arch/arm/boot/dts/armada-xp-netgear-rn2120.dts @@ -211,6 +211,42 @@ reg = <0x4c>; }; }; + + 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 */ + }; + }; }; };