From patchwork Thu Sep 10 07:16:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7151351 X-Patchwork-Delegate: horms@verge.net.au 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F1653BEEC1 for ; Thu, 10 Sep 2015 07:16:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 09F1C2079F for ; Thu, 10 Sep 2015 07:16:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 00E0C20784 for ; Thu, 10 Sep 2015 07:16:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753491AbbIJHQK (ORCPT ); Thu, 10 Sep 2015 03:16:10 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:24415 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753078AbbIJHQJ (ORCPT ); Thu, 10 Sep 2015 03:16:09 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 10 Sep 2015 16:16:08 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 2EB1F48E6D; Thu, 10 Sep 2015 16:16:08 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 2A3FD2806E; Thu, 10 Sep 2015 16:16:08 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 242212806D; Thu, 10 Sep 2015 16:16:08 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id SAK26632; Thu, 10 Sep 2015 16:16:08 +0900 X-IronPort-AV: E=Sophos;i="5.17,502,1437404400"; d="scan'208";a="195342289" Received: from mail-pu1apc01lp0024.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.24]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Sep 2015 16:16:07 +0900 Received: from HKXPR06MB0597.apcprd06.prod.outlook.com (10.161.181.146) by HKXPR06MB1015.apcprd06.prod.outlook.com (10.161.180.156) with Microsoft SMTP Server (TLS) id 15.1.262.15; Thu, 10 Sep 2015 07:16:06 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by HKXPR06MB0597.apcprd06.prod.outlook.com (10.161.181.146) with Microsoft SMTP Server (TLS) id 15.1.262.15; Thu, 10 Sep 2015 07:16:04 +0000 Message-ID: <87k2ryn3y9.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 05/14][RFC] arm64: renesas: r8a7795: add AUDIO-DMAC support User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Wolfram Sang , Simon CC: Magnus , Linux-SH In-Reply-To: <87si6mn452.wl%kuninori.morimoto.gx@renesas.com> References: <87si6mn452.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 10 Sep 2015 07:16:04 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0024.jpnprd01.prod.outlook.com (25.161.225.162) To HKXPR06MB0597.apcprd06.prod.outlook.com (25.161.181.146) X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0597; 2:0YmwJZkDjgJOG0hW/HUcOvjx4zNpFILJ/HidvE+4fmeWBU5baeoEq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1wFo+GafvJ1C8Sl1s4GtgxNqNIomSeGviAkdfDZ2XgJKZ6MnfHu0lqMEubZW+WZMD2FZjBMjPbh3n45MHHyIQaHD79Il; 4:tqqFMNKB+gInYSYkePthb+WC/E8YfR0PfkWwRDL6qhS3Jn9E8EY3GL2XX7AleBCmRnVCIaOCq4OnNnn9hga8yq5KmGuAhM48wDg5QiUXA1wSvZ5yflxmEgPrmtzMb7LlfzhoztJDcl2BgUT9YwVsPYTiSec/89USVbiLqoFaf7NTu/pkdOJedcupkXoU/L2tA6O/QJT5FApBmSMjqDSjRkPM+UY1icW5jdoq17C7HgJs9HOtcjTprKZRE3ITlsf2OwXnZSytus/81MUYTf4LaHfj8qm/HEf0dWC5wUwuHvhgAedtC6feWssaK8j2G7Cd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(3002001); SRVR:HKXPR06MB0597; BCL:0; PCL:0; RULEID:; SRVR:HKXPR06MB0597; X-Forefront-PRVS: 06952FC175 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(87976001)(5004730100002)(122386002)(68736005)(64706001)(23726002)(76176999)(4001350100001)(54356999)(77096005)(5001830100001)(5001960100002)(5001860100001)(81156007)(5001770100001)(189998001)(33646002)(19580405001)(62966003)(97736004)(101416001)(4001540100001)(229853001)(105586002)(92566002)(19580395003)(86362001)(106356001)(83506001)(42186005)(5007970100001)(53416004)(77156002)(36756003)(50466002)(2950100001)(46102003)(47776003)(66066001)(69596002)(46406003)(40100003)(50986999); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB0597; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HKXPR06MB0597; 23:9a12qUTdZiIe0MlHneTISdD3d4Xt4eiUCv43mtLlM?= =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zEwywcnnl71Ozo1mGHZw8qGk3jlbFI?= =?us-ascii?Q?p5jAmlTwO7BTMJhFXcTzyk/nouuVxwsGNN414O0faPOOAkgqsEyu0A5crtZO?= =?us-ascii?Q?tcsQqSH06YMH7WAUeAf3kdkWo6FD/ToaT3vTuJHvf2yO5I7DVhwafIp0drJu?= =?us-ascii?Q?B+fj98B3j1Bs+7THHQCu7ROqb+/+2Ngi+0PDzvmeHvn4ntCbYXJjliX6/Tlj?= =?us-ascii?Q?Or8bNRbV7XKgFytXRuqv2mOMLwyz3uor117N6Y1H47uIRSR3u+5RartEMKEs?= =?us-ascii?Q?0W8QRU2dH6wjk+7dT5timcsDpWyPrhhSIxqavTZ8KR1xChjT8GRWm22j1rpp?= =?us-ascii?Q?H1h9wE5VV7ZtfBYRKk=3D?= X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0597; 5:Xvd3uzA/2FmFOr8at/8GsbhwjXrnh43qaBQqeEBL/E5eSot0IlKHa0LMvAL21eoM3GWHqA5kLksUt3cdwoOOfa5/e+j7OEd/+fei6pi7SywDQTtvFttBV3yBYHG7nPajaMOpLNimSRK41fLY7cccaw==; 24:k7Y3nsHkWkWjMyuQVhUE83tgByXLVLOg4vPyFl68XyVGuvYNPyHSpwbqrEhpqwzpuk0Gy23Y/161QsRENGFnIxspLhypgXf5VU+radvktJo=; 20:lKaAhHgNCnYwSDTaLY78tZfqtMeAjfrHy0xEbmst4UznHadRgzhvOuXZeQMREEFxw/xyF0uy984r1gSipsTL1++IgA9oTNy2EEmXwP+t/aBDehV+pFFi3rzsQML+LwFPEU5irbYoZumndopMts5mXBG7qvSLvTfjS9xBjS8X6gU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2015 07:16:04.1910 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB0597 X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB1015; 2:DOME0X5u2eXHA3+mY4BZX8atXAl7ZitDyGJ2lH17WcvdSfsMUzj8XJOXXdUmakpKdnZwtE5dmgVGHWJjJlIc+uGcSa75mb/6DrAdUBvwJJBPsetqrLELtuUoMqk9k+JgGUS3YEUSudPn68gZg0joLIDJzIFOmiRKU7iAJC3jfR8=; 23:L5tUpyXZEtbpL08R3A3FkmrfREU+R5YlQdDjELCbfIskdXGQrHJ4GSvXnfKKNZL8FxALtYhkamvkgD5xDOe7WrsF9P9IP7gAC7pjQxDogelzLo6O/ik6v3CmbQPD8nM3X5GevAxam1QEdFKy7m6cfDhYNmSdq8yBDd8jTbtsoz5R/3VL+vvCvEP/u1fISJw9 X-OriginatorOrg: renesas.com Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 72 +++++++++++++++++++++++++++++++ include/dt-bindings/clock/r8a7795-clock.h | 2 + 2 files changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 235f266..4586690 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -425,6 +425,18 @@ clock-indices = ; }; + mstp5_clks: mstp5_clks@e6150144 { + compatible = "renesas,r8a7795-mstp-clocks", + "renesas,cpg-mstp-clocks"; + reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>; + clocks = <&s3d4_clk>, <&s3d4_clk>; + #clock-cells = <1>; + clock-indices = < + R8A7795_CLK_AUDIO_DMAC0 R8A7795_CLK_AUDIO_DMAC1 + >; + clock-output-names = "audmac0", "audmac1"; + }; + mstp9_clks: mstp9_clks@e6150994 { compatible = "renesas,r8a7795-mstp-clocks", "renesas,cpg-mstp-clocks"; @@ -489,6 +501,66 @@ }; }; + audma0: dma-controller@ec700000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec700000 0 0x10000>; + interrupts = <0 350 IRQ_TYPE_LEVEL_HIGH + 0 320 IRQ_TYPE_LEVEL_HIGH + 0 321 IRQ_TYPE_LEVEL_HIGH + 0 322 IRQ_TYPE_LEVEL_HIGH + 0 323 IRQ_TYPE_LEVEL_HIGH + 0 324 IRQ_TYPE_LEVEL_HIGH + 0 325 IRQ_TYPE_LEVEL_HIGH + 0 326 IRQ_TYPE_LEVEL_HIGH + 0 327 IRQ_TYPE_LEVEL_HIGH + 0 328 IRQ_TYPE_LEVEL_HIGH + 0 329 IRQ_TYPE_LEVEL_HIGH + 0 330 IRQ_TYPE_LEVEL_HIGH + 0 331 IRQ_TYPE_LEVEL_HIGH + 0 332 IRQ_TYPE_LEVEL_HIGH + 0 333 IRQ_TYPE_LEVEL_HIGH + 0 334 IRQ_TYPE_LEVEL_HIGH + 0 335 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13", "ch14", "ch15"; + clocks = <&mstp5_clks R8A7795_CLK_AUDIO_DMAC0>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <15>; + }; + + audma1: dma-controller@ec720000 { + compatible = "renesas,rcar-dmac"; + reg = <0 0xec720000 0 0x10000>; + interrupts = <0 351 IRQ_TYPE_LEVEL_HIGH + 0 336 IRQ_TYPE_LEVEL_HIGH + 0 337 IRQ_TYPE_LEVEL_HIGH + 0 338 IRQ_TYPE_LEVEL_HIGH + 0 339 IRQ_TYPE_LEVEL_HIGH + 0 340 IRQ_TYPE_LEVEL_HIGH + 0 341 IRQ_TYPE_LEVEL_HIGH + 0 342 IRQ_TYPE_LEVEL_HIGH + 0 343 IRQ_TYPE_LEVEL_HIGH + 0 344 IRQ_TYPE_LEVEL_HIGH + 0 345 IRQ_TYPE_LEVEL_HIGH + 0 346 IRQ_TYPE_LEVEL_HIGH + 0 347 IRQ_TYPE_LEVEL_HIGH + 0 348 IRQ_TYPE_LEVEL_HIGH + 0 349 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "error", + "ch0", "ch1", "ch2", "ch3", + "ch4", "ch5", "ch6", "ch7", + "ch8", "ch9", "ch10", "ch11", + "ch12", "ch13"; + clocks = <&mstp5_clks R8A7795_CLK_AUDIO_DMAC1>; + clock-names = "fck"; + #dma-cells = <1>; + dma-channels = <14>; + }; + pfc: pfc@e6060000 { compatible = "renesas,pfc-r8a7795"; reg = <0 0xe6060000 0 0x50c>; diff --git a/include/dt-bindings/clock/r8a7795-clock.h b/include/dt-bindings/clock/r8a7795-clock.h index 6c523bb..f926b86 100644 --- a/include/dt-bindings/clock/r8a7795-clock.h +++ b/include/dt-bindings/clock/r8a7795-clock.h @@ -32,6 +32,8 @@ #define R8A7795_CLK_SCIF2 10 /* MSTP5 */ +#define R8A7795_CLK_AUDIO_DMAC0 2 +#define R8A7795_CLK_AUDIO_DMAC1 1 /* MSTP7 */