From: Rob Herring <robh@kernel.org>
To: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
devicetree@vger.kernel.org, alsa-devel@alsa-project.org,
Lars-Peter Clausen <lars@metafoo.de>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-iio@vger.kernel.org, Takashi Iwai <tiwai@suse.com>,
Jaroslav Kysela <perex@perex.cz>, Mark Brown <broonie@kernel.org>,
Jonathan Cameron <jic23@kernel.org>,
Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
Hartmut Knaack <knaack.h@gmx.de>,
Lee Jones <lee.jones@linaro.org>,
linux-arm-kernel@lists.infradead.org,
Alexandre Torgue <alexandre.torgue@st.com>
Subject: Re: [PATCH 1/7] MFD: add bindings for STM32 DFSDM driver
Date: Fri, 27 Jan 2017 14:53:26 -0600 [thread overview]
Message-ID: <20170127205326.rom465uqfp6i33kr@rob-hp-laptop> (raw)
In-Reply-To: <1485189145-29576-2-git-send-email-arnaud.pouliquen@st.com>
On Mon, Jan 23, 2017 at 05:32:19PM +0100, Arnaud Pouliquen wrote:
> Add bindings information for STM32 Digital Filter for Sigma Delta modulators MFD driver
>
> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
> ---
> .../devicetree/bindings/mfd/stm32-dfsdm.txt | 68 ++++++++++++++++++++++
> 1 file changed, 68 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mfd/stm32-dfsdm.txt
>
> diff --git a/Documentation/devicetree/bindings/mfd/stm32-dfsdm.txt b/Documentation/devicetree/bindings/mfd/stm32-dfsdm.txt
> new file mode 100644
> index 0000000..e0b45ee
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/stm32-dfsdm.txt
> @@ -0,0 +1,68 @@
> +STMicroelectronics STM32 Digital Filter for Sigma Delta Modulator (DFSDM)
> +ulti-function device.
> +
> +The STM32 DFSDM device is a multifunction device that handles the DFSDM IP.
> +
> +The DFSDM IP allows to add processing on Sigma Delta ADC based on SinC filters.
> +For this, a pool of m filters can be connected to a pool of n channels.
> +For STM32H7 : m = 4, n = 8.
> +
> +Each channel n is assigned to the SPI or Manchester interface n or n + 1.
> +Channels 0 to 2 can also be connected to ADC IP instance 1 to 3.
> +Filtering result is stored in a left aligned register, with 8 LSB reserved for
> +the input channel ID.
> +
> +Each filter instance supports two contexts to manage conversions, each one has
> +its own configurable sequence and trigger:
> +- regular conversion: used for single or continuous conversion.
> +- injected conversions: used for triggered conversion.
> +
> +Interfaces supported:
> +- sigma delta ADCs trough IIO framework.
> +- PDM microphones through ASoC framework.
Bindings describe h/w, not Linux subsystems.
> +
> +Required properties:
> +- compatible: Must be "st,stm32h7-dfsdm".
> +- reg: Specifies the DFSDM block register address and length.
> +- interrupts: IRQ lines connected to each DFSDM filter instance.
> +- clocks: IP and serial interfaces clocking. Should be set according
> + to rcc clock ID and "clock-names".
> +- clock-names: Input clock name "dfsdm_clk" must be defined,
> + "audio_clk" is optional. If defined CLKOUT is based on the audio
> + clock, else "dfsdm_clk" is used.
_clk is redundant.
> +
> +Optional properties:
> +- st,clkout-freq: clkout clock frequency (Hz).This clock must be set according
> + to "clock" property. Frequency must be a multiple of the rcc
> + clock frequency. If not, clkout frequency will not be
> + accurate.
What is CLKOUT connected to and will you need to describe that in DT?
> +- pinctrl-names: set to "default".
> +- pinctrl-0: List of phandles pointing to pin configuration nodes for DFSDM
> + module.
> + For Pinctrl properties see ../pinctrl/pinctrl-bindings.txt
> +Example :
> + dfsdm: dfsdm@4400D000 {
> + compatible = "st,stm32h7-dfsdm";
> + reg = <0x40017000 0x400>;
> + interrupts = <110>, <111>, <112>, <113>;
> + clocks = <&timer_clk>;
> + clock-names = "dfsdm_clk";
> + pinctrl-0 = <&dfsdm_ch0 &dfsdm_ch1>;
> + pinctrl-names = "default";
> + st,clkout-freq = <2480000>;
> +
> + iio_dfsdm0: iio-dfsdm@0 {
adc {
> + compatible = "st,stm32-dfsdm-adc";
> + #io-channel-cells = <1>;
> + reg = <0>;
> + status = "disabled";
> + };
> + dai_dfsdm0: dfsdm-audio@0 {
digital-mic {
> + compatible = "st,stm32-dfsdm-audio";
> + #sound-dai-cells = <0>;
> + reg = <0>;
You can't have 2 children with the same unit address. Just drop reg and
the unit address.
> + dmas = <&dmamux1 101 0x400 0x00>;
> + dma-names = "rx";
> + status = "disabled";
> + };
> + };
> --
> 1.9.1
>
next prev parent reply other threads:[~2017-01-27 20:53 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 [this message]
2017-01-30 13:16 ` Arnaud Pouliquen
[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
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
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
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=20170127205326.rom465uqfp6i33kr@rob-hp-laptop \
--to=robh@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=jic23@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=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