From patchwork Thu Sep 10 07:12:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7151271 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 63F079F39B for ; Thu, 10 Sep 2015 07:12:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 87528208E1 for ; Thu, 10 Sep 2015 07:12:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9145E208D6 for ; Thu, 10 Sep 2015 07:12:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751101AbbIJHMs (ORCPT ); Thu, 10 Sep 2015 03:12:48 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:25141 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750741AbbIJHMr (ORCPT ); Thu, 10 Sep 2015 03:12:47 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 10 Sep 2015 16:12:46 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 6B9B53FC6A; Thu, 10 Sep 2015 16:12:46 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 67E8B2806E; Thu, 10 Sep 2015 16:12:46 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 601052806D; Thu, 10 Sep 2015 16:12:46 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id SAK24963; Thu, 10 Sep 2015 16:12:46 +0900 X-IronPort-AV: E=Sophos;i="5.17,502,1437404400"; d="scan'";a="195342051" Received: from mail-sg2apc01lp0240.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.240]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 10 Sep 2015 16:12:45 +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 SG2PR06MB0604.apcprd06.prod.outlook.com (10.161.10.154) with Microsoft SMTP Server (TLS) id 15.1.262.15; Thu, 10 Sep 2015 07:12:43 +0000 Message-ID: <87r3m6n43v.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 1/9][RFC] ASoC: rsnd: Add Gen3 initial 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:12:43 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0018.jpnprd01.prod.outlook.com (25.161.225.156) To SG2PR06MB0604.apcprd06.prod.outlook.com (25.161.10.154) X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0604; 2:qICUXmorREkmRDT6rVFh9Okft+Jnp6GRNG39ZlWUsdufZ+y0ndZ7fAaEIg42rP2iVXF0HnqfEWbnvrtHxkKtqmZshzwuk23cbJXf3LAKGbL8y56RDbvUqpIzrNa1MN81HhbIYp9L3nZMD6N7DwNrEhi07gnKpLUH+eDrTtwU7HE=; 3:G0vTrCK3jVHGLeJ1PKhe2UB1O94wDXQNBCglTsfYpBnK7Jn43KduVNbxwR3ozW9dgDmUphY4HLu2m1Ma8b8+5pn8GBfYPRoBCKRBJk+C8zlATviKeuEFMWEHtqhuj2zDObHPlup84I0psoA2HUldyQ==; 25:0SxRI3InTBx2k9qFAaWIH7VBHVj/Coc0Ea+coturyVNcisItPzw51XzynKvfpETwW0o1DYWzN514lf37a9w1MY3mNgx0K4NuJSV88st276Mjnr8G7aF0YMWbejwiv8DHn16+aj5/S1G/7r0foApVSf95EGkRodBEXBXbviL1567GFGNexpQHJHv0MFfZmKilUKw2vndEbA6TCZxo27l/nvp+b23uzY1DwOR1GR/4NXLBqUrk4liaL/R4f9N6gfDm4T0UP7bmN7egNycKSFVh2g== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB0604; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0604; 20:BQESLMneyH2c1bNhQMP6UpVOII223WdDjak2KCWWM0HbIarBhH4OtvYgjFN2wkU1J/+iiL7rDeJKLmjgIH2acB2Xr6/RrKCAMwFpBJk+wYE31i+HEt4I+tVLdfEkpUfESV7TLEvTEK64z2q7TZJXjG5dUdq9VFfyEUjD17J/WiSIgYoCxU4KaUjImiO0BHWUfYjuiRpyYj8303kGrtl4AbmgfvYswe76X2J9NeeliN8YG1nHc/ahjf/oMw42+PL8kjCUkvawOVtX9mu+e5W+U5Susz7muw8mlsGAYzCbMAixLRd1avrsP9qFJ7t81b99jR77fBZMxZVJ+gtn9c9douNCmX17fjHi9e+/2YdtBqsL2XB4+zW/JViiwjuj+c4AtIH+Mmm8fqUWV9IoNAQ+4ssRF5afTWVNICVsvNhgfuxYygVhN3HeUdI3Z8BSiZbKdALzGhX4VqLBvIwGPN7eDvNUHhdiL24tPFR4i+umSGfkk2MouT0XGQ0jrrxyvKuE; 4:kdf84Xmnno3W9pTAxi1BsU6XL4nWjUdC0kHH9W21vrEs9wUgxXF3DC8rdf9haNj0gsxPrJtH/QK20mfueeBoag+CQy0wwzdHjBLiLgUbmEnTfmeWLKs/dCB3+4+QvPslTFpaP+RQEnJl0csr8TvwPtPMRGNvwfsOXtVwH0/AOXyHC2V5GGdG/i6GxqqBfo3oqoGzcuqYdBOFfwMGLE/P/pejyiB0EzYFiWPyJ9Tlwa/d3wB5xuZUWXkXtRKuoriBnPtqtKhenwgj2ce8nECqVaW/2RbyMTMGOvzQVTiLHQOTA7AXCjHqwgCUyyndS+vc 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:SG2PR06MB0604; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0604; X-Forefront-PRVS: 06952FC175 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(5001860100001)(64706001)(47776003)(105586002)(54356999)(5004730100002)(189998001)(101416001)(42186005)(5007970100001)(76176999)(92566002)(62966003)(5001960100002)(46102003)(50466002)(46406003)(66066001)(36756003)(83506001)(19580395003)(19580405001)(68736005)(106356001)(50986999)(53416004)(4001540100001)(77156002)(5001830100001)(86362001)(4001350100001)(87976001)(229853001)(122386002)(23726002)(2950100001)(81156007)(5001770100001)(77096005)(69596002)(97736004)(40100003)(33646002); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0604; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB0604; 23:W/uwesKIK8G6NE+N4s9ZoaHvAvhNyFdu/EUHqHWsE?= =?us-ascii?Q?KBX3bropHHwJyQcM36zyRtjlacnqESSortfYPt/4Db4tTNCbucOKPJMEuFGQ?= =?us-ascii?Q?NdFQGYiilDE3rGbcVzqpyTcCYS6ehPKl4XeK4VcG7Z4BtQEqbYJ8TDVCLlVG?= =?us-ascii?Q?RECrorb1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IihI27H?= =?us-ascii?Q?Q7GKUn1yCaayoTDaMf1MTe8zAZXi7RIaE/C4W9zRWExZh7MGvmhzB9EcI/Io?= =?us-ascii?Q?AU8wxmRZxnvsorWww8XkhnMvYYJJKQe00gLnynKKUZK8gnd66hSKq2stRB8i?= =?us-ascii?Q?yXK2dVwEWxl1iJ7ZM6lV9sVNZRzAQXmGJ6Ci+B0ZdpN9IN9asNwz0g6RKnAo?= =?us-ascii?Q?P5iKJwfbJVraW8MoCU=3D?= X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0604; 5:SdMTvMsWk4fQxfLu/4tE7ZRnHBtdfb0yAaK9sGAWOqzxngJ+h+T95qMrPoiszZbz0lB7av+jd0PQ87a65bB6Tzd43g1enQIaSFnWWdCilGjajfC+WTfILMvetKWgth9K/2rCTRldGY8HRtgvJ5CZ3g==; 24:AaniLYj2NFtbRSbTLLZkUWvJ9CS+m5dwYRpgxA4oF3To/FRe+S8WwNq00CbGErNB7ShNYdqQvjXigVTTvo4gIbSASJEHWA30ESDYWg/3Ce0=; 20:MdgpfLi/CsYCh7PKm+OcdWzbzl8S6A3E4IJwk2hU3uEwXt3ZOcTo2q/OWL5qokl/Pa13NVA4SgPisZO75fIvciFW4XLLDk+5RHuto6Hklm0JXD2x+xA9yqmvkzXfoaCCQ4l6muosOImewXrOQMpp6MA0uBGWHG8ggrWGoVuyAFg= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2015 07:12:43.6757 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0604 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 Renesas sound Gen3 is updated version of Gen2. We need to update driver for it, but basically it should works as Gen2 compatible. This is initial support for Gen3. Gen3 specific feature will be incrementally added Signed-off-by: Kuninori Morimoto --- Documentation/devicetree/bindings/sound/renesas,rsnd.txt | 2 ++ sound/soc/sh/rcar/core.c | 1 + 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt index 776cf6a..bf6fd1a 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt @@ -4,10 +4,12 @@ Required properties: - compatible : "renesas,rcar_sound-", fallbacks "renesas,rcar_sound-gen1" if generation1, and "renesas,rcar_sound-gen2" if generation2 + "renesas,rcar_sound-gen3" if generation3 Examples with soctypes are: - "renesas,rcar_sound-r8a7778" (R-Car M1A) - "renesas,rcar_sound-r8a7790" (R-Car H2) - "renesas,rcar_sound-r8a7791" (R-Car M2-W) + - "renesas,rcar_sound-r8a7795" (R-Car H3) - reg : Should contain the register physical address. required register is SRU/ADG/SSI if generation1 diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index f3feed5..870f944 100644 --- a/sound/soc/sh/rcar/core.c +++ b/sound/soc/sh/rcar/core.c @@ -110,6 +110,7 @@ static const struct rsnd_of_data rsnd_of_data_gen2 = { static const struct of_device_id rsnd_of_match[] = { { .compatible = "renesas,rcar_sound-gen1", .data = &rsnd_of_data_gen1 }, { .compatible = "renesas,rcar_sound-gen2", .data = &rsnd_of_data_gen2 }, + { .compatible = "renesas,rcar_sound-gen3", .data = &rsnd_of_data_gen2 }, /* gen2 compatible */ {}, }; MODULE_DEVICE_TABLE(of, rsnd_of_match);