From patchwork Mon Jan 28 17:54:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Vaussard X-Patchwork-Id: 2057131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 77BECDF2A1 for ; Mon, 28 Jan 2013 17:56:39 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tzsun-0003Vs-GB; Mon, 28 Jan 2013 17:54:41 +0000 Received: from slb-mail0.epfl.ch ([2001:620:618:1e0:1:80b2:e059:1] helo=smtp4.epfl.ch) by merlin.infradead.org with smtp (Exim 4.76 #1 (Red Hat Linux)) id 1TzsuN-0003Qw-Rn for linux-arm-kernel@lists.infradead.org; Mon, 28 Jan 2013 17:54:17 +0000 Received: (qmail 22220 invoked by uid 107); 28 Jan 2013 17:54:14 -0000 X-Virus-Scanned: ClamAV Received: from lsro1pc340.epfl.ch (HELO lsro1pc340.epfl.ch) (128.178.145.154) (authenticated) by smtp4.epfl.ch (AngelmatoPhylax SMTP proxy) with ESMTPA; Mon, 28 Jan 2013 18:54:14 +0100 From: Florian Vaussard To: Benoit Cousson Subject: [PATCH 2/2] ARM: dts: OMAP3: Add NAND memory for Overo products Date: Mon, 28 Jan 2013 18:54:08 +0100 Message-Id: <1359395648-2137-3-git-send-email-florian.vaussard@epfl.ch> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1359395648-2137-1-git-send-email-florian.vaussard@epfl.ch> References: <1359395648-2137-1-git-send-email-florian.vaussard@epfl.ch> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130128_125416_692290_C3C4A9F8 X-CRM114-Status: UNSURE ( 8.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Tony Lindgren , devicetree-discuss@lists.ozlabs.org, Daniel Mack , Florian Vaussard , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add device-tree support for the on-board NAND memory, with corresponding partitions. Signed-off-by: Florian Vaussard --- arch/arm/boot/dts/omap3-overo.dtsi | 49 ++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap3-overo.dtsi b/arch/arm/boot/dts/omap3-overo.dtsi index 81341fa..0efd6f3 100644 --- a/arch/arm/boot/dts/omap3-overo.dtsi +++ b/arch/arm/boot/dts/omap3-overo.dtsi @@ -33,6 +33,55 @@ }; }; +&gpmc { + ranges = <0 0 0x30000000 0x00000004>; /* CS0: NAND */ + + nand@0 { + reg = <0 0 0>; /* CS0, offset 0 */ + + nand-bus-width = <16>; + ti,nand-ecc-opt = "sw"; + + gpmc,sync-clk = <0>; + gpmc,cs-on = <0>; + gpmc,cs-rd-off = <36>; + gpmc,cs-wr-off = <36>; + gpmc,adv-on = <6>; + gpmc,adv-rd-off = <24>; + gpmc,adv-wr-off = <36>; + gpmc,we-off = <30>; + gpmc,oe-off = <48>; + gpmc,access = <54>; + gpmc,rd-cycle = <72>; + gpmc,wr-cycle = <72>; + gpmc,wr-access = <30>; + gpmc,wr-data-mux-bus = <0>; + + #address-cells = <1>; + #size-cells = <1>; + + xloader@0 { + reg = <0x00000000 0x00080000>; + }; + + uboot@80000 { + reg = <0x00080000 0x001c0000>; + }; + + ubootenv@240000 { + reg = <0x00240000 0x00040000>; + }; + + linux@280000 { + reg = <0x00280000 0x00400000>; + }; + + rootfs@680000 { + reg = <0x00680000 0x1f980000>; /* 500 MB */ + }; + }; +}; + &i2c1 { clock-frequency = <2600000>;