Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758933AbcJQIij (ORCPT ); Mon, 17 Oct 2016 04:38:39 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:30367 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757662AbcJQIie (ORCPT ); Mon, 17 Oct 2016 04:38:34 -0400 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="223079138" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87zim32xbo.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 20/23] ASoC: add simple-graph-card document User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Rob Herring , Mark Brown CC: Linux-ALSA , Liam Girdwood , Simon , Laurent , Guennadi , Grant Likely , Frank Rowand , Linux-DT , Linux-Kernel In-Reply-To: <87shrv4c8x.wl%kuninori.morimoto.gx@renesas.com> References: <87shrv4c8x.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Mon, 17 Oct 2016 08:38:29 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0030.jpnprd01.prod.outlook.com (10.164.161.140) To SG2PR0601MB1456.apcprd06.prod.outlook.com (10.169.106.22) X-MS-Office365-Filtering-Correlation-Id: 5091dfa6-02d5-46e4-e630-08d3f668f909 X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;2:IYzpSmcCsfN9fl4pXC7pTbYRemxm2ZRL+aFXNNWz9nK/dfN8TIrTlOvT0HjLCJcMxSFFbl9ty2Uaqc1YVir1Uavo+liCYbMajUzgkQ5HBH8cV7kSQdk9oZAvk73C2zrWyeU3lVM0ucx+SuWlpi66R32Sa2PKO7U5AoPDYOelKu0dxHR/uFZ01tMZc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1JHxg/wYaeyUSPhl9K/onKb3NezBxwXpERVDz9EGdC6sUBasASAJCmqG+bhh9xUPrZ60wHjNeaSBn1TTV5z0PS7+d2+a2dUiib3vCKypYHt6ozH1D85FaS6g9N6FVb0SSIF2TIFwE8tG1UJruXo6r26WJMmjrq3pO2NPUHjg/qzGFh8xI/5VYZFP6EXYj9wRVjAdh7UmrJDmEGfBxx7hxaaM7890KvDbu5xqXlfA9+4nR5Pf1gefFlJE8xs93Vhb/m4HU1yg5CCK/ukwlNpTGxttzeD/SFd7Q9STtY4fkD20QsgEhYZBbiOC/h2TBw2QlTg2TgpydwYw0G9JmTtdA0QzSYTrlWKxjIlIBRLzU3+HxfEXvLewE9DHh31eFDc0GX38e+8dozX2CwkxDcRkJ+WdEVbH7JMBouiB5uEyaLzzi9FdDx+Tgw2+Wxt0WOwqHiwMY5J X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:SG2PR0601MB1456;BCL:0;PCL:0;RULEID:;SRVR:SG2PR0601MB1456; X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;4:10Hiyqbaee/U40HYYGg/CX9sDmqbjWMy4sby8LxjWF9jRJqez0zoqk/IZ8hWoTRL1Ct2/Irn9A+/0m0nJ7HOS3Yo07VTfW+k+iP6Af/G/0vGiGgJN6sXyPmGYoLd3giJy3ey3YJj0Nvx40DEI8SEg805pNF03ZKAunA+/eBcPQLQzCbhnXLHTFhDYGBf4GNiPVlfjQ4Ld9kUG8TXZLjbl14FqQuqIjIQT2FqGGskYcSYZAPuFiuro8cn+4dTL3a6pGGJIIXKrbhtAQYDuDqXOnfzdTvbFSNn+40GjIEW0DcGG2QBFKNUjtTKlRRx5kYrMiWJC8WyMEWQOlSI2Kc7kd5eF9hNFbZZ4Btd8pnLqNd/rocDzsHCQrClM8OisdJkUzDokoEc0ur4CTGyj3f32wRu6EyTmFZ31KnLKHwEvqo= X-Forefront-PRVS: 0098BA6C6C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(23726003)(97736004)(189998001)(4326007)(7736002)(7846002)(2906002)(19580395003)(54356999)(101416001)(76176999)(50986999)(8676002)(81156014)(69596002)(86362001)(575784001)(81166006)(229853001)(19580405001)(53416004)(8666005)(230783001)(36756003)(92566002)(50466002)(2950100002)(33646002)(305945005)(77096005)(5660300001)(7416002)(586003)(6116002)(3846002)(106356001)(46406003)(105586002)(42186005)(5001770100001)(66066001)(68736007)(83506001)(4001350100001)(47776003)(7059030)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2PR0601MB1456;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SG2PR0601MB1456;23:ObWpHOfJ86SqsNQjhh2ocYlpRJTN+PcrSCxRbCI?= =?us-ascii?Q?NRzpj6Sih5SbFtvaOhDeAg5O+sBh10QzPTjafG4m6yipvLSVsEbH2GLlwf8L?= =?us-ascii?Q?zu3fRxVjX0CJOvrhWUa+9WtoHVFfwSU3FBFXC2Q+nuFFVHdINwGr6dgWcFaK?= =?us-ascii?Q?8W7pgbHoRhofwo9YinuKfWLm1GOvCRyZjYnUWeRCu8LDgeH6GT3GxfaOyPRi?= =?us-ascii?Q?uaVP9u/a4o5dsZyMZTOMfEJUZsa+dvPgIFv8gVBFFkKZjAVgIRwHoTfCpfWl?= =?us-ascii?Q?fUfpNx2ZXXF7sSyaRKglCH+ZCN0AI9H5Ftux8q4h/Gx7uq+bbIyGOM3boCOT?= =?us-ascii?Q?utcRroTRywXiEtXwP2m0/gvbQRM8/eBYFacC8NbZ8Mew8QFO6l5EQmW1zcQ3?= =?us-ascii?Q?csRHH9H6F4cf/wtd26A71a84CUzTtaCCOJS8Bt/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=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;6:tB92bR10PyRxbHIHB45I1NZ8BbnmxanN2xK/EN3zKikOR4D94dDs3l+Af6b05SXJE+1xGNFANinwqX9FadRYxs6FYdO3yaT607hWQj1kWyZ16K0/KgLeqMAHVCjOBARA7ErjFd6yuCHYi4l2o2+/KAwdopWOdt13CRJDrgphPzPSo8Px1ny2MZyu9IJepOogfPr5BhOfX3poUV/M/gQ1j7nmcOlT+fweD8iBP3gV8kBDcmOKVWDnEHpgEIFmtFBPDtytypQ+4d7HvFUR4sLOo4rLSQ78+MzFqalYkSG9R5JPPLILPcyOC0NIHk/80SVDmf+UC+1IWZgHWhUO7UX7pJkFQE4JDXz9v38+o0//BYc=;5:+pqWmcha2XPETuODElRjqBKTI7RTguB611GLmAvSKpt+A7qfdYpmWEf1A/rIZzAYdHdkGL6mm4zYS8TjfgGPkKfMKo1jE1DzjNQAGm0FZnca13HYfeeqYJXjHigQe7y89cGsKcsOx02N7W9NV7VdHpt4GFS3MNeI9NGMW7DUGB8=;24:m8TJRKvXQ1WBbUxPvM8yb2nbO15B3gU+2QWEF4OZn/YTPeFE3ZIMH4Dxk8JqL7Pud/nMOWBH/xpBCjcOcFHXHLFn1qLMPqrsm3260bwmODg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SG2PR0601MB1456;7:f3dJMsU2iP3QB4HBaFncf4swNrvqHFo5lydJ1pghMbQNhj9PxDTNgZ3tSQfT+UB30awBSaVpzpsaGgSDnsCNTfgm0QgR25QLQw6sAnbQWIX4DV4Y/GAEkGp1ssrHfFi5rMLXf+M41MQdx57NdF8H2IBfPNhsPqWAlrJaxVRG2j9BlihwhL1+KFjZjyV05bBRbUfAT8rSiJqf2AAS/jMUa0GDlYwJvuhBNflk9w30OTzIp1yPxcPzD4Av7KHu7W6hYsiS1c4ad+MdeXGzxYErOdSpAAR18QbjjhpI5xU5loioD4FN8MhM0yGNaRdkK3SNTEoqMBzOjK5UDSMGbDsahjae3C9Skmjt+LIq5iTl+no=;20:vXdaL22syUTsZB369VQ5MUGteAGVjVdh9x9hk81u0t2gidZhP3n8SZV38Ubh6h4B0mR3X775UHRY/+O/VW8QN00u9ohMPkVKqe+a+BSMloSLcNs1CINgOCwJUDvf5MYzKYsB4EOI8ASBRBpkeP/P+YvHrq5JSVJuhxj7zTEhEWg= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2016 08:38:29.2429 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR0601MB1456 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2334 Lines: 82 From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- .../bindings/sound/simple-graph-card.txt | 65 ++++++++++++++++++++++ 1 file changed, 65 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..c191c0d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/simple-graph-card.txt @@ -0,0 +1,65 @@ +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 + +This Simple-Graph-Card should be located as CPU driver's port[s]. +And then, CPU driver need to probe it by itself. + +Required properties: + +- compatible : "asoc-simple-graph-card"; +- type : "sound"; + +Example + +ak4643: codec@12 { + compatible = "asahi-kasei,ak4643"; + ... + port { + type = "sound"; + ak4643_port: endpoint { + remote-endpoint = <&rcar_ak4643_port>; + clocks = <&audio_clock>; + }; + }; +}; + +rcar_sound { + ... + port { + compatible = "asoc-simple-graph-card"; + + simple-audio-card,format = "left_j"; + simple-audio-card,bitclock-master = <&ak4643_port>; + simple-audio-card,frame-master = <&ak4643_port>; + type = "sound"; + rcar_ak4643_port: endpoint { + remote-endpoint = <&ak4643_port>; + playback = <&ssi0 &src2 &dvc0>; + capture = <&ssi1 &src3 &dvc1>; + }; + }; +}; -- 1.9.1