From patchwork Fri May 27 07:00:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9137755 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1FD896075A for ; Fri, 27 May 2016 07:00:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 108BC27D10 for ; Fri, 27 May 2016 07:00:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04E3A28093; Fri, 27 May 2016 07:00:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE5C728061 for ; Fri, 27 May 2016 07:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754762AbcE0HAp (ORCPT ); Fri, 27 May 2016 03:00:45 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:43841 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754145AbcE0HAo (ORCPT ); Fri, 27 May 2016 03:00:44 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 27 May 2016 16:00:42 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 646BB60972; Fri, 27 May 2016 16:00:42 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 4337718070; Fri, 27 May 2016 16:00:42 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 293221806F; Fri, 27 May 2016 16:00:42 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id SAB01145; Fri, 27 May 2016 16:00:42 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="211756647" Received: from mail-pu1apc01lp0020.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.20]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 27 May 2016 16:00:40 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qUdJrFRV+sKpagaAniNcoBVVzy9JLP+ZgO/vKA5OjxU=; b=S5N7+6ixrJluGeGEoAaqPD5Uj2+FFJM7/vq6J076LfK1oOMdXwYxtDQ8FsJX4aDOh/aXue9plccu4ydirNFPUxULOEgJdtj5QQmg7AkHa2X2TLttzGIMLTDQX97NxtQwiNk6dGtxngtcvGSMiGBtNekRDyaZ1LO3fD5W9w2HEQE= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by SG2PR06MB1711.apcprd06.prod.outlook.com (10.167.82.141) with Microsoft SMTP Server (TLS) id 15.1.497.12; Fri, 27 May 2016 07:00:38 +0000 Message-ID: <8737p4kn38.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 1/2][RFC] ASoC: add simple-graph-card document User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown CC: Simon , Linux-Renesas , Linux-ALSA , Liam Girdwood , Laurent , Lars-Peter Clausen In-Reply-To: <874m9kkn5f.wl%kuninori.morimoto.gx@renesas.com> References: <874m9kkn5f.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Fri, 27 May 2016 07:00:38 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0009.jpnprd01.prod.outlook.com (10.161.74.147) To SG2PR06MB1711.apcprd06.prod.outlook.com (10.167.82.141) X-MS-Office365-Filtering-Correlation-Id: bcf9c282-82ee-458b-3095-08d385fc9c92 X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1711; 2:+213PkujRo7MXS0X3IjBFaHbNJ/X89zEuQl5s/zNjHpWY+z2cDcgHj2Hxu112Ec3ABxbIUU8K8gO/Dewgq+lNok9JYC9QsZ4V2bBbQGJO+WN+nifYxUQ8+Xe1UXDK8aQSDgWantRwtZT9HmmQQ4j9XW8ZQ5/5nxRJG1dUqMb9ny9l/t/OA8oQhHKFw/2jg9C; 3:Aynl5b4qbH1cTzyeN4OOHnmvjyuLyYCsUMGQXi2f1AwW87MoUYQrkgfTMca5Qel2OoEaj71i1RKXJO+BwBhny5kl4l8PzFOE+n7vn7pf1PT9KiEYoaCTXO0nusrr0K6k; 25:s8JtxdHNtqDckU33XAlmAbY7tCz+b+CyR7SoIJRzwv33hvGNIKLLXwtSXUSGv+jhoOmVnfnZ5Q7i54wj+wx0/7EDdIBU0juoNuWgqZ56L9WnmwXNsAIZSCXiTBEFCcxEnGlT4pPzR1mnqz6020sW1EaAvP4TzKziqssbwEsXXPiDyNS+mH+L9f8YAwA7Ab60VaxN7SlahRnsXRICyDLPOY+4Lc0/+CkAVeeA9OtxxXqHxXoC/CMgtyDz7R+C9qkzZ68AufQLDS1gFYnrE0gYYW3hb5P8rg+bsQp9EKOL6Ei3pxjWWySe4Dxs9zxDtF257WQ7EY2aBdQwj4I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qi3MoU6djtdhpYK6sc72On6HdOTk2trE644EmrB4CquA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:SG2PR06MB1711; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB1711; X-Forefront-PRVS: 09555FB1AD X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(5008740100001)(2906002)(77096005)(36756003)(54356999)(19580395003)(19580405001)(83506001)(50466002)(66066001)(5004730100002)(3846002)(189998001)(8676002)(81166006)(586003)(4001350100001)(4326007)(33646002)(229853001)(47776003)(23726003)(46406003)(110136002)(50986999)(76176999)(42186005)(86362001)(2950100001)(92566002)(53416004)(230783001)(6116002)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB1711; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB1711; 23:UCl1EX0gRzwsbuTnGLnVIc2lnNeJ/2wR7cvGS7d0T?= =?us-ascii?Q?9ZjtC65mCUW6cR6mW5aEV7raORlDi0bcICIQ06OK3oobIo5qwKTt6CkXyWgp?= =?us-ascii?Q?lmxW0Wxic/Rl0C7lGOe73JLPea7vjQpckCH9oYOSrpcDE8EURuGsYM70LYmM?= =?us-ascii?Q?Pa8VScvaYHwA+BMGFJbEHQwW7eJVxmJAhe5KVTZQ9dF3zttXnmUmwUHG2vUZ?= =?us-ascii?Q?M/Sac+ufUA39y4HARYmKtWioh8ohpUphsXY6i5gD9gRhZfOO/U7J395MTvV+?= =?us-ascii?Q?G8731VzbCe+RgSEQ/b6XhuA69pNSc9+sKL4cPAsXOeIXocrHFsvlOS5iLLYe?= =?us-ascii?Q?ptfs/6o3yNzzrJ/roZAkPfLbezvalS+xMRFC6f9BMDP08nhYYiBzMln7aY1T?= =?us-ascii?Q?FzORY9vaMMvedbhfhqWFqhww5wKsBhz2MizZqQvPzHTt8XPB9GcRtyoCNkGE?= =?us-ascii?Q?pqTa2TeM6QA68Q4RY1wWmGmIxcvmmy/6JvLSbeJaK+xuNIbcJJzcZj/UQNuw?= =?us-ascii?Q?zwG9dliztDmBt2wilBp/NyBZFYUpWMJ57r0ETD7KNJXStxOP5C2sF80niIBK?= =?us-ascii?Q?oGJq08n+E8W9v3jf0v9L+/l2yN5zB6od8PL4ji8AsNwpy72ptlQ8Ek2++lJH?= =?us-ascii?Q?rrE7eojr5nRjd/zag1RBijo401q5y7P3sY91H/WRitlwDaBwTXLjR2egr3/O?= =?us-ascii?Q?+xhgDPsvXjSWpF5COYWBvX3E82j4k84eypcrorOUDQ/9np0JkwPJ0wBvMrhQ?= =?us-ascii?Q?2+5WjLQKBgvIqtFBPOQuoZWjBFA1yHrf+KepXbZdSasgtbwyYasn4Nd+USbv?= =?us-ascii?Q?GjarpxvnehzgThx7YGVmdmEaFKooDHvug2IClQLMZl4/D0pRq09LYrt5jVJn?= =?us-ascii?Q?dGUw7Rp5TTVH9vZuUW+8JKc2LzgqEo9+XNO+HgbWK67dm43FYVRnGmdpB9IQ?= =?us-ascii?Q?j8J34YHSw/PbBumB+vggeyhheNGxJ+zmyaoS43rvdZ/iz+ZyLCCeDGZPY2uE?= =?us-ascii?Q?g8=3D?= X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1711; 5:pWqH4kolqNIpakKcMJMX44Hux16CMwf4bjRtd/Gjm3IUcAotqMyxEw4KdxX8IYd4keJsHHpce4Z/jI4sovqx5eLwFbE4m1IHEUiFtZ1CHZcGOROwdOS6xBWHI8K5STIc8bJTxKmlO4KO4LRJRqymyA==; 24:LqTFAJAjq1cieiPD6SuYzsIru6G9qgGdBf/r7uVMi8neaBqEVgw0y33CMsL57mzPMefFf6zKOe/sfQ/uUykVZwTJAjql2VCQIrj2E3pHotE=; 7:gxMv2u8KpXKr0YaGvaoapTJcwGplQxttG4A0T558nmkkjtMk8H5RDlmGDe3wYL5P07H+hTHG/9CBt63HDya0yiI+nAPLLuA0XS44vy0oV+G2wy1cPDfLnutaLhAgpeWrqjzXFUT9AJRYh1RESiFhQ2HJK2Vme2p0Mhz4lpphupqdRdMwo15f6sbsoO+ewUjl; 20:WK64NsQpXAzT8k0p7njZjw+t5HBWanmtCry4ThAKwbodUB1FHNqIKj9igCtFc7eoeSuKIpcpbEHdfLF52bqq+giawNBoHkGILL8gy2a8qJUrmOkSe17FnXVJGR5eBm+ebxLf5cDMvZL33dDLK8I+t5mFAdO8cwK5ACEHBfBMxlU= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2016 07:00:38.5544 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1711 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Kuninori Morimoto --- .../bindings/sound/simple-graph-card.txt | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/simple-graph-card.txt diff --git a/Documentation/devicetree/bindings/sound/simple-graph-card.txt b/Documentation/devicetree/bindings/sound/simple-graph-card.txt new file mode 100644 index 0000000..b03d2f9 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/simple-graph-card.txt @@ -0,0 +1,54 @@ +Simple-Graph-Card: + +Simple-Graph-Card specifies audio DAI connections of SoC <-> codec. +It is based on common bindings for device graphs. +see ${LINUX}/Documentation/devicetree/bindings/graph.txt + +Basically, Simple-Graph-Card is same as Simple-Card, but using graph style. +see ${LINUX}/Documentation/devicetree/bindings/sound/simple-card.txt + +Below are same as Simple-Card. + +- simple-audio-card,name +- simple-audio-card,widgets +- simple-audio-card,routing +- simple-audio-card,mclk-fs +- simple-audio-card,hp-det-gpio +- simple-audio-card,mic-det-gpio +- simple-audio-card,format +- simple-audio-card,frame-master +- simple-audio-card,bitclock-master +- simple-audio-card,bitclock-inversion +- simple-audio-card,frame-inversion +- simple-audio-card,mclk-fs +- simple-audio-card,dai-tdm-slot-num +- simple-audio-card,dai-tdm-slot-width +- clocks / system-clock-frequency + +Example + +ak4643: codec@12 { + compatible = "asahi-kasei,ak4643"; + ... + port { + ak4643_port: endpoint { + remote-endpoint = <&rcar_ak4643_port>; + clocks = <&audio_clock>; + }; + }; +}; + +rcar_sound { + ... + port { + simple-audio-card,format = "left_j"; + simple-audio-card,bitclock-master = <&ak4643_port>; + simple-audio-card,frame-master = <&ak4643_port>; + + rcar_ak4643_port: endpoint { + remote-endpoint = <&ak4643_port>; + playback = <&ssi0 &src2 &dvc0>; + capture = <&ssi1 &src3 &dvc1>; + }; + }; +};