From: Arnaud Pouliquen <arnaud.pouliquen@st.com>
To: Rob Herring <robh@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Olivier MOYSAN <olivier.moysan@st.com>,
"kernel@stlinux.com" <kernel@stlinux.com>,
Liam Girdwood <lgirdwood@gmail.com>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
Takashi Iwai <tiwai@suse.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Mark Brown <broonie@kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
Hartmut Knaack <knaack.h@gmx.de>,
Jonathan Cameron <jic23@kernel.org>,
Alexandre TORGUE <alexandre.torgue@st.com>
Subject: Re: [PATCH v3 10/11] ASoC: add bindings for stm32 DFSDM filter
Date: Wed, 29 Mar 2017 14:42:38 +0200 [thread overview]
Message-ID: <473f36db-0c0e-00d2-3610-c24bf3f1d541@st.com> (raw)
In-Reply-To: <20170324145208.6tj5swol5du5lkyc@rob-hp-laptop>
Hello Rob,
Sorry for this dirty/crappy patch...
Please find answers below
Thanks
Arnaud
On 03/24/2017 03:52 PM, Rob Herring wrote:
> On Fri, Mar 17, 2017 at 03:08:23PM +0100, Arnaud Pouliquen wrote:
>> Add bindings that describes audio settings to support
>> Digital Filter for pulse density modulation(PDM) microphone.
>>
>> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
>> ---
>> V2->V3:
>> Fixes based on V2 comments
>>
>> .../devicetree/bindings/sound/st,stm32-adfsdm.txt | 41 ++++++++++++++++++++++
>> 1 file changed, 41 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/sound/st,stm32-adfsdm.txt
>>
>> diff --git a/Documentation/devicetree/bindings/sound/st,stm32-adfsdm.txt b/Documentation/devicetree/bindings/sound/st,stm32-adfsdm.txt
>> new file mode 100644
>> index 0000000..ab610bc
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/sound/st,stm32-adfsdm.txt
>> @@ -0,0 +1,40 @@
>> +STMicroelectronics audio DFSDM DT bindings
>> +
>> +This driver supports audio PDM microphone capture through Digital Filter format
>> +Sigma Delta modulators (DFSDM).
>> +
>> +Required properties:
>> + - compatible: "st,stm32h7-adfsdm".
>> +
>> + - #sound-dai-cells : Must be equal to 0
>> +
>> + - io-channels : phandle to iio dfsdm instance node.
>> +
>> +
>> +Example of a simple sound card using audio DFSDM node.
>> +
>> + dmic0: dmic_@0 {
>
> Drop the '_' and unit address.
>
>> + compatible = "dmic-codec";
>> + #sound-dai-cells = <0>;
>> + };
>> +
>> + asoc-pdm@0 {
>
> asoc is a Linux term. Drop the unit address.
>
>> + compatible = "st,stm32h7-adfsdm";
>
> Is this a separate block from the ADC? A drawing of the h/w blocks and
> connections would help.
I don't know how to explain it...So don't hesitate is still not clear.
On DFSDM we can connect 2 ADC types:
- Generic Sigma delta(SD) ADC for analog to digital conversion
- Digital microphones for audio capture.
In both cases, an SPI or Manchester bus is used to transfer 1-bit stream
to DFSDM.
1) In case of SD ADC, The link is described in IIO declaration using
"io-channels" property ( [04/11] IIO: add DT bindings for stm32 DFSDM
filter)
2) For audio purpose, the link is done by the simple or the graph card
So this device exposes the Digital audio interface (DAI) associated to
the DFSDM ADC.
Link between the DFSDM DAI and the DFSDM IIO device is done through the
"io-channels" property.
>
>> + #sound-dai-cells = <0>;
>> + io-channels = <&dfsdm_adc0 0>;
>> + };
>> +
>> + sound_dfsdm_pdm {
>
> sound-card {
>
>> + compatible = "simple-audio-card";
>> + simple-audio-card,name = "dfsdm_pdm";
>> +
>> + dfsdm0_mic0: simple-audio-card,dai-link@0 {
>
> I'd suggest moving to the graph card.
yes should be in V4
>
>> + format = "pdm";
>> + cpu {
>> + sound-dai = <&asoc_pdm1>;
>
> This phandle doesn't point to anything.
>
>> + };
>> + dmic0_codec: codec {
>> + sound-dai = <&dmic0>;
>> + };
>> + };
>> + };
>> \ No newline at end of file
>
> ^^^
>
>> --
>> 1.9.1
>>
next prev parent reply other threads:[~2017-03-29 12:42 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-17 14:08 [PATCH v3 00/11] Add STM32 DFSDM support Arnaud Pouliquen
2017-03-17 14:08 ` [PATCH v3 01/11] iio: Add hardware consumer support Arnaud Pouliquen
2017-06-06 10:15 ` Arnaud Pouliquen
2017-09-11 9:01 ` Arnaud Pouliquen
2017-03-17 14:08 ` [PATCH v3 02/11] IIO: Add DT bindings for sigma delta adc modulator Arnaud Pouliquen
[not found] ` <1489759704-30217-3-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-03-24 14:21 ` Rob Herring
2017-03-17 14:08 ` [PATCH v3 03/11] IIO: ADC: add sigma delta modulator support Arnaud Pouliquen
2017-03-20 6:24 ` [alsa-devel] " kbuild test robot
2017-03-20 6:51 ` kbuild test robot
2017-03-17 14:08 ` [PATCH v3 04/11] IIO: add DT bindings for stm32 DFSDM filter Arnaud Pouliquen
2017-03-24 14:37 ` Rob Herring
2017-03-17 14:08 ` [PATCH v3 05/11] IIO: ADC: add stm32 DFSDM support for Sigma delta ADC Arnaud Pouliquen
[not found] ` <1489759704-30217-6-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-03-19 22:25 ` Jonathan Cameron
2017-03-20 11:24 ` Arnaud Pouliquen
2017-03-25 15:53 ` Jonathan Cameron
2017-03-20 7:22 ` [alsa-devel] " kbuild test robot
2017-03-20 8:04 ` kbuild test robot
2017-03-17 14:08 ` [PATCH v3 06/11] IIO: ADC: add stm32 DFSDM support for PDM microphone Arnaud Pouliquen
[not found] ` <1489759704-30217-7-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-03-19 22:38 ` Jonathan Cameron
2017-03-20 11:29 ` Arnaud Pouliquen
2017-03-25 15:59 ` Jonathan Cameron
2017-03-28 7:45 ` Arnaud Pouliquen
2017-03-17 14:08 ` [PATCH v3 07/11] IIO: consumer: allow to set buffer sizes Arnaud Pouliquen
[not found] ` <1489759704-30217-8-git-send-email-arnaud.pouliquen-qxv4g6HH51o@public.gmane.org>
2017-03-19 22:44 ` Jonathan Cameron
2017-03-20 11:30 ` Arnaud Pouliquen
2017-03-25 16:01 ` Jonathan Cameron
2017-03-20 6:22 ` [alsa-devel] " kbuild test robot
2017-03-17 14:08 ` [PATCH v3 08/11] ASoC: Add bindings for DMIC codec driver Arnaud Pouliquen
2017-03-24 14:46 ` Rob Herring
2017-03-27 11:59 ` Mark Brown
2017-03-17 14:08 ` [PATCH v3 09/11] ASoC: codec: add DT support in dmic codec Arnaud Pouliquen
2017-03-17 14:08 ` [PATCH v3 10/11] ASoC: add bindings for stm32 DFSDM filter Arnaud Pouliquen
2017-03-24 14:52 ` Rob Herring
2017-03-29 12:42 ` Arnaud Pouliquen [this message]
2017-03-17 14:08 ` [PATCH v3 11/11] ASoC: stm32: add DFSDM DAI support Arnaud Pouliquen
2017-03-17 16:36 ` [PATCH v3 00/11] 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=473f36db-0c0e-00d2-3610-c24bf3f1d541@st.com \
--to=arnaud.pouliquen@st.com \
--cc=alexandre.torgue@st.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=kernel@stlinux.com \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--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=olivier.moysan@st.com \
--cc=pmeerw@pmeerw.net \
--cc=robh@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).