From patchwork Tue Jan 8 08:20:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kumar, Anil" X-Patchwork-Id: 1944561 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by patchwork2.kernel.org (Postfix) with ESMTP id 1600DDF23A for ; Tue, 8 Jan 2013 08:23:40 +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 r088JpgM025080; Tue, 8 Jan 2013 02:19:51 -0600 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id r088Jn5k029139; Tue, 8 Jan 2013 02:19:51 -0600 Received: from dlelxv24.itg.ti.com (172.17.1.199) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Tue, 8 Jan 2013 02:19:49 -0600 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id r088JnHE032679; Tue, 8 Jan 2013 02:19:49 -0600 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id A76FD8062B; Tue, 8 Jan 2013 02:19:48 -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 CCB7280627 for ; Tue, 8 Jan 2013 02:19:43 -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 r088JdFh013617; Tue, 8 Jan 2013 13:49:42 +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, 8 Jan 2013 13:49:39 +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 r088JWiC030864; Tue, 8 Jan 2013 13:49:33 +0530 Received: from symphony.india.ext.ti.com (unknown [192.168.247.13]) by ucmsshproxy.india.ext.ti.com (Postfix) with ESMTP id 8E1E1158007; Tue, 8 Jan 2013 13:49:32 +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 r088JWR20421; Tue, 8 Jan 2013 13:49:32 +0530 (IST) From: "Kumar, Anil" To: , , Subject: [PATCH V2 3/3] ARM: davinci: da850: add NAND driver entries Date: Tue, 8 Jan 2013 13:50:20 +0530 Message-ID: <1357633220-29827-4-git-send-email-anilkumar.v@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1357633220-29827-1-git-send-email-anilkumar.v@ti.com> References: <1357633220-29827-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 NAND driver entries to export NAND functionality on da850 EVM and NAND pinctrl node to do pin mux according to pinctrl-single driver. Signed-off-by: Kumar, Anil --- :100644 100644 c7609d0... 382a7da... M arch/arm/boot/dts/da850-evm.dts :100644 100644 e9c6e82... 16e2ac2... M arch/arm/boot/dts/da850.dtsi arch/arm/boot/dts/da850-evm.dts | 19 +++++++++++++++++++ arch/arm/boot/dts/da850.dtsi | 13 +++++++++++++ 2 files changed, 32 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts index c7609d0..382a7da 100644 --- a/arch/arm/boot/dts/da850-evm.dts +++ b/arch/arm/boot/dts/da850-evm.dts @@ -28,4 +28,23 @@ status = "okay"; }; }; + nand_cs3@62000000 { + status = "okay"; + }; +}; +&pmx_core{ + pinctrl-names = "default"; + pinctrl-0 = < + &nand_cs3_pins + >; + + nand_cs3_pins: pinmux_nand_pins { + pinctrl-single,bits = < + 0x1c 0x00110000 0x00ff0000 /* EMA_OE, EMA_WE */ + 0x1c 0x00000110 0x00000ff0 /* EMA_CS[4],EMA_CS[3]*/ + 0x24 0x11111111 0xffffffff /* EMA_D[0], EMA_D[1], EMA_D[2], EMA_D[3], + EMA_D[4], EMA_D[5], EMA_D[6], EMA_D[7] */ + 0x30 0x01100000 0x0ff00000 /* EMA_A[1], EMA_A[2] */ + >; + }; }; diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index e9c6e82..16e2ac2 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -67,4 +67,17 @@ status = "disabled"; }; }; + nand_cs3@62000000 { + compatible = "ti,davinci-nand"; + reg = <0x62000000 0x807ff + 0x68000000 0x8000>; + ti,davinci-chipselect = <1>; + ti,davinci-mask-ale = <0>; + ti,davinci-mask-cle = <0>; + ti,davinci-mask-chipsel = <0>; + ti,davinci-ecc-mode = "hw"; + ti,davinci-ecc-bits = <4>; + ti,davinci-nand-use-bbt; + status = "disabled"; + }; };