From patchwork Thu Oct 27 21:37:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9400485 X-Patchwork-Delegate: horms@verge.net.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2B8A66057E for ; Thu, 27 Oct 2016 21:37:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13E3A2A3A5 for ; Thu, 27 Oct 2016 21:37:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 078822A3AE; Thu, 27 Oct 2016 21:37:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E3872A3A5 for ; Thu, 27 Oct 2016 21:37:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942133AbcJ0VhN (ORCPT ); Thu, 27 Oct 2016 17:37:13 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:36437 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935747AbcJ0VhN (ORCPT ); Thu, 27 Oct 2016 17:37:13 -0400 Received: by mail-lf0-f46.google.com with SMTP id b75so42534789lfg.3 for ; Thu, 27 Oct 2016 14:37:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=LNunYs+xLaJZAIHnYcpU3nhETStj6mtYVtVCNn2oRo4=; b=aYshHmovdSoLXqd+SwN4uOS1TqQhDLVx/AFoUcpQxj1Wi8ATllHXlJbbsF7vSGRjK/ F3wh5Mcn8mpTozbzq6ycIUzShsdlrVXIQcQ3Ez2EquTYj0fAmBDSoVW9bUEk+RyJiiaF qA3IBNmBPvPmTDP7DYVPzTYoRZ+HmzloNJR/EYladiT8A4YQT5w3P6pLtlQRSJO02nVR KtFRdn7vIkQpsN85RFv2ufsB7e9uGYZx1TtVa6wSAlxLrteKR2CA5iTNPNRduNfz3dyw yYKb+v+vJHhIziiZsaAPTFlY5crEi7/mMf6sGOQH/FbsMnjwbbH4fxSuWQ6m4jLVsPGb NkGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=LNunYs+xLaJZAIHnYcpU3nhETStj6mtYVtVCNn2oRo4=; b=ff87LqysW1rryxxabxZwEZZV9veA/n1jNxPKU5Bi9DaEOQu/ok2+7G06VlxlMS6Dnd M+eHdzATTMKk3k3ojDo0iH2G4YCWjMCfS/6MJ1JSxmZeMzodPpnXqIqQra11zhHrNnQw pNth0UHbJ5EnTPcBiwz0ZOdJsDGY9ftOAOuwusDXcs8wLoxLiaDEdt5gtGmMwiUB+89n dDdf94dEiNYR62TpK9LpbrDIuFqQ5OsVU10CYbbj8ijuPZeZyNKQnWgnk+tk+23Nlc7Z VcIVMNYhm3SmcmVCchOVcbOmyHwHjmuyON+siF2JvpnCYi3fzX9nNjfvcWnY1nH+daTU rEHA== X-Gm-Message-State: ABUngvdhfPKXbmCL+x/eUSufxC8J+en7sMtt7RT5s3wesRix/SDjw80ZvLgNc6a/XLr16Q== X-Received: by 10.25.137.86 with SMTP id l83mr6983283lfd.31.1477604231087; Thu, 27 Oct 2016 14:37:11 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.80.91]) by smtp.gmail.com with ESMTPSA id f198sm1571783lfe.10.2016.10.27.14.37.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Oct 2016 14:37:10 -0700 (PDT) From: Sergei Shtylyov To: horms@verge.net.au, linux-renesas-soc@vger.kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Cc: magnus.damm@gmail.com, linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 2/7] ARM: dts: r8a7743: add SYS-DMAC support Date: Fri, 28 Oct 2016 00:37:09 +0300 Message-ID: <1760379.IT8zEqZLyA@wasted.cogentembedded.com> Organization: Cogent Embedded Inc. User-Agent: KMail/4.14.10 (Linux/4.7.9-100.fc23.x86_64; KDE/4.14.20; x86_64; ; ) In-Reply-To: <1580369.yToZzJza1l@wasted.cogentembedded.com> References: <1580369.yToZzJza1l@wasted.cogentembedded.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Describe SYS-DMAC0/1 in the R8A7743 device tree. Based on the original (and large) patch by Dmitry Shifrin . Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- Changes in version 5: - refreshed the patch. Changes in version 4: - refreshed the patch. Changes in version 3: - resolved a reject; - updated the "clocks" properties for the CPG/MSSR driver. Changes in version 2: - added Geert's tag. arch/arm/boot/dts/r8a7743.dtsi | 64 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) Index: renesas/arch/arm/boot/dts/r8a7743.dtsi =================================================================== --- renesas.orig/arch/arm/boot/dts/r8a7743.dtsi +++ renesas/arch/arm/boot/dts/r8a7743.dtsi @@ -93,6 +93,70 @@ compatible = "renesas,r8a7743-rst"; reg = <0 0xe6160000 0 0x0200>; }; + + dmac0: dma-controller@e6700000 { + compatible = "renesas,dmac-r8a7743", + "renesas,rcar-dmac"; + reg = <0 0xe6700000 0 0x20000>; + interrupts = ; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14"; + clocks = <&cpg CPG_MOD 219>; + clock-names = "fck"; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + #dma-cells = <1>; + dma-channels = <15>; + }; + + dmac1: dma-controller@e6720000 { + compatible = "renesas,dmac-r8a7743", + "renesas,rcar-dmac"; + reg = <0 0xe6720000 0 0x20000>; + interrupts = ; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14"; + clocks = <&cpg CPG_MOD 218>; + clock-names = "fck"; + power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; + #dma-cells = <1>; + dma-channels = <15>; + }; }; /* External root clock */