From patchwork Fri Sep 18 02:04:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7212471 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 CF63DBEEC1 for ; Fri, 18 Sep 2015 02:04:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BBE9E206B5 for ; Fri, 18 Sep 2015 02:04:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 92CE72062E for ; Fri, 18 Sep 2015 02:04:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752415AbbIRCEh (ORCPT ); Thu, 17 Sep 2015 22:04:37 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:21103 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752043AbbIRCEg (ORCPT ); Thu, 17 Sep 2015 22:04:36 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 18 Sep 2015 11:04:35 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 311F040A1E; Fri, 18 Sep 2015 11:04:35 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 2F7FE480A3; Fri, 18 Sep 2015 11:04:35 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 0D6DC48014; Fri, 18 Sep 2015 11:04:35 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id MAJ30766; Fri, 18 Sep 2015 11:04:35 +0900 X-IronPort-AV: E=Sophos;i="5.17,550,1437404400"; d="scan'";a="194700644" Received: from mail-hk2apc01lp0212.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.212]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 18 Sep 2015 11:04:34 +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 HK2PR06MB0594.apcprd06.prod.outlook.com (10.161.187.145) with Microsoft SMTP Server (TLS) id 15.1.268.17; Fri, 18 Sep 2015 02:04:33 +0000 Message-ID: <874mis1o7j.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 06/18 v3] arm64: renesas: r8a7795: Sound SRC 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:04:33 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0018.jpnprd01.prod.outlook.com (25.161.131.156) To HK2PR06MB0594.apcprd06.prod.outlook.com (25.161.187.145) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 2:Rpj2GhJfcmTb0hMXu92kyM1E0G6/IzaLRMPt5AIiqIlordjsrN+l8vTcuWCseLf0UV3JpE6MtUrqSpb1pNjCmmuQ86AwMAK4BqDvm8ePlfFkojmyzOZTDqrXxtdNuiw2UBlfJFO3vXrmWUIYBzi4iIYK1oNfwXGtCbaYN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h04F1TsskGmT8Pc63Nwdf3vrvxDHkPbPbheXeNwRjRznQKlvAKuKhRWYwWmQRvVQIsBSuAzUAatUOAJjHnf8loTLveGKy2L7e9J4frKq0bYpV3MqzzHSPQX+qJQs1sdpuDucJr8GQRdzuWyTj4RQ3k1XQ353a8rd0ubSFZzMirQmD6nMKiwZUpLPE7z+qoRkrP7VThKwNIdu0f/5/yfH1jdRjkthymTA/Ov+q4dLEjUVNPldQd/024je1h9CTKPmEuHBSFjGApARkMn2g/rlyF92/Ur8jAPm8zZs3XVejHbYYRYOq1QbuFiDmdanv4e9Jr9/xz+iC+DPCoA+EzjA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(8121501046)(5005006)(520078)(520075)(3002001); SRVR:HK2PR06MB0594; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0594; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(36756003)(87976001)(77156002)(229853001)(97736004)(5001960100002)(53416004)(81156007)(40100003)(189998001)(68736005)(105586002)(76176999)(110136002)(92566002)(2950100001)(4001540100001)(62966003)(83506001)(50986999)(122386002)(42186005)(33646002)(77096005)(66066001)(47776003)(46406003)(4001350100001)(23726002)(69596002)(50466002)(19580405001)(5007970100001)(64706001)(46102003)(5001860100001)(54356999)(106356001)(19580395003)(101416001)(575784001)(86362001)(5004730100002)(5001830100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0594; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB0594; 23:XGM6wMUVWDX8Ivvq86wU3kdwsZij3BmXhPLUojx+A?= =?us-ascii?Q?tZJ1DmQuhbJFwZh40Mvkj1Js1oMkLp1Rfg2d2l2rbXisdRM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kXmovdhSk7CJEp7t7v0lqxNPLiec6Mm7QXNRkUg0vGwVpkTA/?= =?us-ascii?Q?l67wd2hN451QMJFil83xagr4jV+f12dcbtAqRq+jzpvojwTn9mi86hGFnHba?= =?us-ascii?Q?P9TqjysZJvYMBJGvbl1UbiiYqQTYQ9bJb/waGj512yS0ukXofSPPqv5ZYt2Z?= =?us-ascii?Q?y/1397nUpbUrFD9Q5j4oygQLAobtWcG269qCukHFDH9NjLYX6ZO6SlKBhOYJ?= =?us-ascii?Q?E/DU+qSBVl7j5GrNCGJraJZNEOEV6tBXQhG4UoPYOrkqzuwXkpwj5keP8IEF?= =?us-ascii?Q?XwYRTXgcsV2Ri83fN6JiPDk+eQnXyIT8vVU5gP3?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0594; 5:vf2Gy6PO2TPgUiB9KKl2kJylVreJrWWwk+ZbYaFcb+epchbuWRaIrWSiiphqnEoTY84bKrwRh/rh/A8ZxxVqqZh9/6KFeoLmLd78aRwMMTvjiyb/hboFTDWjlq6K0Yd23zS4xPFJmFE49vwMhZTJZw==; 24:TgmfIbeHvlso03urFdovPTDF9aV3aAvGtcJqHclAmJZrCg2LiJa0p2YKTLrfg7vhbcOnt07qwFMvSJXTU7A2bjr4JPU1lH3x/NPGPcmEEoA=; 20:m67Qt9O2UlagvOxu9l8c0s81jrELaLSdfkwKoH1SWY70I4yD5NySPmMjjD3vNjXk/uPdCgUw9X7Wk/gtw3j6d8FS/YHznTkn8yX9BAGT/BrCwmfZ0aUkIqYfMGWZX/RkvC/WxOGPzmDxYr+nwLDENQhVu10IVMDxANelYbepGNM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2015 02:04:33.1960 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0594 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 | 71 ++++++++++++++++++++++++++++++- include/dt-bindings/clock/r8a7795-clock.h | 11 +++++ 2 files changed, 81 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index bdb0273..fdce918 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -529,11 +529,20 @@ <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, - <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>; + <&mstp10_clks R8A7795_CLK_SSI_ALL>, <&mstp10_clks R8A7795_CLK_SSI_ALL>, + <&s3d4_clk>, + <&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 R8A7795_CLK_SSI9 R8A7795_CLK_SSI8 R8A7795_CLK_SSI7 R8A7795_CLK_SSI6 R8A7795_CLK_SSI5 R8A7795_CLK_SSI4 R8A7795_CLK_SSI3 R8A7795_CLK_SSI2 R8A7795_CLK_SSI1 R8A7795_CLK_SSI0 + R8A7795_CLK_SCU_ALL + 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 >; }; }; @@ -999,14 +1008,74 @@ <&mstp10_clks R8A7795_CLK_SSI5>, <&mstp10_clks R8A7795_CLK_SSI4>, <&mstp10_clks R8A7795_CLK_SSI3>, <&mstp10_clks R8A7795_CLK_SSI2>, <&mstp10_clks R8A7795_CLK_SSI1>, <&mstp10_clks R8A7795_CLK_SSI0>, + <&mstp10_clks R8A7795_CLK_SCU_SRC9>, <&mstp10_clks R8A7795_CLK_SCU_SRC8>, + <&mstp10_clks R8A7795_CLK_SCU_SRC7>, <&mstp10_clks R8A7795_CLK_SCU_SRC6>, + <&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>, <&audio_clk_a>, <&audio_clk_b>, <&audio_clk_c>, <&s0d4_clk>; clock-names = "ssi-all", "ssi.9", "ssi.8", "ssi.7", "ssi.6", "ssi.5", "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", "clk_a", "clk_b", "clk_c", "clk_i"; power-domains = <&cpg_clocks>; status = "disabled"; + rcar_sound,src { + src0: src@0 { + interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x85>, <&audma1 0x9a>; + dma-names = "rx", "tx"; + }; + src1: src@1 { + interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x87>, <&audma1 0x9c>; + dma-names = "rx", "tx"; + }; + src2: src@2 { + interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x89>, <&audma1 0x9e>; + dma-names = "rx", "tx"; + }; + src3: src@3 { + interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x8b>, <&audma1 0xa0>; + dma-names = "rx", "tx"; + }; + src4: src@4 { + interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x8d>, <&audma1 0xb0>; + dma-names = "rx", "tx"; + }; + src5: src@5 { + interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x8f>, <&audma1 0xb2>; + dma-names = "rx", "tx"; + }; + src6: src@6 { + interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x91>, <&audma1 0xb4>; + dma-names = "rx", "tx"; + }; + src7: src@7 { + interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x93>, <&audma1 0xb6>; + dma-names = "rx", "tx"; + }; + src8: src@8 { + interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x95>, <&audma1 0xb8>; + dma-names = "rx", "tx"; + }; + src9: src@9 { + interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; + dmas = <&audma0 0x97>, <&audma1 0xba>; + dma-names = "rx", "tx"; + }; + }; + rcar_sound,ssi { ssi0: ssi@0 { interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; diff --git a/include/dt-bindings/clock/r8a7795-clock.h b/include/dt-bindings/clock/r8a7795-clock.h index c4cacd9..5e721b2 100644 --- a/include/dt-bindings/clock/r8a7795-clock.h +++ b/include/dt-bindings/clock/r8a7795-clock.h @@ -87,5 +87,16 @@ #define R8A7795_CLK_SSI2 13 #define R8A7795_CLK_SSI1 14 #define R8A7795_CLK_SSI0 15 +#define R8A7795_CLK_SCU_ALL 17 +#define R8A7795_CLK_SCU_SRC9 22 +#define R8A7795_CLK_SCU_SRC8 23 +#define R8A7795_CLK_SCU_SRC7 24 +#define R8A7795_CLK_SCU_SRC6 25 +#define R8A7795_CLK_SCU_SRC5 26 +#define R8A7795_CLK_SCU_SRC4 27 +#define R8A7795_CLK_SCU_SRC3 28 +#define R8A7795_CLK_SCU_SRC2 29 +#define R8A7795_CLK_SCU_SRC1 30 +#define R8A7795_CLK_SCU_SRC0 31 #endif /* __DT_BINDINGS_CLOCK_R8A7795_H__ */