From patchwork Fri Nov 6 06:35:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7566641 Return-Path: X-Original-To: patchwork-linux-arm@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 8C7C29F71A for ; Fri, 6 Nov 2015 06:38:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 92E712073E for ; Fri, 6 Nov 2015 06:38:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6652B2073C for ; Fri, 6 Nov 2015 06:37:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zuacl-0006ag-Gr; Fri, 06 Nov 2015 06:35:47 +0000 Received: from relmlor3.renesas.com ([210.160.252.173] helo=relmlie2.idc.renesas.com) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zuacd-0006OU-6d for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2015 06:35:41 +0000 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 06 Nov 2015 15:35:18 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 593413E430; Fri, 6 Nov 2015 15:35:18 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 494FF2806E; Fri, 6 Nov 2015 15:35:18 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 400AE2806D; Fri, 6 Nov 2015 15:35:18 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id RAH14261; Fri, 6 Nov 2015 15:35:18 +0900 X-IronPort-AV: E=Sophos;i="5.20,250,1444662000"; d="scan'";a="199215086" Received: from mail-hk2apc01lp0215.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.215]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 06 Nov 2015 15:35:17 +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 SIXPR06MB1023.apcprd06.prod.outlook.com (10.160.240.28) with Microsoft SMTP Server (TLS) id 15.1.318.15; Fri, 6 Nov 2015 06:35:14 +0000 Message-ID: <87bnb7k5cq.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 02/12 v6] arm64: renesas: r8a7795: Sound SSI PIO support User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: , , Simon Horman In-Reply-To: <87egg3k5g6.wl%kuninori.morimoto.gx@renesas.com> References: <87egg3k5g6.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Fri, 6 Nov 2015 06:35:14 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: HKXPR03CA0039.apcprd03.prod.outlook.com (10.141.129.29) To SIXPR06MB1023.apcprd06.prod.outlook.com (25.160.240.28) X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB1023; 2:VwhlV0jklzixitDPmUMhRQAmekQUBXBb3B4ehYmv4qZkRhU3Ls6o9xaBNYhURsKRM1HQZ4diPfL0J4AO98ZiUKb6k0feHUi6jeasRRZQzcyrK6KM12Bqq5Sy+va1ORReUyz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vZpLMe38/WFanMGZ5HYyRXfnvnkWNmw0vzON5fhxAyGvlT9AZGZWgv+MYlobRYXi9RXX/LzoP1UJqYfZLVKgo3qUeK0yIAygRs2E5v1/9zxr8YFterEmJ2DuA1SsLROAVMrDPO+6GCXgAMax5dxqWpebRbUSh/InbpICGbE/BKR+yZALWWkTY6CiQloNgKyJgKUrJeOGJ+OiDjWGb8wLRMFaVChUlS0u2KLDHtgEi8GqUTEqOakTq3xxhY5fCYd0bwQSEoyFcMByRmJrA/hiXCLRy9su9bQdiiQADoEw07khYp+G0Uf+233cZqldTIRLuahu0vJJLZA98/Ju00BZgoMUyx7uT2kVIDwrLztKpk3dq+uadWeOQnQ5YQpvK X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001)(10201501046); SRVR:SIXPR06MB1023; BCL:0; PCL:0; RULEID:; SRVR:SIXPR06MB1023; X-Forefront-PRVS: 07521929C1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(122386002)(83506001)(4001350100001)(40100003)(23726002)(36756003)(5008740100001)(76176999)(50986999)(54356999)(50466002)(5001770100001)(77096005)(5004730100002)(189998001)(5007970100001)(2950100001)(47776003)(33646002)(81156007)(87976001)(97736004)(106356001)(66066001)(53416004)(101416001)(92566002)(5001960100002)(229853001)(575784001)(46406003)(19580405001)(86362001)(19580395003)(42186005)(105586002)(69596002)(217873001)(2101003); DIR:OUT; SFP:1102; SCL:1; SRVR:SIXPR06MB1023; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SIXPR06MB1023; 23:ThFlFVaUBmjCCf69ejbOcCXggP9kMos+srZtp3dD9?= =?us-ascii?Q?qK7V+BBGb3cVpqqi6smcVs+MkedLStRQz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+ZRX3SRzKg4xBFGEBk6AbRGP0AJt9eC/rzEQNVQpBReO2QZvWSV0AzCsEB?= =?us-ascii?Q?OwN2qgYakdAFEER0E1HTaRdnfRtgcMjj74KliGKOdjH6EabeiRYbbNWj/yJP?= =?us-ascii?Q?FE3wElDA4B8ONPQwL/Ks+I/qKGpu+Iyl3FM+3L8sKx/oqp8duYS2j5owRNOM?= =?us-ascii?Q?xJSoOgcMmv0ANbRyXzqMEMOPMMmOHBK?= X-Microsoft-Exchange-Diagnostics: 1; SIXPR06MB1023; 5:aZFq1jl9YTOnBiTgiDimR2f2gz2AlRm/nbWxFUuqjDtp7F4u9zaJYpmYrp/pHSudj4Dd3m3ssS0/BqxQH8pT6lpL7irv55DohAchfnrczDQilxsSFQ8mZbPawVWKsrahjYbXz1zxme6MreAc4tTlsg==; 24:Fn5OdgB515hLSoxo2Gd+GNwEGs34lA/q1PZHWF26aKKiIL0set+TAqAWL0VS/tCnH4WQt5WpiGCxt0NCTRGUzNctnmEko/65yKOcbTjXp0I=; 20:vlM80yJmLz5baoHzWsVHH8SbHyq2/HV6qI8N1QORkZ9ea8k3ZuK3ctW709WEr8xfORL6rOZU+XjnCDSp9iuo2j3xXtyhkojqD+PUiST7iz3+nVtg4BAGu0YKSV0bLJmd8ZdkP4sYrXmQYfLFxuRvAM5SiqIrkv4GXpaNDHlkTK8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2015 06:35:14.5342 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SIXPR06MB1023 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151105_223539_725288_8E735A70 X-CRM114-Status: GOOD ( 10.13 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Magnus Damm Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This patch adds SSI for PIO sound support Signed-off-by: Kuninori Morimoto Signed-off-by: Simon Horman --- v5 -> v6 - no change arch/arm64/boot/dts/renesas/r8a7795.dtsi | 95 ++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index e419163..e5d3719 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -51,6 +51,29 @@ clock-frequency = <0>; }; + /* + * The external audio clocks are configured as 0 Hz fixed frequency + * clocks by default. + * Boards that provide audio clocks should override them. + */ + audio_clk_a: audio_clk_a { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + + audio_clk_b: audio_clk_b { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + + audio_clk_c: audio_clk_c { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + soc { compatible = "simple-bus"; interrupt-parent = <&gic>; @@ -473,5 +496,77 @@ power-domains = <&cpg>; status = "disabled"; }; + + rcar_sound: sound@ec500000 { + /* + * #sound-dai-cells is required + * + * Single DAI : #sound-dai-cells = <0>; <&rcar_sound>; + * Multi DAI : #sound-dai-cells = <1>; <&rcar_sound N>; + */ + /* + * #clock-cells is required for audio_clkout0/1/2/3 + * + * clkout : #clock-cells = <0>; <&rcar_sound>; + * clkout0/1/2/3: #clock-cells = <1>; <&rcar_sound N>; + */ + compatible = "renesas,rcar_sound-r8a7795", "renesas,rcar_sound-gen3"; + reg = <0 0xec500000 0 0x1000>, /* SCU */ + <0 0xec5a0000 0 0x100>, /* ADG */ + <0 0xec540000 0 0x1000>, /* SSIU */ + <0 0xec541000 0 0x280>, /* SSI */ + <0 0xec740000 0 0x200>; /* Audio DMAC peri peri*/ + reg-names = "scu", "adg", "ssiu", "ssi", "audmapp"; + + clocks = <&cpg CPG_MOD 1005>, + <&cpg CPG_MOD 1006>, <&cpg CPG_MOD 1007>, + <&cpg CPG_MOD 1008>, <&cpg CPG_MOD 1009>, + <&cpg CPG_MOD 1010>, <&cpg CPG_MOD 1011>, + <&cpg CPG_MOD 1012>, <&cpg CPG_MOD 1013>, + <&cpg CPG_MOD 1014>, <&cpg CPG_MOD 1015>, + <&audio_clk_a>, <&audio_clk_b>, + <&audio_clk_c>, + <&cpg CPG_CORE R8A7795_CLK_S0D4>; + clock-names = "ssi-all", + "ssi.9", "ssi.8", "ssi.7", "ssi.6", + "ssi.5", "ssi.4", "ssi.3", "ssi.2", + "ssi.1", "ssi.0", + "clk_a", "clk_b", "clk_c", "clk_i"; + power-domains = <&cpg>; + status = "disabled"; + + rcar_sound,ssi { + ssi0: ssi@0 { + interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; + }; + ssi1: ssi@1 { + interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; + }; + ssi2: ssi@2 { + interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; + }; + ssi3: ssi@3 { + interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; + }; + ssi4: ssi@4 { + interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; + }; + ssi5: ssi@5 { + interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; + }; + ssi6: ssi@6 { + interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; + }; + ssi7: ssi@7 { + interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; + }; + ssi8: ssi@8 { + interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; + }; + ssi9: ssi@9 { + interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + }; }; };