Received: by 2002:a05:7412:a9a8:b0:f9:92ae:e617 with SMTP id o40csp16051rdh; Wed, 20 Dec 2023 14:26:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqEKxo2AQPFmrG1grvJYPgL63ksluhYVcb7N6tzF2eNHATvQCaRD8EOSQ2Ey/tLfySUwAU X-Received: by 2002:a17:906:5354:b0:a23:73c6:82bc with SMTP id j20-20020a170906535400b00a2373c682bcmr1904677ejo.68.1703111163053; Wed, 20 Dec 2023 14:26:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703111163; cv=none; d=google.com; s=arc-20160816; b=R0+WjWXeKTqQLULq266TSRjEufgqxBs2oqStXcTMuE9jnl8D6FeS4WDC9ZUIUBh2+R 7ipLRWJ8NcJ3vmyTCmV3NaLwdIwJp12B9B72xyZD7402PZRSPjXWWy3TeYJGkGI0Q0wM AWk6XvREt4sltOSLMi/+hax5GIWGdYpN8usuN0QJpICdBbjrwOAcBZYaOh9W0eld+bEb OI3U1HgpfZfNs3QRUy/LzZSvYhqkIZlHoy6MikXRIeHk43/tzVoZyk2Ukz2Auj7keBTL Q4sMrjRY5yN2ApWpNvca60eodEwviNTjvxFWeFUIsu15+dt6dy+UDGITndgqeREwwnzE yzwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1h/XaEeDaZcD8vZh7rn3RmFX/kDRc8egVFJyhmTeG/A=; fh=idQeTfLE/NYExvynfXj14M0HD51yHHF8nUYu3TgDac4=; b=b94dID9LVctS2F2jlQeTyG1W0qhZH1Ps0yfR5jJZRS/rdgboJDn4qVEPHwCAFDy/e5 Syd5sZbOrcUDzQnnF0+GtPoCio3CZK6JtgU0bshxOmyL6uDJg8kSyTrx6h83+4/Tnklj zVS8Rb6sWFyUTes4h6C0XB2bVWxcIutPP8tsdlb7SW0SRWAOil0QcE/9qZXxe3mnqj00 Z7OMj3qf4gpRklXrlSi7KrI9N8k9gv51QEiTep2IJksI7xv9EVRTv8VG/mVjSre5p+5K 97M1WcqQMfXa1PYt1qG2PjEGBgUNDBTQCEskq0fKVSEQXNTCuUIAOYlDLdol9IY2Tyke 2+3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ix6Sr9v7; spf=pass (google.com: domain of linux-kernel+bounces-7513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id wh16-20020a170906fd1000b00a2357fa1b9fsi216960ejb.409.2023.12.20.14.26.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 14:26:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ix6Sr9v7; spf=pass (google.com: domain of linux-kernel+bounces-7513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C19781F23B51 for ; Wed, 20 Dec 2023 22:26:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F8554A9B0; Wed, 20 Dec 2023 22:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ix6Sr9v7" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B6114A988; Wed, 20 Dec 2023 22:25:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F192C433C8; Wed, 20 Dec 2023 22:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703111153; bh=1W+/BlCYRBWNRRrkM97ARP2nwR2lz+YRFgCUZtpqkN8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ix6Sr9v7aw0PTbt2XOtlQZh/iXeGLJYw1/NpnOXYP78dPf5N30NFmShIzimCfTOei +4Gl7fC7H5o6pjGsQzBNxS7rto/V4+rmBHZUFeoUcaCFyXSPdBEaIT/kJdh7BlcpxU xLyYUwauttasDqPy9pz4cj52MVaA8NZqwtG4/DrTEzswiCp5qxF8VLBspJwdhvj1JJ omAOry4wDGpkQc3VIgkMBUr+XZ2uUuZhkFm/Kp4NitzqwiU0pwyphpbMyaSzEGqvxB DI2urkt2cLKypkUwnDmxiwXbUoqxoujasKuOONvCn1vkFFBuTn5fv2tmjTUApwniVq 6gPf/UbsMRO0Q== Received: (nullmailer pid 1236168 invoked by uid 1000); Wed, 20 Dec 2023 22:25:50 -0000 Date: Wed, 20 Dec 2023 16:25:50 -0600 From: Rob Herring To: Elinor Montmasson Cc: Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org, Philip-Dylan Subject: Re: [PATCHv3 RESEND 10/10] ASoC: dt-bindings: fsl-asoc-card: add compatible for generic codec Message-ID: <20231220222550.GA1232936-robh@kernel.org> References: <20231218124058.2047167-1-elinor.montmasson@savoirfairelinux.com> <20231218124058.2047167-11-elinor.montmasson@savoirfairelinux.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231218124058.2047167-11-elinor.montmasson@savoirfairelinux.com> On Mon, Dec 18, 2023 at 01:40:58PM +0100, Elinor Montmasson wrote: > Add documentation about new dts bindings following new support > for compatible "fsl,imx-audio-generic". > > Some CPU DAI don't require a real audio codec. The new compatible > "fsl,imx-audio-generic" allows using the driver with codec drivers > SPDIF DIT and SPDIF DIR as dummy codecs. > It also allows using not pre-configured audio codecs which > don't require specific control through a codec driver. > > The new dts properties give the possibility to set some parameters > about the CPU DAI usually set through the codec configuration. > > Signed-off-by: Elinor Montmasson > Co-authored-by: Philip-Dylan Gleonec > --- > .../bindings/sound/fsl-asoc-card.txt | 28 ++++++++++++++++++- > 1 file changed, 27 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt > index 4e8dbc5abfd1..f137ef2154e3 100644 > --- a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt > +++ b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt > @@ -17,6 +17,9 @@ Note: The card is initially designed for those sound cards who use AC'97, I2S > and PCM DAI formats. However, it'll be also possible to support those non > AC'97/I2S/PCM type sound cards, such as S/PDIF audio and HDMI audio, as > long as the driver has been properly upgraded. > + To use CPU DAIs that do not require a codec such as an S/PDIF controller, > + or to use a DAI to output or capture raw I2S/TDM data, you can > + use the compatible "fsl,imx-audio-generic". > > > The compatible list for this generic sound card currently: > @@ -48,6 +51,8 @@ The compatible list for this generic sound card currently: > > "fsl,imx-audio-nau8822" > > + "fsl,imx-audio-generic" > + > Required properties: > > - compatible : Contains one of entries in the compatible list. > @@ -56,7 +61,11 @@ Required properties: > > - audio-cpu : The phandle of an CPU DAI controller > > - - audio-codec : The phandle of an audio codec > + - audio-codec : The phandle of an audio codec. > + If using the "fsl,imx-audio-generic" compatible, > + give instead a pair of phandles with the > + spdif_transmitter first (driver SPDIF DIT) and the > + spdif_receiver second (driver SPDIF DIR). > > Optional properties: > > @@ -87,6 +96,23 @@ Optional properties: > - frame-inversion : dai-link uses frame clock inversion, for details see simple-card.yaml. > - bitclock-inversion : dai-link uses bit clock inversion, for details see simple-card.yaml. > - mclk-id : main clock id, specific for each card configuration. > + For multi-codec configurations, an array of ids can be > + given, one for each codec. > + > +Optional, relevant only with the "fsl,imx-audio-generic" compatible: > + > + - cpu-slot-width : Indicates a specific TDM slot width in bits. > + - cpu-slot-num : Indicates a specific number of TDM slots per frame. Pretty sure I've seen other bindings with TDM slot properties. A sign we need something common if we don't already have something. > + > + - cpu-sysclk-freq-rx : Frequency of the CPU DAI sys clock for Rx. > + - cpu-sysclk-freq-tx : Frequency of the CPU DAI sys clock for Tx. > + > + - cpu-sysclk-dir-rx-out : Boolean property. Specifies sys clock direction > + as 'out' on initialization for Rx. > + If not set, default direction is 'in'. > + - cpu-sysclk-dir-tx-out : Boolean property. Specifies sys clock direction > + as 'out' on initialization for Tx. > + If not set, default direction is 'in'. Looks like clock stuff. Use the clock binding. Rob