From patchwork Tue Jan 29 05:19:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kumar, Anil" X-Patchwork-Id: 2059361 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by patchwork1.kernel.org (Postfix) with ESMTP id 4715E3FCD5 for ; Tue, 29 Jan 2013 05:22:55 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id r0T5J2oL024961; Mon, 28 Jan 2013 23:19:02 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0T5J2O4032719; Mon, 28 Jan 2013 23:19:02 -0600 Received: from dlelxv23.itg.ti.com (172.17.1.198) by dfle72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.1.323.3; Mon, 28 Jan 2013 23:19:01 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0T5J1VU020942; Mon, 28 Jan 2013 23:19:01 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id A6CC58062B; Mon, 28 Jan 2013 23:19:01 -0600 (CST) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dbdp20.itg.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by linux.omap.com (Postfix) with ESMTP id 6F6C380628 for ; Mon, 28 Jan 2013 23:18:55 -0600 (CST) Received: from DBDE71.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id r0T5Imrw018799; Tue, 29 Jan 2013 10:48:54 +0530 (IST) Received: from dbdp32.itg.ti.com (172.24.170.251) by DBDE71.ent.ti.com (172.24.170.149) with Microsoft SMTP Server id 14.1.323.3; Tue, 29 Jan 2013 10:48:48 +0530 Received: from ucmsshproxy.india.ext.ti.com (dbdp20.itg.ti.com [172.24.170.38]) by dbdp32.itg.ti.com (8.13.8/8.13.8) with SMTP id r0T5Iiow014278; Tue, 29 Jan 2013 10:48:44 +0530 Received: from symphony.india.ext.ti.com (unknown [192.168.247.13]) by ucmsshproxy.india.ext.ti.com (Postfix) with ESMTP id DEF2D15803B; Tue, 29 Jan 2013 10:48:42 +0530 (IST) Received: from ubuntu-psp-linux.india.ext.ti.com (ubuntu-psp-linux [192.168.247.46]) by symphony.india.ext.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id r0T5IgR09353; Tue, 29 Jan 2013 10:48:42 +0530 (IST) From: "Kumar, Anil" To: , , , Subject: [PATCH 1/2] ARM: davinci: da850 evm: add norflash DT node Date: Tue, 29 Jan 2013 10:49:55 +0530 Message-ID: <1359436796-25135-2-git-send-email-anilkumar.v@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1359436796-25135-1-git-send-email-anilkumar.v@ti.com> References: <1359436796-25135-1-git-send-email-anilkumar.v@ti.com> MIME-Version: 1.0 CC: , , , , , X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com Add norflash DT node on DA850 EVM and related pin mux. Signed-off-by: Kumar, Anil --- :100644 100644 087ba28... 95ffeca... M arch/arm/boot/dts/da850-evm.dts :100644 100644 160ebac... 036b02a... M arch/arm/boot/dts/da850.dtsi arch/arm/boot/dts/da850-evm.dts | 25 +++++++++++++++++++++++ arch/arm/boot/dts/da850.dtsi | 41 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index 087ba28..95ffeca 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -28,4 +28,29 @@ status = "okay"; }; }; + norflash_cs2@60000000 { + compatible = "intel,PC28F640P30T85", "cfi-flash"; + reg = <0x60000000 0x1FFFFFF>; + bank-width = <2>; + #address-cells = <1>; + #size-cells = <1>; + linux,mtd-name = "physmap-flash"; + pinctrl-names = "default"; + pinctrl-0 = <&norflash_cs2_pins>; + + bootloaders_env@0 { + label = "bootloaders_env"; + reg = <0 0x80000>; + }; + + kernel@80000 { + label = "kernel"; + reg = <0x80000 0x200000>; + }; + + filesystem@280000 { + label = "filesystem"; + reg = <0x280000 0x580000>; + }; + }; }; diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 160ebac..036b02a 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -38,6 +38,47 @@ pinctrl-single,register-width = <32>; pinctrl-single,function-mask = <0xffffffff>; status = "disabled"; + + norflash_cs2_pins: pinmux_norflash_pins{ + pinctrl-single,bits = < + /* EMA_BA[1] */ + 0x14 0x01000000 0x0f000000 + /* EMA_CLK, EMA_WAIT[1] */ + 0x18 0x01000001 0x0f00000f + /* EMA_OE, EMA_WE, EMA_CS[2] */ + 0x1c 0x00110001 0x00ff000f + /* + * EMA_D[0], EMA_D[1], EMA_D[2], + * EMA_D[3], EMA_D[4], EMA_D[5], + * EMA_D[6], EMA_D[7] + */ + 0x24 0x11111111 0xffffffff + /* + * EMA_D[8], EMA_D[9], EMA_D[10], + * EMA_D[11], EMA_D[12], EMA_D[13], + * EMA_D[14], EMA_D[15] + */ + 0x20 0x11111111 0xffffffff + /* + * EMA_A[0], EMA_A[1], EMA_A[2], + * EMA_A[3], EMA_A[4], EMA_A[5], + * EMA_A[6], EMA_A[7] + */ + 0x30 0x11111111 0xffffffff + /* + * EMA_A[8], EMA_A[9], EMA_A[10], + * EMA_A[11], EMA_A[12], EMA_A[13], + * EMA_A[14], EMA_A[15] + */ + 0x2c 0x11111111 0xffffffff + /* + * EMA_A[16], EMA_A[17], EMA_A[18], + * EMA_A[19], EMA_A[20], EMA_A[21], + * EMA_A[22] + */ + 0x28 0x11111110 0xfffffff0 + >; + }; }; serial0: serial@1c42000 { compatible = "ns16550a";