From: Rob Herring <robh@kernel.org>
To: Stephan Gerhold <stephan@gerhold.net>
Cc: Mark Brown <broonie@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Patrick Lai <plai@codeaurora.org>,
Banajit Goswami <bgoswami@codeaurora.org>,
alsa-devel@alsa-project.org, Mark Rutland <mark.rutland@arm.com>,
devicetree@vger.kernel.org,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Kenneth Westfield <kwestfie@codeaurora.org>,
~postmarketos/upstreaming@lists.sr.ht
Subject: Re: [PATCH 1/2] dt-bindings: sound: lpass-cpu: Document DAI subnodes
Date: Tue, 14 Apr 2020 19:06:49 -0500 [thread overview]
Message-ID: <20200415000649.GA28504@bogus> (raw)
In-Reply-To: <20200406135608.126171-1-stephan@gerhold.net>
On Mon, Apr 06, 2020 at 03:56:07PM +0200, Stephan Gerhold wrote:
> The lpass-cpu driver now allows configuring the MI2S SD lines
> by defining subnodes for one of the DAIs.
>
> Document this in the device tree bindings.
>
> Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
> ---
> .../bindings/sound/qcom,lpass-cpu.txt | 23 +++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.txt b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.txt
> index 21c648328be9..df53a10502f7 100644
> --- a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.txt
> +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.txt
> @@ -30,6 +30,8 @@ Required properties:
> - reg : Must contain an address for each entry in reg-names.
> - reg-names : A list which must include the following entries:
> * "lpass-lpaif"
> +- #address-cells : Must be 1
> +- #size-cells : Must be 0
>
>
>
> @@ -37,6 +39,18 @@ Optional properties:
>
> - qcom,adsp : Phandle for the audio DSP node
>
> +By default, the driver uses up to 4 MI2S SD lines, for a total of 8 channels.
> +The SD lines to use can be configured by adding subnodes for each of the DAIs.
> +
> +Required properties for each DAI (represented by a subnode):
> +- reg : Must be one of the DAI IDs
> + (usually part of dt-bindings header)
> +- qcom,playback-sd-lines: List of serial data lines (0-3) to use for playback
0-3 for the values or number of entries?
> +- qcom,capture-sd-lines : List of serial data lines (0-3) to use for capture
> +
> +Note that adding a subnode changes the default to "no lines configured",
> +so both playback and capture lines should be configured when a subnode is added.
> +
> Example:
>
> lpass@28100000 {
> @@ -51,4 +65,13 @@ lpass@28100000 {
> reg = <0x28100000 0x10000>;
> reg-names = "lpass-lpaif";
> qcom,adsp = <&adsp>;
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + /* Optional to set different MI2S SD lines */
> + mi2s-quaternary@3 {
Normally the node name reflects the class of device. IOW, all the child
nodes should have the same name.
> + reg = <MI2S_QUATERNARY>;
> + qcom,playback-sd-lines = <0 1>;
> + };
> };
> --
> 2.26.0
>
next prev parent reply other threads:[~2020-04-15 0:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-06 13:56 [PATCH 1/2] dt-bindings: sound: lpass-cpu: Document DAI subnodes Stephan Gerhold
2020-04-06 13:56 ` [PATCH 2/2] ASoC: qcom: lpass-cpu: Make I2S SD lines configurable Stephan Gerhold
2020-04-15 0:06 ` Rob Herring [this message]
2020-04-15 8:20 ` [PATCH 1/2] dt-bindings: sound: lpass-cpu: Document DAI subnodes Stephan Gerhold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200415000649.GA28504@bogus \
--to=robh@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kwestfie@codeaurora.org \
--cc=lgirdwood@gmail.com \
--cc=mark.rutland@arm.com \
--cc=plai@codeaurora.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=stephan@gerhold.net \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).