From: Jonathan Cameron <jic23@kernel.org>
To: Arnaud Pouliquen <arnaud.pouliquen@st.com>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-iio@vger.kernel.org, alsa-devel@alsa-project.org,
Lee Jones <lee.jones@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Hartmut Knaack <knaack.h@gmx.de>,
Lars-Peter Clausen <lars@metafoo.de>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>
Cc: Alexandre Torgue <alexandre.torgue@st.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>
Subject: Re: [PATCH 6/7] ASoC: add bindings for STM32 DFSDM driver
Date: Sun, 29 Jan 2017 12:19:15 +0000 [thread overview]
Message-ID: <f0f446ea-97a0-8fef-bec5-aefeed42a85a@kernel.org> (raw)
In-Reply-To: <1485189145-29576-7-git-send-email-arnaud.pouliquen@st.com>
On 23/01/17 16:32, Arnaud Pouliquen wrote:
> This patch adds documentation of device tree bindings for the
> STM32 DFSDM ASoC driver.
>
> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
> ---
> .../devicetree/bindings/sound/st,sm32-adfsdm.txt | 84 ++++++++++++++++++++++
> 1 file changed, 84 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/st,sm32-adfsdm.txt
>
> diff --git a/Documentation/devicetree/bindings/sound/st,sm32-adfsdm.txt b/Documentation/devicetree/bindings/sound/st,sm32-adfsdm.txt
> new file mode 100644
> index 0000000..a1d27b8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/st,sm32-adfsdm.txt
> @@ -0,0 +1,84 @@
> +STMicroelectronics STM32 ADFSDM ASoC DAI device driver.
> +
> +STM32 ADFSDM ASoC is a sigma delta audio interface for digital microphone.
> +It has to be declared in device-tree as a subnode of the DFSDM mfd node.
> +
> +It offers possibility to record several mono microphones, with an option to
> +synchronize all microphones on a main one (that must be piped to filter 0)
> +Audio interface can be exposed through the generic ASoC simple card.
> +
> +2 Dmics can be connected on one SPI interface instance n.
> +Convention is that the DMIC that strobes data on rising edge is connected to the
> +corresponding DFSDM channel n; while the Dmic that strobes data on falling edge
> +is connected to the channel n-1. Simple card property "bitclock-inversion = <1>"
> +is used to specify that microphone strobes data on falling edge.
> +
> +SPI interface allows to be scheduled by an external SPI clock. To use it
> +simple card properties "bitclock-master = <&codec>" and "system-clock-frequency"
> +have to be defined in dai-link node.
> +
> +Required properties:
> +- compatible: Must be "st,stm32-dfsdm-audio",
> +- reg: Specifies the DFSDM filter instance.
> +- interrupts: DFSDM filter instance interrupt line.
> +- dma: DMA controller phandle and DMA request line associated to the
> + filter instance ( specified by the field "reg")
> +- dma-names: must be "rx"
> +
> +- st,input-id: Id of the SPI/Manchester interface used.
> +- st,dai-filter-order: SinC filter order from 0 to 5.
> + 0: FastSinC
> + [1-5]: order 1 to 5.
> + For audio purpose it is recommended to use order 3 to 5.
Interesting for audio you consider it feature of the hardware, but for ADC you
consider that this should be userspace controlled.
Personally I'd like to see more detail on those filters but if this is convention
in Asoc then so be it.
> +
> +Optional properties:
> + - st,dai0-synchronized: Set to 1 to synchronize DAI with DFSDM instance 0.
> +
> +Exemple of a card with 2 Dmics synchronized and connected on SPI interface 1.
Example.
> +
> + dfsdm: dfsdm@4400D000 {
> + dai_dfsdm0: dfsdm-audio@0 {
> + compatible = "st,stm32-dfsdm-audio";
> + #sound-dai-cells = <0>;
> + reg = <0>;
> + dmas = <&dmamux1 101 0x400 0x00>;
> + dma-names = "rx";
> + st,input-id = <0>;
> + st,dai-filter-order = <5>;
> + };
> + dai_dfsdm1: dfsdm-audio@1 {
> + compatible = "st,stm32-dfsdm-audio";
> + #sound-dai-cells = <0>;
> + reg = <0>;
> + dmas = <&dmamux1 102 0x400 0x00>;
> + dma-names = "rx";
> + st,input-id = <0>;
> + st,dai0-synchronized = <1>;
> + st,dai-filter-order = <5>;
> + };
> + };
> + sound_dfsdm_pdm {
> + compatible = "simple-audio-card";
> + simple-audio-card,name = "dfsdm_pdm";
> + status = "okay";
> +
> + dfsdm0_mic0: simple-audio-card,dai-link@0 {
> + format = "pdm";
> + cpu {
> + sound-dai = <&dai_dfsdm0>;
> + };
> + dmic0_codec: codec {
> + sound-dai = <&dmic0>;
> + };
> + };
> + dfsdm0_mic1: simple-audio-card,dai-link@1 {
> + format = "pdm";
> + bitclock-inversion = <1>;
> + cpu {
> + sound-dai = <&dai_dfsdm1>;
> + };
> + codec {
> + sound-dai = <&dmic1>;
> + };
> + };
> + };
>
Jonathan
next prev parent reply other threads:[~2017-01-29 12:19 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-23 16:32 [PATCH 0/7] Add STM32 DFSDM support Arnaud Pouliquen
2017-01-23 16:32 ` [PATCH 1/7] MFD: add bindings for STM32 DFSDM driver Arnaud Pouliquen
2017-01-27 20:53 ` Rob Herring
2017-01-30 13:16 ` Arnaud Pouliquen
2017-01-23 16:32 ` [PATCH 4/7] IIO: add STM32 DFSDM ADC support Arnaud Pouliquen
2017-01-29 12:15 ` Jonathan Cameron
2017-01-30 16:02 ` Arnaud Pouliquen
2017-01-23 16:32 ` [PATCH 5/7] ASoC: dmaengine_pcm: add copy support Arnaud Pouliquen
[not found] ` <1485189145-29576-6-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-01-23 17:50 ` Mark Brown
2017-01-24 2:14 ` [alsa-devel] " kbuild test robot
[not found] ` <1485189145-29576-1-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-01-23 16:32 ` [PATCH 2/7] MFD: add STM32 DFSDM support Arnaud Pouliquen
[not found] ` <1485189145-29576-3-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-01-24 0:36 ` [alsa-devel] " kbuild test robot
2017-01-24 8:22 ` Lee Jones
2017-01-24 8:30 ` Arnaud Pouliquen
[not found] ` <283c0e48-55e2-6516-369d-91dc72d12f73-qxv4g6HH51o@public.gmane.org>
2017-01-24 11:36 ` Lee Jones
2017-01-24 13:32 ` Arnaud Pouliquen
2017-01-27 10:15 ` Lee Jones
2017-01-27 13:45 ` Arnaud Pouliquen
[not found] ` <7b3eb38d-4fd1-2006-7423-94f2a7b38b27-qxv4g6HH51o@public.gmane.org>
2017-01-27 17:17 ` Lee Jones
2017-01-29 12:28 ` Jonathan Cameron
2017-01-29 14:19 ` Lars-Peter Clausen
2017-01-29 14:34 ` Lars-Peter Clausen
2017-01-30 11:13 ` Arnaud Pouliquen
[not found] ` <2e6c07cb-f67b-64ff-530b-6bc2073272a9-qxv4g6HH51o@public.gmane.org>
2017-02-04 12:15 ` Jonathan Cameron
2017-01-31 15:30 ` Arnaud Pouliquen
2017-01-30 11:23 ` Arnaud Pouliquen
2017-01-29 17:50 ` Mark Brown
2017-01-30 18:14 ` Arnaud Pouliquen
2017-01-29 11:20 ` Jonathan Cameron
2017-01-29 11:53 ` Jonathan Cameron
2017-01-30 15:08 ` Arnaud Pouliquen
2017-01-30 20:44 ` Jonathan Cameron
2017-01-23 16:32 ` [PATCH 3/7] IIO: add bindings for STM32 DFSDM ADC driver Arnaud Pouliquen
2017-01-29 11:58 ` Jonathan Cameron
2017-01-29 12:42 ` Jonathan Cameron
2017-01-31 14:10 ` Arnaud Pouliquen
[not found] ` <d9747aa9-e3c2-f280-7dca-8862e8e74e6e-qxv4g6HH51o@public.gmane.org>
2017-02-04 12:09 ` Jonathan Cameron
2017-01-30 15:26 ` Arnaud Pouliquen
2017-01-23 16:32 ` [PATCH 6/7] ASoC: add bindings for STM32 DFSDM driver Arnaud Pouliquen
2017-01-29 12:19 ` Jonathan Cameron [this message]
2017-01-30 17:32 ` Arnaud Pouliquen
[not found] ` <71612ea0-c9d0-a85e-2d58-72609df57e35-qxv4g6HH51o@public.gmane.org>
2017-02-04 12:13 ` Jonathan Cameron
2017-01-23 16:32 ` [PATCH 7/7] ASoC: add STM32 DFSDM support Arnaud Pouliquen
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=f0f446ea-97a0-8fef-bec5-aefeed42a85a@kernel.org \
--to=jic23@kernel.org \
--cc=alexandre.torgue@st.com \
--cc=alsa-devel@alsa-project.org \
--cc=arnaud.pouliquen@st.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=perex@perex.cz \
--cc=pmeerw@pmeerw.net \
--cc=robh+dt@kernel.org \
--cc=tiwai@suse.com \
/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).