From patchwork Thu Sep 26 17:30:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2949851 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8E66ABFF0B for ; Thu, 26 Sep 2013 17:30:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E594202EA for ; Thu, 26 Sep 2013 17:30:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8473520219 for ; Thu, 26 Sep 2013 17:30:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752561Ab3IZRaU (ORCPT ); Thu, 26 Sep 2013 13:30:20 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:59266 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037Ab3IZRaT (ORCPT ); Thu, 26 Sep 2013 13:30:19 -0400 Received: from axis700.grange (dslb-094-221-123-102.pools.arcor-ip.net [94.221.123.102]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MH3Li-1Vcydi3Rac-00E6El; Thu, 26 Sep 2013 19:30:05 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 2CA9B40BB5; Thu, 26 Sep 2013 19:30:04 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1VPFO7-0003ok-TQ; Thu, 26 Sep 2013 19:30:03 +0200 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Cc: Magnus Damm , Vinod Koul , Sergei Shtylyov , Laurent Pinchart , Simon Horman , Guennadi Liakhovetski Subject: [PATCH v6 2/2] ARM: shmobile: r8a73a4: add a DT node for the DMAC Date: Thu, 26 Sep 2013 19:30:03 +0200 Message-Id: <1380216603-14645-3-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1380216603-14645-1-git-send-email-g.liakhovetski@gmx.de> References: <1380216603-14645-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:BgC4xX2ppw69eSKPzAqszcu5AJ5Zkh3cfEPckeJHTIP URnyL4uODVW94Z9YKhXsDVgbDud9tpwuuB1mVSdj14cMhupJ+C rEWGx2D2JQO5xWn5brBeW9M8WeqXN9AigUcENyKbpgzIJQ/GLG OBeEjnApH7HPpZPkMn/x7DP4GE6TQbdCJvQafD5ALbKgZ8ditz h51hs1h5XmJUosmGXpP6Pul2VvP3jDlj7zrK6uwP12Iv17lSKc fE9nAgXfLic1DJA/9UmVoNiP4bKrElQ3dW1dY3DqRbUfyj9zGM dxLsxUa0Di4DKedJ9pju93A4eYdKK7m4uV2m4Z+S4uRsvKS8jc Zx2AcXfrwpqh+nN8wB6PgZdOH94/dV62wCOZAtbq+ekP59GKB/ Yla2ZsYFlcPxQ== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 a DT node for the only system DMAC instance on r8a73a4. The RT DMAC can be added later under the same multiplexer, because they can serve the same slaves and use the same MID-RID values. Configuration data is supplied to the driver, using a compatibility match string. Signed-off-by: Guennadi Liakhovetski --- arch/arm/boot/dts/r8a73a4.dtsi | 43 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4.dtsi b/arch/arm/boot/dts/r8a73a4.dtsi index 6048825..287e047 100644 --- a/arch/arm/boot/dts/r8a73a4.dtsi +++ b/arch/arm/boot/dts/r8a73a4.dtsi @@ -78,6 +78,49 @@ <0 56 4>, <0 57 4>; }; + dmac: dma-multiplexer@0 { + compatible = "renesas,shdma-mux"; + #dma-cells = <1>; + dma-channels = <20>; + dma-requests = <256>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + dma0: dma-controller@e6700020 { + compatible = "renesas,shdma-r8a73a4"; + reg = <0 0xe6700020 0 0x89e0>; + interrupt-parent = <&gic>; + interrupts = <0 220 4 + 0 200 4 + 0 201 4 + 0 202 4 + 0 203 4 + 0 204 4 + 0 205 4 + 0 206 4 + 0 207 4 + 0 208 4 + 0 209 4 + 0 210 4 + 0 211 4 + 0 212 4 + 0 213 4 + 0 214 4 + 0 215 4 + 0 216 4 + 0 217 4 + 0 218 4 + 0 219 4>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14", "ch15", + "ch16", "ch17", "ch18", "ch19"; + }; + }; + thermal@e61f0000 { compatible = "renesas,rcar-thermal"; reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>,