From patchwork Wed May 21 11:21:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 30536 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f199.google.com (mail-ve0-f199.google.com [209.85.128.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3FD8320A64 for ; Wed, 21 May 2014 11:22:57 +0000 (UTC) Received: by mail-ve0-f199.google.com with SMTP id oz11sf6299765veb.10 for ; Wed, 21 May 2014 04:22:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=EYceB8vG5lrJh4oDs8U+p9Z8Si239hti0uPmpe6z+dQ=; b=e5QG336VsXW9u8M4gfgmd90+1GHKqOD3SngVAo5YW6sTaKvS/5Fd+/DZZl8OySyr0f WVjzfSZmrOB6EbHRL02pOZ9jwAfdLsliuhnrVq4VizX9ClLQG1x38yRUm+iQYnrP0oah PjCHrOuxK4fwvgmA5+TVNWpwxE8ti92dmqn53narJkZSTUu3POaQcnQte1giS3m8xy2I hgX+EeQ68FTTUDfEvTweXE1JwmWSOtl3gem1Lg71s1pkK5oSWBj9JWbzZCfc+xginAV5 F/Ea8E28+dVRcFLkUeUpJZU3QfA3XPACdCANZFBf6mROn9K3Z3ZYc6UqYd+GYXG0jGS8 hfOg== X-Gm-Message-State: ALoCoQnNXwszYi+NdOxiSe1Hfhx8JmVdphtzCJNItfsypUAnxPLV1RBwiqBM2neJNuMI12ErqLEJ X-Received: by 10.58.202.10 with SMTP id ke10mr22064240vec.8.1400671377054; Wed, 21 May 2014 04:22:57 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.16.173 with SMTP id 42ls669451qgb.62.gmail; Wed, 21 May 2014 04:22:56 -0700 (PDT) X-Received: by 10.220.133.197 with SMTP id g5mr9168172vct.20.1400671376905; Wed, 21 May 2014 04:22:56 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id fi8si988974vdb.57.2014.05.21.04.22.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 May 2014 04:22:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id jz11so2284404veb.35 for ; Wed, 21 May 2014 04:22:56 -0700 (PDT) X-Received: by 10.52.147.200 with SMTP id tm8mr64102vdb.54.1400671376814; Wed, 21 May 2014 04:22:56 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp104601vcb; Wed, 21 May 2014 04:22:56 -0700 (PDT) X-Received: by 10.66.231.40 with SMTP id td8mr58317226pac.103.1400671375648; Wed, 21 May 2014 04:22:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tc5si28725627pac.63.2014.05.21.04.22.55; Wed, 21 May 2014 04:22:55 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752695AbaEULWv (ORCPT + 27 others); Wed, 21 May 2014 07:22:51 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:36823 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752110AbaEULWt (ORCPT ); Wed, 21 May 2014 07:22:49 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s4LBMGtY014851; Wed, 21 May 2014 06:22:16 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4LBMFRZ027640; Wed, 21 May 2014 06:22:16 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Wed, 21 May 2014 06:22:15 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s4LBLAAl018495; Wed, 21 May 2014 06:22:12 -0500 From: Roger Quadros To: , CC: , , , , , , , , , , , Roger Quadros Subject: [RFC PATCH 16/16] ARM: dts: omap3-beagle: Add NAND device Date: Wed, 21 May 2014 14:21:04 +0300 Message-ID: <1400671264-10702-17-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1400671264-10702-1-git-send-email-rogerq@ti.com> References: <1400671264-10702-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The beagle board contains a 16-bit NAND device connected to chip select 0 of the GPMC controller. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap3-beagle.dts | 66 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/arch/arm/boot/dts/omap3-beagle.dts b/arch/arm/boot/dts/omap3-beagle.dts index 3c3e6da..825b364 100644 --- a/arch/arm/boot/dts/omap3-beagle.dts +++ b/arch/arm/boot/dts/omap3-beagle.dts @@ -350,3 +350,69 @@ }; }; }; + +&gpmc { + ranges = <0 0 0x30000000 0x3FFFFFFF /* I/O space */ + 1 0 0x6e000000 0x02d4>; /* register space */ + + /* Chip select 0 */ + cs0 { + #address-cells = <2>; + #size-cells = <1>; + reg = <0 0 0x1000000>; /* CS0 partition, 16 MB min */ + ranges; + + gpmc,cs = <0>; + gpmc,device-width = <2>; /* 16-bit */ + gpmc,nand; + + gpmc,cs-on-ns = <0>; + gpmc,cs-rd-off-ns = <36>; + gpmc,cs-wr-off-ns = <36>; + gpmc,adv-on-ns = <6>; + gpmc,adv-rd-off-ns = <24>; + gpmc,adv-wr-off-ns = <36>; + gpmc,oe-on-ns = <6>; + gpmc,oe-off-ns = <48>; + gpmc,we-on-ns = <6>; + gpmc,we-off-ns = <30>; + gpmc,rd-cycle-ns = <72>; + gpmc,wr-cycle-ns = <72>; + gpmc,access-ns = <54>; + gpmc,wr-access-ns = <30>; + + nand@0,0 { + compatible = "ti,omap2-nand"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0 0 4 /* Nand I/O */ + 1 0 0x2d4>; /* GPMC registers */ + interrupts = <20>; + + ti,nand-cs = <0>; + nand-bus-width = <16>; + ti,nand-ecc-opt = "ham1"; + + partition@0 { + label = "X-Loader"; + reg = <0 0x80000>; + }; + partition@80000 { + label = "U-Boot"; + reg = <0x80000 0x1e0000>; + }; + partition@1c0000 { + label = "U-Boot Env"; + reg = <0x260000 0x20000>; + }; + partition@280000 { + label = "Kernel"; + reg = <0x280000 0x400000>; + }; + partition@780000 { + label = "Filesystem"; + reg = <0x680000 0xf980000>; + }; + }; + }; +};