From patchwork Wed Nov 25 06:36:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7695521 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 337899F1D3 for ; Wed, 25 Nov 2015 06:36:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 375D2208AB for ; Wed, 25 Nov 2015 06:36:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3CE0C208AA for ; Wed, 25 Nov 2015 06:36:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755162AbbKYGga (ORCPT ); Wed, 25 Nov 2015 01:36:30 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:10322 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754425AbbKYGg3 (ORCPT ); Wed, 25 Nov 2015 01:36:29 -0500 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie2.idc.renesas.com with ESMTP; 25 Nov 2015 15:36:28 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id B34444B903; Wed, 25 Nov 2015 15:36:28 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 9DD612806E; Wed, 25 Nov 2015 15:36:28 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 607992806D; Wed, 25 Nov 2015 15:36:28 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id RAE26432; Wed, 25 Nov 2015 15:36:28 +0900 X-IronPort-AV: E=Sophos;i="5.20,341,1444662000"; d="scan'";a="199263969" Received: from mail-pu1apc01lp0018.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.18]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 25 Nov 2015 15:36:27 +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 SG2PR06MB1018.apcprd06.prod.outlook.com (10.161.9.26) with Microsoft SMTP Server (TLS) id 15.1.331.20; Wed, 25 Nov 2015 06:36:25 +0000 Message-ID: <87ziy27fqk.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 02/12] arm64: renesas: r8a7795: Sound SSI PIO support User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Simon CC: Magnus , , In-Reply-To: <8737vu8ucv.wl%kuninori.morimoto.gx@renesas.com> References: <8737vu8ucv.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Wed, 25 Nov 2015 06:36:25 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0005.jpnprd01.prod.outlook.com (25.161.225.143) To SG2PR06MB1018.apcprd06.prod.outlook.com (25.161.9.26) X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1018; 2:fZ4ehf4g7mNsgH7/zm6XbSRYKQKKaZMwD8SKbQQ5RPxxqvNaK4CA35dYcgYn563X9S6+zOXadzjK4GRf1E07VrzwO5n4LuIIYHqZY90ic91HDTiDaR5/qVc36Z/fdeKWFP1lKAQe41F0MdjYj5CxKg==; 3:bblfbUDOev636TfPhJfpXGpvOQiotKQpoMZese9AhyIadnylwHDVpVrhWsa/pWaj4iS0AYKVCcqJN/JIztBBL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GG4I1pJueaKp2N2JKkFm5cebLfoYe2Z/Unnh+5zpH253SKfhsep6qL4y3A7S45GeunSmrawkPZ3sNY8ixNGRKAFvGISoUm+QxUo7U0xLbO5aCCb8bicNP3rCr441MASZ4nYoTqyg4Jq5Tqtnn09dyhkCQo6jQR43mVosuIZQN3S6dACGGVIIEjdi+SAmveibPM5tTyQdvDL09ejApNheT+o7+NvOzK6gXYGji6SvmXXHqx+wUSwHN4oH0 RM/Zk= 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:SG2PR06MB1018; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB1018; X-Forefront-PRVS: 0771670921 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(19580405001)(5001920100001)(586003)(575784001)(105586002)(69596002)(5001960100002)(40100003)(122386002)(42186005)(23726003)(81156007)(4001350100001)(189998001)(83506001)(50466002)(33646002)(97736004)(86362001)(50986999)(110136002)(47776003)(5004730100002)(53416004)(19580395003)(6116002)(5007970100001)(36756003)(106356001)(3846002)(66066001)(77096005)(2950100001)(101416001)(5008740100001)(54356999)(92566002)(46406003)(76176999)(87976001)(229853001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB1018; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB1018; 23:tOwL5/7DXx3r25/4rN4ybV+S2zkQrBs0GPnEEsfqB?= =?us-ascii?Q?6QQKFFHa18/hEdI0rZh/TT8enuFG4gQmD8GmhaNNWZ5ClBxLhEIe59hiLrQ4?= =?us-ascii?Q?4o2vU2xCcJFvuvqQHQbf3GHKDOLIBPPfeTpx/ooZRINVzPsgpq97Hr3Adat7?= =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MXsA8eQNc/IwmHwYRrIcf4gvCxo9vY?= =?us-ascii?Q?mbuBMcz5Olbk/15A69e/LSgRVsxMOkT1rJPUjF6V2pkTWyIeq/wk1XAXWQUM?= =?us-ascii?Q?DlGtkz/jiWsZZ+oBIiS+pKPZmXIKsf75VWbP+P2LyOqy2rXVKOdWdEABqad5?= =?us-ascii?Q?x88ulRbtdF7KjLIfGq95Nh7dNrpucODKwi3?= X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1018; 5:BEUc/4fKcoUQAF8rylaDtPh3zEUo/9tK1QfaMQMNReltelHYGViCNU+XMLbtZc5+la7qNReCc9787mpAb1iCz1TAmvkirtPdIuhB7MH81Sd65wsuXZSjoSS06r9wTeg77e928OSVMpvRtBb4fwbCQw==; 24:err/A9n83/8+2WtuaBeiV7uuI9I7beAjdWVyreBBXX42GFaoVtkuLiT3KxFD7MdtVluSxeW4ZNZKG9lnpCYyUaVN5w3isXhjr7ySmxKJfY0=; 20:ZtXCjNsKLK7Qd//ngI7/zaKb3yWKQQ5ap7MQ8ey1eU41sjNa7KwLw7bBv03KlYeNfTCm7MhH3y9LhwS3vKG2fVJE0Vqg9RzLk3UJaScoamrWBOyEbiyM4E15rbtxo4Ez5gRgenqII2Ti6Yk6ItMYLHQavl3nDcL12llf5444q18= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Nov 2015 06:36:25.1129 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1018 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 This patch adds SSI for PIO sound support Signed-off-by: Kuninori Morimoto Signed-off-by: Simon Horman --- 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 18d2221..6fff49c 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -52,6 +52,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>; @@ -474,5 +497,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>; + }; + }; + }; }; };