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: 2057121 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 96BB0DF2A1 for ; Mon, 28 Jan 2013 17:54:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757653Ab3A1RyR (ORCPT ); Mon, 28 Jan 2013 12:54:17 -0500 Received: from smtp4.epfl.ch ([128.178.224.219]:40370 "HELO smtp4.epfl.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757629Ab3A1RyQ (ORCPT ); Mon, 28 Jan 2013 12:54:16 -0500 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 Cc: Tony Lindgren , Daniel Mack , Florian Vaussard , linux-omap@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org 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> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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>;