From patchwork Wed Jun 11 08:56:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 31742 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C57DD203C2 for ; Wed, 11 Jun 2014 09:01:58 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id i17sf11375754qcy.2 for ; Wed, 11 Jun 2014 02:01:58 -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:subject:date:message-id :in-reply-to:references:mime-version:cc:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=QSQrYObQzX/9HZkgQrAZtvzaTZY6AYasUJwTUyYdT6U=; b=WKyGM5AogD3YGruyw3ffSd+ALWNAdCWpxvqEBXSytWS7GRP5ijjgYWdR3PvtMam7Km jwoGATPybl/bjAEoHJ3/w2x4z/NJBwSw9jzG3uijuvhQtMPPj+4S/df1ipO21BbAJPEt L0sDCgWhQFKboL5pFiUropKKGWfEgwD7yAzs1RaGp9aa5Iifg/kdAltlZ4LMekjP6nYv a1us3NkX6YHmIGHdhCqS2BLMIroqK68Ho5WX3/U/UoVQVJ5KdVFvWb6PsGA0OqLDuotG UDXRixkOR2oJJXFTupiIGqIi9uef4MyezsuETrR6o/j+65xjq1d5vTz+ETrLhCONqKqM XD7A== X-Gm-Message-State: ALoCoQlB5x11uADJFgEucdygTJAUM5/Y7eSSmQgG3bOTLa6+myYGoGFL6D0ykt/neJK04d7orAwf X-Received: by 10.236.207.164 with SMTP id n24mr12051328yho.5.1402477318580; Wed, 11 Jun 2014 02:01:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.43.135 with SMTP id e7ls2552089qga.70.gmail; Wed, 11 Jun 2014 02:01:58 -0700 (PDT) X-Received: by 10.52.252.4 with SMTP id zo4mr2280724vdc.20.1402477318462; Wed, 11 Jun 2014 02:01:58 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id jf7si13993565vdb.64.2014.06.11.02.01.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Jun 2014 02:01:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id db11so4741258veb.26 for ; Wed, 11 Jun 2014 02:01:58 -0700 (PDT) X-Received: by 10.52.232.133 with SMTP id to5mr1988043vdc.16.1402477318356; Wed, 11 Jun 2014 02:01:58 -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.221.54.6 with SMTP id vs6csp286687vcb; Wed, 11 Jun 2014 02:01:58 -0700 (PDT) X-Received: by 10.224.165.18 with SMTP id g18mr46887654qay.20.1402477317872; Wed, 11 Jun 2014 02:01:57 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id d14si30661170qaw.24.2014.06.11.02.01.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jun 2014 02:01:57 -0700 (PDT) Received-SPF: none (google.com: linux-mtd-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WueNW-0003b4-9T; Wed, 11 Jun 2014 08:59:30 +0000 Received: from bear.ext.ti.com ([192.94.94.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WueMX-0002FK-S4; Wed, 11 Jun 2014 08:58:30 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s5B8w5aG027182; Wed, 11 Jun 2014 03:58:05 -0500 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s5B8w4Ww009035; Wed, 11 Jun 2014 03:58:05 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Wed, 11 Jun 2014 03:58:03 -0500 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s5B8uiSt020510; Wed, 11 Jun 2014 03:58:00 -0500 From: Roger Quadros To: , , Subject: [PATCH 21/36] ARM: dts: OMAP2+: Fix OneNAND device nodes Date: Wed, 11 Jun 2014 11:56:26 +0300 Message-ID: <1402477001-31132-22-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1402477001-31132-1-git-send-email-rogerq@ti.com> References: <1402477001-31132-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140611_015830_057759_9BD1724B X-CRM114-Status: UNSURE ( 7.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.7 (-----) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-5.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [192.94.94.41 listed in wl.mailspike.net] -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [192.94.94.41 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: devicetree@vger.kernel.org, nsekhar@ti.com, linux-kernel@vger.kernel.org, kyungmin.park@samsung.com, linux-mtd@lists.infradead.org, pekon@ti.com, ezequiel.garcia@free-electrons.com, javier@dowhile0.org, linux-omap@vger.kernel.org, Roger Quadros X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.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.181 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 Add compatible id, fix chip select partition size and I/O space size. OneNAND devices just need 128KB for I/O and the minimum possible chips select partition can be 16MB. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap2420-n8x0-common.dtsi | 5 +++-- arch/arm/boot/dts/omap3-n900.dts | 6 ++++-- arch/arm/boot/dts/omap3-n950-n9.dtsi | 6 ++++-- arch/arm/boot/dts/omap3430-sdp.dts | 8 +++++--- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/arch/arm/boot/dts/omap2420-n8x0-common.dtsi b/arch/arm/boot/dts/omap2420-n8x0-common.dtsi index 89608b2..14a67fb3 100644 --- a/arch/arm/boot/dts/omap2420-n8x0-common.dtsi +++ b/arch/arm/boot/dts/omap2420-n8x0-common.dtsi @@ -34,14 +34,15 @@ }; &gpmc { - ranges = <0 0 0x04000000 0x10000000>; + ranges = <0 0 0x04000000 0x1000000>; /* CS0 space, 16MB min. */ /* gpio-irq for dma: 26 */ onenand@0,0 { + compatible = "ti,omap2-onenand"; #address-cells = <1>; #size-cells = <1>; - reg = <0 0 0x10000000>; + reg = <0 0 0x20000>; /* OneNAND I/O 128K */ gpmc,sync-read; gpmc,burst-length = <16>; diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index 1a57b61..0c5af81 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -501,14 +501,16 @@ }; &gpmc { - ranges = <0 0 0x04000000 0x10000000>; /* 256MB */ + ranges = <0 0 0x04000000 0x1000000>; /* CS0 space, 16MB min. */ /* gpio-irq for dma: 65 */ onenand@0,0 { + compatible = "ti,omap2-onenand"; #address-cells = <1>; #size-cells = <1>; - reg = <0 0 0x10000000>; + reg = <0 0 0x20000>; /* OneNAND I/O 128K */ + ti,onenand-sync-rw; gpmc,sync-read; gpmc,sync-write; diff --git a/arch/arm/boot/dts/omap3-n950-n9.dtsi b/arch/arm/boot/dts/omap3-n950-n9.dtsi index 5c26c18..9dcb367 100644 --- a/arch/arm/boot/dts/omap3-n950-n9.dtsi +++ b/arch/arm/boot/dts/omap3-n950-n9.dtsi @@ -101,12 +101,14 @@ }; &gpmc { - ranges = <0 0 0x04000000 0x20000000>; + ranges = <0 0 0x04000000 0x1000000>; /* CS0 space, 16MB min. */ onenand@0,0 { + compatible = "ti,omap2-onenand"; #address-cells = <1>; #size-cells = <1>; - reg = <0 0 0x20000000>; + reg = <0 0 0x20000>; /* OneNAND I/O 128K */ + ti,onenand-sync-rw; gpmc,sync-read; gpmc,sync-write; diff --git a/arch/arm/boot/dts/omap3430-sdp.dts b/arch/arm/boot/dts/omap3430-sdp.dts index bf5f8b9..d6fe226 100644 --- a/arch/arm/boot/dts/omap3430-sdp.dts +++ b/arch/arm/boot/dts/omap3430-sdp.dts @@ -52,7 +52,7 @@ &gpmc { ranges = <0 0 0x10000000 0x08000000>, <1 0 0x28000000 0x08000000>, - <2 0 0x20000000 0x10000000>, + <2 0 0x20000000 0x1000000>, /* CS2, 16MB min. */ <255 0 0x6e000000 0x02d4>; /* GPMC reg */ nor@0,0 { @@ -151,10 +151,11 @@ }; onenand@2,0 { - linux,mtd-name= "samsung,kfm2g16q2m-deb8"; + compatible = "ti,omap2-onenand"; #address-cells = <1>; #size-cells = <1>; - reg = <2 0 0x10000000>; + reg = <2 0 0x20000>; /* OneNAND I/O 128K */ + ti,onenand-sync-rw; gpmc,device-width = <2>; gpmc,mux-add-data = <2>; @@ -173,6 +174,7 @@ gpmc,access-ns = <78>; gpmc,wr-data-mux-bus-ns = <30>; + linux,mtd-name= "samsung,kfm2g16q2m-deb8"; partition@0 { label = "xloader-onenand"; reg = <0 0x80000>;