From patchwork Thu Sep 10 07:15:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7151341 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 68F5CBEEC1 for ; Thu, 10 Sep 2015 07:15:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C6E820741 for ; Thu, 10 Sep 2015 07:15:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5AB8120653 for ; Thu, 10 Sep 2015 07:15:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753074AbbIJHPq (ORCPT ); Thu, 10 Sep 2015 03:15:46 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:59445 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752055AbbIJHPp (ORCPT ); Thu, 10 Sep 2015 03:15:45 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 10 Sep 2015 16:15:44 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 0ECCC3FE28; Thu, 10 Sep 2015 16:15:44 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 04E941806F; Thu, 10 Sep 2015 16:15:43 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id EB0B41800A; Thu, 10 Sep 2015 16:15:43 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id SAM14751; Thu, 10 Sep 2015 16:15:43 +0900 X-IronPort-AV: E=Sophos;i="5.17,502,1437404400"; d="scan'";a="194140462" Received: from mail-pu1apc01lp0024.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.24]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Sep 2015 16:15:43 +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 HK2PR06MB0595.apcprd06.prod.outlook.com (10.161.187.146) with Microsoft SMTP Server (TLS) id 15.1.262.15; Thu, 10 Sep 2015 07:15:41 +0000 Message-ID: <87lhcen3yw.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 04/14][RFC] arm64: renesas: r8a7795: add SSI sound 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:15:41 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0011.jpnprd01.prod.outlook.com (25.161.74.149) To HK2PR06MB0595.apcprd06.prod.outlook.com (25.161.187.146) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0595; 2:PL1MvwWPY38Ydf22r69Vcrg6wd/iSb0TsCCBxXqBr/CTBgDiJU7NAowg6O1RWvRmvyhwy6cIdHLJLD1vRa2fz9AjHzkweLUXRVaomc4ZLu9ZhQz0M97Q97fE5HkaL42Wc26CZtiH6v7Ki87KPe9LSsf3KzfwM6JYDot/Wn/vtHw=; 3:KHorx9Yyq9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U691Fw4V3Ijv0KGMoj/whg3bIFY7OaeFUP+xmSSLNcwOYJhxBvf9d3zJr5c77+7FwYILNngqx0FMNSZvhH/DmqSQFhSbpKfhGPwQFKmXcu3K+Zp6os4dZcmbcBOmM/RSv/5ZG2akNlt3I+dx4/TSkVHVMStpIZg3NdQi1ldQAH4Vln2QGI6gWw0clnXwGuSeV7v1wW91KxgZ4t7UqrfNr0R3S2GFl/DFRA+jHBu+WO1cYzOtTky552nLcqLX 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:HK2PR06MB0595; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0595; X-Forefront-PRVS: 06952FC175 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(229853001)(68736005)(105586002)(50986999)(42186005)(76176999)(54356999)(77156002)(106356001)(33646002)(5001830100001)(5001960100002)(19580405001)(50466002)(189998001)(19580395003)(5001860100001)(83506001)(46406003)(86362001)(87976001)(46102003)(69596002)(62966003)(53416004)(575784001)(36756003)(5004730100002)(23726002)(47776003)(92566002)(5001770100001)(5007970100001)(40100003)(2950100001)(66066001)(122386002)(101416001)(4001540100001)(4001350100001)(81156007)(77096005)(64706001)(97736004); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0595; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB0595; 23:7KY5lOg6Xdlaby6r3Idhh5kfUX96z76lnG48v2s75?= =?us-ascii?Q?aT9qQLi3MhbFnAdrilYgsJjKnJBfIViym4JX6cbJVp0P4oaDhGhAYl/okaWq?= =?us-ascii?Q?KT5TDu4oczejnm4WZ3bfJlO7HalIhMQhwFu5eKVi7Sctkic6/0hfuCwO0ew/?= =?us-ascii?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qNYsgQiSyafhpY0+Dz?= =?us-ascii?Q?ImmxNbK/NknsCva6aWxN7kjgnlHw+1r+PIDUwLW1v9xoN91QaLa9ffFOOzwD?= =?us-ascii?Q?USVXmoatgX4GGREEuSpO4688WOaEQD2JN5tT3aILAZ2BPHYYkBSHZPexjxpz?= =?us-ascii?Q?ZUMKEglxmMcjEwsrky0nS2XUKwGBkuzLz2S8/3EWdyqwxO35S9Q9Aq3Q8XmK?= =?us-ascii?Q?PZCNQj1s9Cvl95rYllif3t7LdFD32OrXW2HxWwC?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0595; 5:kBBjzw+hUpkmjox82k+sPFvosjigkOwIDEqg2kSFSEEs4n3kPC3GsKmw2k8H9Sto4jdvK5TGc7pQtK2B4fFO+DjxdhhVkrXMaEhkPxV0bSt2gt+0PREFTz5XuSkTFlkdKaTnhYDwSCBDI+gCP/yTww==; 24:v7JLD4W5SInHc4NceoWXXEM5Tah7bw/3pjejwkgOazm4qivqOxVC3gVekeTdWGC703fqHrwLRs+Yf+VjQ2VGFG42ifCm9fp9FD9HuuP/Y8w=; 20:aPhAz3OBMtqyYaSbI9PFqYykxn+eFGinOWgq2RUbU8wj6WVuFBA1lz+ajZy8MdLkU4z9UQAn+c47khYj3XAXtP5iPkeMPWS/G+kU1VxyRCApvjsanUjAOfaFKhLxbjAy7M+e+uo6maQszMjEfRoeGuQzdm++ueoLJWhTxybuuTk= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2015 07:15:41.0743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0595 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 This patch adds SSI PIO sound support Signed-off-by: Kuninori Morimoto Acked-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 87 ++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index f27b8d2..235f266 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -361,6 +361,24 @@ clock-mult = <1>; }; + 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>; + }; + cpg_clocks: cpg_clocks@e6150000 { #address-cells = <2>; #size-cells = <2>; @@ -632,5 +650,74 @@ clocks = <&mstp9_clks R8A7795_CLK_I2C6>; 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 = <&mstp10_clks R8A7795_CLK_SSI_ALL>, + <&mstp10_clks R8A7795_CLK_SSI9>, <&mstp10_clks R8A7795_CLK_SSI8>, + <&mstp10_clks R8A7795_CLK_SSI7>, <&mstp10_clks R8A7795_CLK_SSI6>, + <&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>, + <&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", + "clk_a", "clk_b", "clk_c", "clk_i"; + + 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>; + }; + }; + }; }; };