From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Ferre Subject: Re: [PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver Date: Thu, 17 Dec 2015 11:06:05 +0100 Message-ID: <5672890D.7050401@atmel.com> References: <1450345498-20130-1-git-send-email-songjun.wu@atmel.com> <1450345498-20130-2-git-send-email-songjun.wu@atmel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1450345498-20130-2-git-send-email-songjun.wu@atmel.com> Sender: linux-kernel-owner@vger.kernel.org To: Songjun Wu , broonie@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: devicetree@vger.kernel.org It seems that the $subject is not correct. Le 17/12/2015 10:44, Songjun Wu a =E9crit : > DT binding documentation for this new ASoC driver. >=20 > Signed-off-by: Songjun Wu > --- >=20 > Changes in v2: None >=20 > .../devicetree/bindings/sound/atmel-pdmic.txt | 55 ++++++++++= ++++++++++ > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/atmel-pdm= ic.txt >=20 > diff --git a/Documentation/devicetree/bindings/sound/atmel-pdmic.txt = b/Documentation/devicetree/bindings/sound/atmel-pdmic.txt > new file mode 100644 > index 0000000..e0875f1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/atmel-pdmic.txt > @@ -0,0 +1,55 @@ > +* Atmel PDMIC driver under ALSA SoC architecture > + > +Required properties: > +- compatible > + Should be "atmel,sama5d2-pdmic". > +- reg > + Should contain PDMIC registers location and length. > +- interrupts > + Should contain the IRQ line for the PDMIC. > +- dmas > + One DMA specifiers as described in atmel-dma.txt and dma.txt files. > +- dma-names > + Must be "rx". > +- clock-names > + Required elements: > + - "pclk" peripheral clock > + - "gclk" generated clock > +- clocks > + Must contain an entry for each required entry in clock-names. > + Please refer to clock-bindings.txt. > +- atmel,mic-min-freq > + The minimal frequency that the micphone supports. > +- atmel,mic-max-freq > + The maximal frequency that the micphone supports. > + > +Optional properties: > +- pinctrl-names, pinctrl-0 > + Please refer to pinctrl-bindings.txt. > +- atmel,model > + The user-visible name of this sound card. > + The default value is "PDMIC". > +- atmel,mic-offset > + The offset that should be added. > + The range is from -32768 to 32767. > + The default value is 0. > + > +Example: > + pdmic@f8018000 { > + compatible =3D "atmel,sama5d2-pdmic"; > + reg =3D <0xf8018000 0x124>; > + interrupts =3D <48 IRQ_TYPE_LEVEL_HIGH 7>; > + dmas =3D <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) > + | AT91_XDMAC_DT_PERID(50))>; > + dma-names =3D "rx"; > + clocks =3D <&pdmic_clk>, <&pdmic_gclk>; > + clock-names =3D "pclk", "gclk"; > + > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&pinctrl_pdmic_default>; > + atmel,model =3D "PDMIC @ sama5d2_xplained"; > + atmel,mic-min-freq =3D <1000000>; > + atmel,mic-max-freq =3D <3246000>; > + atmel,mic-offset =3D <0x0>; > + }; >=20 --=20 Nicolas Ferre