From patchwork Fri Sep 18 02:05:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7212491 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 09D9E9F32B for ; Fri, 18 Sep 2015 02:05:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 14835206B5 for ; Fri, 18 Sep 2015 02:05:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 076432062E for ; Fri, 18 Sep 2015 02:05:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752538AbbIRCFP (ORCPT ); Thu, 17 Sep 2015 22:05:15 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:65349 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752472AbbIRCFO (ORCPT ); Thu, 17 Sep 2015 22:05:14 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 18 Sep 2015 11:05:12 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id D7318453E6; Fri, 18 Sep 2015 11:05:12 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id D7B318002E; Fri, 18 Sep 2015 11:05:12 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id D1EB58002D; Fri, 18 Sep 2015 11:05:12 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id MAK08118; Fri, 18 Sep 2015 11:05:12 +0900 X-IronPort-AV: E=Sophos;i="5.17,550,1437404400"; d="scan'";a="194700692" Received: from mail-pu1apc01lp0023.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.23]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 18 Sep 2015 11:05:12 +0900 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 SIXPR06MB0605.apcprd06.prod.outlook.com (10.160.237.147) with Microsoft SMTP Server (TLS) id 15.1.274.16; Fri, 18 Sep 2015 02:05:10 +0000 Message-ID: <871tdw1o6g.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 08/18 v3] arm64: renesas: r8a7795: Sound CTU/MIX support User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") To: Simon CC: Magnus , In-Reply-To: <87d1xg1oc7.wl%kuninori.morimoto.gx@renesas.com> References: <87twqs1osz.wl%kuninori.morimoto.gx@renesas.com> <87d1xg1oc7.wl%kuninori.morimoto.gx@renesas.com> Date: Fri, 18 Sep 2015 02:05:10 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR0201CA0003.apcprd02.prod.outlook.com (25.164.90.141) To SIXPR06MB0605.apcprd06.prod.outlook.com (25.160.237.147) X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0605; 2:qwDJlv+WYVp+uyUS/J1IXS801/sQ17ECStzql9SAhIKHzATT/vDmAD8U4O+EyEMRdE44qG6Q6v4dTvApfIW3qi32mS2tcSPK86A73Qes7u7gmtlhYu9KdCbfisHDEHfH1U0SKmKYfPihe4rQ+iub4tQra8InsRqeJDBpt0uhb2g=; 3:NrJ/AK+FIlw4UOFrqCLDmo7/fZodxT+tAsHAhQvMAL4iymN0r7pQk+taM02epjOCVFTEo6C0PP99le23YW1gqxlPYz1oSbIoZMnbm6UVRI78vs087IQjAoX11yFV1si39rx2/Hy2loQxO/S/1RcqVg==; 25:UCNYg97e8OKXzVwb1GYMJX2/qtbJy0aFpssggV68rer59Hktxvp0f4InBO+FZ3XbviubdjZtsi8L/5Wo9/WSeYUy5DIwlUkmz8y4il9bfV6aRNvYmX+RRb1Z1HUxjwu+WscAR99oy6HmySRbcuzJx5ubblyOVlUIfZLGqN6KEXRHX7u2AtIsJH+B4AsVi2AZLk259xzHfIAmR9JDnBTuDXdNXBc7tipCwE0eDop6QvCMHsUXoV0Xd9+9jnrxPzTirztbJLVua5dDNh9Gxvrc1Q== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SIXPR06MB0605; X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0605; 20:DY0mLsSbaz42r4hOBzyx68i8eM7avEzV/7OW94mteFWStqi4YBtslTD2HnKrg37ObBI8RTRiLnAFeSh/X4BSQl7gUKQdIfurJ7SWwJ3sA4hvGuxqEKSwUz7waskOj2M6wL/LIKLXYb49TTkdrAsCsAThP4j265/UlTXS7PlpIOirZhGAHPhPnT9KSV+Frf4pa+Psqon8efVRpQEkmncqHXijXsMgp75UPi3lSVLxSYQt5FqIZc96F2RFB8kmiALVz3kfqCTTaMcsmgZT65xjMo5DyATyayst0osxjLb5H8vxwiWOom62PvIdZ+L1rwTeWkhJ8g+1Lb9NPhXeQ9I/HVuf1/2u9t1vx65rSkS1tplxmKk0uLxzDvhSviraqdGc6uDd5In2KE6FaH3Tr6KVj1j22zcCpX40+uukSSE/JL31mHu0GFkGaX71s+feOF/76F+FZv86Dz77DHi0RcHVWYvXXnAMD8yDxjZuiO52pTjSC36r/jgv69eJXzuKfrqy; 4:u99hXoIhUqx9N78FM/dxubuIfYUO4AP07GrNarjBWm3bdVQrbShLgTYaUSf6PBO18Sdn0ZSMdIK4uBetAgVlWINda7n43alF3FEC2I5AAkc7PadW4HnIZp9plxSzOqAqDSnk4ThK0B2+qZZ9AVrMha5CSTAXkUT7bQ+2XGoNa319eNzgbN+LxQkJ5BoACzwbS2oKE4d23paEFHmWZ35AW47oMUs0k4sCf1PdZopz13tkAPlLfhFNZWchwOTbaCeXYuUMeXa1cZ1nZErrFJvgRcl0w3fd24F2QALCyvoFfwZVw4X0VDdTbiJBM7NE8AwU++acAd4z5a2WuN0WSVmLUw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(8121501046)(520078)(3002001); SRVR:SIXPR06MB0605; BCL:0; PCL:0; RULEID:; SRVR:SIXPR06MB0605; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(86362001)(575784001)(106356001)(50466002)(83506001)(77096005)(69596002)(5004730100002)(19580405001)(19580395003)(23726002)(5007970100001)(77156002)(68736005)(62966003)(92566002)(189998001)(229853001)(2950100001)(97736004)(5001860100001)(81156007)(42186005)(4001540100001)(47776003)(4001350100001)(122386002)(53416004)(87976001)(105586002)(5001920100001)(5001960100002)(64706001)(110136002)(66066001)(54356999)(101416001)(33646002)(5001830100001)(50986999)(76176999)(40100003)(46102003)(46406003)(36756003); DIR:OUT; SFP:1102; SCL:1; SRVR:SIXPR06MB0605; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SIXPR06MB0605; 23:BFmsEbiIc/305WDQrq95bD7gd9qwfAsUvyb0tZ9u/?= =?us-ascii?Q?v6LqO2JMxSRzJSwAFi3zLl9xt/FWDxSNBnT1gyaGzZNigbrBsTtNB2fDinQd?= =?us-ascii?Q?ol8pB/KHS9fX3fqHpp4x+bp+0UU+oXHc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q?/i94ti63Lsl8KNxYw6gFICFT2R19EtH/IUsVeT9kgdBQufLgkG/8TsrOVTGt?= =?us-ascii?Q?xFc5VLbEefKSutZzw+6Qw76Fg/EJYoscnXjP4S+lTdzh0AZEmxhL0NY9FBsY?= =?us-ascii?Q?sFKAzQ/Kl1vBAE3xR4Hcnqcw9NwaYyhaxwb4cpudo7o8hGom9aSGl+c86LMk?= =?us-ascii?Q?BL51OdvBPYNUiz+e7/GFPoQy9wxAYRE6fb8+qaxNKdcCHag+F+jiU9hoIH3R?= =?us-ascii?Q?pXHcBZnQTKqMnVSeswjP+00lbq6rEVi7kioCTLq3apD39M+eAx9urwwUncWf?= =?us-ascii?B?UT09?= X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB0605; 5:GHn1LCCxuUZOvTOyaS2XviUiCqcsJnlPKiHyJKzadhFEA5AJ33lUwk7qFEBulelEGPDUmMnNAN4ImvH88gT8ARrSvV5FfKOsQGJcxT1ySI+4SSe3xV3/DtU30hni09U9lsRKOHP4EtIqhBkut221eg==; 24:V5M7ix3vPjiHpL2NhbvwMo/XQaho5NqfohtLlOJm1C84zYOK3OzCzfMd+3bGaXrjfdY19d5JQUnsQXSoL17xwNS5fQpEGMmVGINVJHo0NkE=; 20:cYWgyDdLsCTFFm05HbSL/A7NvRsKB7W/PLnVTgw+9W/fXpAnoME4wwHdhSs08zzoVGWyk28MgbcjrzVkXdmaeYKFnpXc7FvNE/rnVFjIE57RZarE6fqQ+kFtVQxP2yc4q8/h9OGchoqtcjf8/n+6syxBD9x7Q0ZWITf/YUiunQU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2015 02:05:10.7716 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB0605 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 --- v2 -> v3 - new patch arch/arm64/boot/dts/renesas/r8a7795.dtsi | 22 ++++++++++++++++++++++ include/dt-bindings/clock/r8a7795-clock.h | 2 ++ 2 files changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index b57e81c..1fddf55 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -536,6 +536,7 @@ <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, + <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>, <&mstp10_clks R8A7795_CLK_SCU_ALL>; clock-indices = < R8A7795_CLK_SSI_ALL @@ -543,6 +544,7 @@ R8A7795_CLK_SSI4 R8A7795_CLK_SSI3 R8A7795_CLK_SSI2 R8A7795_CLK_SSI1 R8A7795_CLK_SSI0 R8A7795_CLK_SCU_ALL R8A7795_CLK_SCU_DVC1 R8A7795_CLK_SCU_DVC0 + R8A7795_CLK_SCU_CTU1_MIX1 R8A7795_CLK_SCU_CTU0_MIX0 R8A7795_CLK_SCU_SRC9 R8A7795_CLK_SCU_SRC8 R8A7795_CLK_SCU_SRC7 R8A7795_CLK_SCU_SRC6 R8A7795_CLK_SCU_SRC5 R8A7795_CLK_SCU_SRC4 R8A7795_CLK_SCU_SRC3 R8A7795_CLK_SCU_SRC2 R8A7795_CLK_SCU_SRC1 R8A7795_CLK_SCU_SRC0 >; @@ -1015,6 +1017,8 @@ <&mstp10_clks R8A7795_CLK_SCU_SRC5>, <&mstp10_clks R8A7795_CLK_SCU_SRC4>, <&mstp10_clks R8A7795_CLK_SCU_SRC3>, <&mstp10_clks R8A7795_CLK_SCU_SRC2>, <&mstp10_clks R8A7795_CLK_SCU_SRC1>, <&mstp10_clks R8A7795_CLK_SCU_SRC0>, + <&mstp10_clks R8A7795_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7795_CLK_SCU_CTU1_MIX1>, + <&mstp10_clks R8A7795_CLK_SCU_CTU0_MIX0>, <&mstp10_clks R8A7795_CLK_SCU_CTU1_MIX1>, <&mstp10_clks R8A7795_CLK_SCU_DVC0>, <&mstp10_clks R8A7795_CLK_SCU_DVC1>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&s0d4_clk>; clock-names = "ssi-all", @@ -1022,6 +1026,8 @@ "ssi.4", "ssi.3", "ssi.2", "ssi.1", "ssi.0", "src.9", "src.8", "src.7", "src.6", "src.5", "src.4", "src.3", "src.2", "src.1", "src.0", + "ctu.0", "ctu.1", + "mix.0", "mix.1", "dvc.0", "dvc.1", "clk_a", "clk_b", "clk_c", "clk_i"; power-domains = <&cpg_clocks>; @@ -1038,6 +1044,22 @@ }; }; + rcar_sound,mix { + mix0: mix@0 { }; + mix1: mix@1 { }; + }; + + rcar_sound,ctu { + ctu00: ctu@0 { }; + ctu01: ctu@1 { }; + ctu02: ctu@2 { }; + ctu03: ctu@3 { }; + ctu10: ctu@4 { }; + ctu11: ctu@5 { }; + ctu12: ctu@6 { }; + ctu13: ctu@7 { }; + }; + rcar_sound,src { src0: src@0 { interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; diff --git a/include/dt-bindings/clock/r8a7795-clock.h b/include/dt-bindings/clock/r8a7795-clock.h index 74ca804..cc66a06 100644 --- a/include/dt-bindings/clock/r8a7795-clock.h +++ b/include/dt-bindings/clock/r8a7795-clock.h @@ -90,6 +90,8 @@ #define R8A7795_CLK_SCU_ALL 17 #define R8A7795_CLK_SCU_DVC1 18 #define R8A7795_CLK_SCU_DVC0 19 +#define R8A7795_CLK_SCU_CTU1_MIX1 20 +#define R8A7795_CLK_SCU_CTU0_MIX0 21 #define R8A7795_CLK_SCU_SRC9 22 #define R8A7795_CLK_SCU_SRC8 23 #define R8A7795_CLK_SCU_SRC7 24