From patchwork Wed Jul 25 12:11:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmavathi Venna X-Patchwork-Id: 1237181 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id AF1D7DFFCD for ; Wed, 25 Jul 2012 12:16:47 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Su0Rx-0002m1-0i; Wed, 25 Jul 2012 12:12:21 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Su0NP-0001b9-EP for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2012 12:07:40 +0000 Received: from epcpsbgm1.samsung.com (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M7P00EDUTNF9ZQ0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2012 21:06:51 +0900 (KST) X-AuditID: cbfee61a-b7f616d000004b7e-79-500fe15b1cac Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 54.76.19326.B51EF005; Wed, 25 Jul 2012 21:06:51 +0900 (KST) Received: from padma-linuxpc.sisodomain.com ([107.108.83.35]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M7P003PWTN6VE20@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2012 21:06:51 +0900 (KST) From: Padmavathi Venna To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, alsa-devel@alsa-project.org, devicetree-discuss@lists.ozlabs.org Subject: [PATCH 1/2] ARM: dts: Add nodes for i2s controllers for Samsung Exynos5 platforms Date: Wed, 25 Jul 2012 17:41:24 +0530 Message-id: <1343218285-30535-2-git-send-email-padma.v@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1343218285-30535-1-git-send-email-padma.v@samsung.com> References: <1343218285-30535-1-git-send-email-padma.v@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMJMWRmVeSWpSXmKPExsVy+t9jQd3oh/wBBnM7xSw2Pb7G6sDosXlJ fQBjFJdNSmpOZllqkb5dAlfG1/fXGAtaBSvuLb/I1MC4j7eLkZNDQsBE4tDHZnYIW0ziwr31 bF2MXBxCAtMZJWYeWsAC4WxlkpjT8BKoioODTUBHouWsC0hcRKCfUeLDlCVgHcwCRxklehet YAEZJSwQI7FzOsRYFgFViTvdfWBxXgFnickXd7BArFOQODb1KyuIzSngInH02mGweiGgmmff rrNNYORdwMiwilE0tSC5oDgpPddQrzgxt7g0L10vOT93EyPY68+kdjCubLA4xCjAwajEw/vz CV+AEGtiWXFl7iFGCQ5mJRHexzf4A4R4UxIrq1KL8uOLSnNSiw8xSnOwKInzGnt/9RcSSE8s Sc1OTS1ILYLJMnFwSjUwHi7btOCv0qcfl/1d72/bxLTjXEhS5bX6xxoGbn6JXi1qu2czxr/R qzXawhjNe7Zr7oqfHqWCD83f8Wy+xWmgsXxffr3loSX9NXmHI5YZbk+3cWZRWmvunnrhqaip ZEZTzT3pxQGhz8Pyv/2o5l6REKXApLSy78WSDUbcfVdNj8945SN2+oKSEktxRqKhFnNRcSIA HpEcSPYBAAA= X-TM-AS-MML: No X-Spam-Note: CRM114 invocation failed X-Spam-Score: -6.9 (------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-6.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.34 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, rcsekar@samsung.com, sbkim73@samsung.com, sangsu4u.park@samsung.com, padma.v@samsung.com, joshi@samsung.com, thutt@chromium.org, ben-linux@fluff.org, olofj@google.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add device nodes for the three instances of i2s controllers in Exynos5 platforms. Enable instance i2s 0 for exynos5250 board and disable all other i2s instances. Signed-off-by: Padmavathi Venna --- arch/arm/boot/dts/exynos5250-smdk5250.dts | 15 +++++++++++++++ arch/arm/boot/dts/exynos5250.dtsi | 28 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts b/arch/arm/boot/dts/exynos5250-smdk5250.dts index 8a5e348..615d1c4 100644 --- a/arch/arm/boot/dts/exynos5250-smdk5250.dts +++ b/arch/arm/boot/dts/exynos5250-smdk5250.dts @@ -109,4 +109,19 @@ spi_2: spi@12d40000 { status = "disabled"; }; + + i2s_0: i2s@03830000 { + gpios = <&gpz 0 2 0 0>, <&gpz 1 2 0 0>, <&gpz 2 2 0 0>, + <&gpz 3 2 0 0>, <&gpz 4 2 0 0>, <&gpz 5 2 0 0>, + <&gpz 6 2 0 0>; + idma-addr = <0x03000000>; + }; + + i2s_1: i2s@12D60000 { + status = "disabled"; + }; + + i2s_2: i2s@12D70000 { + status = "disabled"; + }; }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index a3a2eb2..6ff78ba 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -27,6 +27,9 @@ spi0 = &spi_0; spi1 = &spi_1; spi2 = &spi_2; + i2s0 = &i2s_0; + i2s1 = &i2s_1; + i2s2 = &i2s_2; }; gic:interrupt-controller@10481000 { @@ -182,6 +185,31 @@ #size-cells = <0>; }; + i2s_0: i2s@03830000 { + compatible = "samsung,samsung-i2s"; + reg = <0x03830000 0x100>; + tx-dma-channel-secondary = <&pdma0 8>; + tx-dma-channel = <&pdma0 10>; + rx-dma-channel = <&pdma0 9>; + supports-6ch; + supports-rstclr; + supports-secdai; + }; + + i2s_1: i2s@12D60000 { + compatible = "samsung,samsung-i2s"; + reg = <0x12D60000 0x100>; + tx-dma-channel = <&pdma1 12>; + rx-dma-channel = <&pdma1 11>; + }; + + i2s_2: i2s@12D70000 { + compatible = "samsung,samsung-i2s"; + reg = <0x12D70000 0x100>; + tx-dma-channel = <&pdma0 12>; + rx-dma-channel = <&pdma0 11>; + }; + amba { #address-cells = <1>; #size-cells = <1>;