From patchwork Tue Jul 22 19:30:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Belisko X-Patchwork-Id: 4604881 Return-Path: X-Original-To: patchwork-linux-omap@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 EA2819F295 for ; Tue, 22 Jul 2014 19:31:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 24DFC2018A for ; Tue, 22 Jul 2014 19:31:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 994E520172 for ; Tue, 22 Jul 2014 19:31:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756660AbaGVTar (ORCPT ); Tue, 22 Jul 2014 15:30:47 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:58712 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756643AbaGVTap (ORCPT ); Tue, 22 Jul 2014 15:30:45 -0400 Received: by mail-wi0-f177.google.com with SMTP id ho1so998641wib.16 for ; Tue, 22 Jul 2014 12:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=3TdpEuxKCdJ327gW4+LHzGdFS2LqxolUsDFJYBY1/iY=; b=Li+ZJirQrBYWFYApCb5gBBKekuRkBT57P83/ryhtPcE10iGKGmB9HopwYfsaHeHOJ6 PrzW+PSF6/tAuwOXwjl+mfhO3MYr7mViTfk60hXjMa8dSrr+YIxvV5tS1oRFBOwisPQU znKiUDhbcHeKNr2vWQTp8AtRvftC+Bd4+sSb4fkaU4iIj8eBOZ+9fJ1VNQekShUqVxY1 zkKaVBvNshOn6aIRgPrzpJ2+/PmqtlefC+sRJpmnoLMEZJDRvJs/3eND41X8Mvyy3Q1g 6G+fEKRtxkLYLtNrzvuQCpnxKtULrxqACpG9yO2Ul2uqQsPkPB11jnwJMhEj+6083ZDm /5Yg== X-Received: by 10.180.20.105 with SMTP id m9mr18111161wie.6.1406057444262; Tue, 22 Jul 2014 12:30:44 -0700 (PDT) Received: from nb.lan (ip-85.163.207.191.o2inet.sk. [85.163.207.191]) by mx.google.com with ESMTPSA id l8sm38723wje.15.2014.07.22.12.30.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Jul 2014 12:30:43 -0700 (PDT) From: Marek Belisko To: bcousson@baylibre.com, tony@atomide.com Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@arm.linux.org.uk, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hns@goldelico.com, Marek Belisko Subject: [PATCH v2 1/7] arm: dts: omap3-gta04: Add nand support Date: Tue, 22 Jul 2014 21:30:14 +0200 Message-Id: <1406057420-22269-2-git-send-email-marek@goldelico.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406057420-22269-1-git-send-email-marek@goldelico.com> References: <1406057420-22269-1-git-send-email-marek@goldelico.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the needed sections to enable nand support on gta04 board. Add nand partitions information. Signed-off-by: Marek Belisko --- arch/arm/boot/dts/omap3-gta04.dts | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/omap3-gta04.dts b/arch/arm/boot/dts/omap3-gta04.dts index 021311f..7d7ddd7 100644 --- a/arch/arm/boot/dts/omap3-gta04.dts +++ b/arch/arm/boot/dts/omap3-gta04.dts @@ -309,3 +309,57 @@ }; }; }; + +&gpmc { + ranges = <0 0 0x30000000 0x04>; /* CS0: NAND */ + + nand@0,0 { + reg = <0 0 0>; /* CS0, offset 0 */ + nand-bus-width = <16>; + ti,nand-ecc-opt = "bch8"; + + gpmc,sync-clk-ps = <0>; + gpmc,cs-on-ns = <0>; + gpmc,cs-rd-off-ns = <44>; + gpmc,cs-wr-off-ns = <44>; + gpmc,adv-on-ns = <6>; + gpmc,adv-rd-off-ns = <34>; + gpmc,adv-wr-off-ns = <44>; + gpmc,we-off-ns = <40>; + gpmc,oe-off-ns = <54>; + gpmc,access-ns = <64>; + gpmc,rd-cycle-ns = <82>; + gpmc,wr-cycle-ns = <82>; + gpmc,wr-access-ns = <40>; + gpmc,wr-data-mux-bus-ns = <0>; + gpmc,device-width = <2>; + + #address-cells = <1>; + #size-cells = <1>; + + x-loader@0 { + label = "X-Loader"; + reg = <0 0x80000>; + }; + + bootloaders@80000 { + label = "U-Boot"; + reg = <0x80000 0x1e0000>; + }; + + bootloaders_env@260000 { + label = "U-Boot Env"; + reg = <0x260000 0x20000>; + }; + + kernel@280000 { + label = "Kernel"; + reg = <0x280000 0x400000>; + }; + + filesystem@680000 { + label = "File System"; + reg = <0x680000 0xf980000>; + }; + }; +};