From patchwork Fri Apr 26 16:27:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2494351 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 8716FDF230 for ; Fri, 26 Apr 2013 16:29:49 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UVlVy-0007IZ-So; Fri, 26 Apr 2013 16:28:51 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UVlVd-0008Ep-I5; Fri, 26 Apr 2013 16:28:29 +0000 Received: from moutng.kundenserver.de ([212.227.126.171]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UVlV5-0008C9-MF for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2013 16:27:56 +0000 Received: from axis700.grange (dslb-088-076-028-093.pools.arcor-ip.net [88.76.28.93]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0Mg2HB-1UBENV3lVl-00NAek; Fri, 26 Apr 2013 18:27:49 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id EEBB440BC3; Fri, 26 Apr 2013 18:27:47 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1UVlUx-00064W-Kq; Fri, 26 Apr 2013 18:27:47 +0200 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Subject: [PATCH 5/6] ARM: shmobile: r8a7740: add DT node for one DMAC instance Date: Fri, 26 Apr 2013 18:27:46 +0200 Message-Id: <1366993667-23294-6-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1366993667-23294-1-git-send-email-g.liakhovetski@gmx.de> References: <1366993667-23294-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:c+1nGTyjQHGsmqiTtyRE+yNROHGFJ1LdZHq/3ph6dmY lgjS4j53+lmlcAY3tiEmVsoZDBixJBC4ZigddeP99udv2rxDbf /CeKanjU48cy2i9iXBXqRG7aPPPV46t6+iZ6yv7gIh7t20Xzk5 4N1Y+BaVst8eYYBg4KYniel8q9yrd56ibTcMCEJYcm+WSMawVG Wz2Tn3Frhfsg17C+IGeCAn6RYeWqe6tqctQD7C1trHsaVW3/8T SdTA5XDbX6yqe3d/hw/ot2ICiomIYks9ytwe6u4MimB5d1kqQW UqvakIaSpxmxq2hjh7vig6/zFN1fDmZJ2y6+aAYufVymBWaVHw cGe7mdesfM274hIswIrsQ2sNvwDAvoC1Jx7J9x4i4kDJUDc9t7 Sxf4DOihrl9gQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130426_122755_964274_13A5D661 X-CRM114-Status: GOOD ( 11.93 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.171 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (g.liakhovetski[at]gmx.de) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 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: Guennadi Liakhovetski , Simon Horman , Magnus Damm , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds Device Tree support for the first (#0) DMA controller instance on r8a7740. We want to add further DMA controller DT nodes in a DMA multiplexer node, which isn't implemented yet. Further DMAC instances will be added after the DMA multiplexer support is done. Signed-off-by: Guennadi Liakhovetski --- arch/arm/boot/dts/r8a7740.dtsi | 20 ++++++++++++++++++++ arch/arm/mach-shmobile/setup-r8a7740.c | 2 ++ 2 files changed, 22 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/r8a7740.dtsi b/arch/arm/boot/dts/r8a7740.dtsi index e9a90d8..054bc1a 100644 --- a/arch/arm/boot/dts/r8a7740.dtsi +++ b/arch/arm/boot/dts/r8a7740.dtsi @@ -112,6 +112,26 @@ 0 149 0x4>; }; + dma0: shdma@fe008020 { + compatible = "renesas,shdma"; + reg = <0xfe008020 0x270 + 0xfe009000 0xc>; + interrupt-parent = <&gic>; + interrupts = <0 34 4 + 0 28 4 + 0 29 4 + 0 30 4 + 0 31 4 + 0 32 4 + 0 33 4>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5"; + #dma-cells = <1>; + dma-channels = <6>; + dma-requests = <256>; + }; + i2c0: i2c@fff20000 { #address-cells = <1>; #size-cells = <0>; diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c index 6b3ed42..7781d3b 100644 --- a/arch/arm/mach-shmobile/setup-r8a7740.c +++ b/arch/arm/mach-shmobile/setup-r8a7740.c @@ -997,6 +997,8 @@ void __init r8a7740_add_early_devices(void) #ifdef CONFIG_USE_OF static const struct of_dev_auxdata r8a7740_auxdata_lookup[] __initconst = { + OF_DEV_AUXDATA("renesas,shdma", 0xfe008020, "sh-dma-engine.0", + &r8a7740_dma_platform_data), { } };