* [RESEND PATCH v2 0/2] ASoC: atmel-pdmic: add driver for Atmel PDMIC @ 2015-12-17 9:49 Songjun Wu [not found] ` <1450345800-21299-1-git-send-email-songjun.wu-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Songjun Wu @ 2015-12-17 9:49 UTC (permalink / raw) To: broonie, nicolas.ferre Cc: linux-arm-kernel, Songjun Wu, Jaroslav Kysela, devicetree, alsa-devel, linux-kernel, Kumar Gala, Ian Campbell, Takashi Iwai, Liam Girdwood, Pawel Moll, Rob Herring, Mark Rutland The Pulse Density Modulation Inteface Controller driver includes two parts. 1) Driver code to implement the PDMIC function. 2) Device tree binding documentation, it describes how to add the PDMIC in device tree. Changes in v2: - Remove the function 'atmel_pdmic_codec_get_remap', since the regmap is initialized in the core. - Replace 'if' with 'switch' in function 'atmel_pdmic_codec_dai_hw_params'. - Fix the coding style issue in function 'atmel_pdmic_dt_init', 'atmel_pdmic_interrupt','pdmic_put_mic_volsw', 'atmel_pdmic_codec_probe', 'pdmic_get_mic_volsw' and 'atmel_pdmic_codec_dai_hw_params'. Songjun Wu (2): ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller ASoC: atmel-classd: DT binding for PDMIC driver .../devicetree/bindings/sound/atmel-pdmic.txt | 55 ++ sound/soc/atmel/Kconfig | 9 + sound/soc/atmel/Makefile | 2 + sound/soc/atmel/atmel-pdmic.c | 738 ++++++++++++++++++++ sound/soc/atmel/atmel-pdmic.h | 80 +++ 5 files changed, 884 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/atmel-pdmic.txt create mode 100644 sound/soc/atmel/atmel-pdmic.c create mode 100644 sound/soc/atmel/atmel-pdmic.h -- 1.7.9.5 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <1450345800-21299-1-git-send-email-songjun.wu-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org>]
* [RESEND PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver [not found] ` <1450345800-21299-1-git-send-email-songjun.wu-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> @ 2015-12-17 9:50 ` Songjun Wu 2015-12-19 4:17 ` Rob Herring [not found] ` <20151219040913.D0F442C02FD@rob-hp-laptop> 0 siblings, 2 replies; 6+ messages in thread From: Songjun Wu @ 2015-12-17 9:50 UTC (permalink / raw) To: broonie-DgEjT+Ai2ygdnm+yROfE0A, nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Songjun Wu, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA DT binding documentation for this new ASoC driver. Signed-off-by: Songjun Wu <songjun.wu-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> --- Changes in v2: None .../devicetree/bindings/sound/atmel-pdmic.txt | 55 ++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/atmel-pdmic.txt 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 = "atmel,sama5d2-pdmic"; + reg = <0xf8018000 0x124>; + interrupts = <48 IRQ_TYPE_LEVEL_HIGH 7>; + dmas = <&dma0 + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) + | AT91_XDMAC_DT_PERID(50))>; + dma-names = "rx"; + clocks = <&pdmic_clk>, <&pdmic_gclk>; + clock-names = "pclk", "gclk"; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pdmic_default>; + atmel,model = "PDMIC @ sama5d2_xplained"; + atmel,mic-min-freq = <1000000>; + atmel,mic-max-freq = <3246000>; + atmel,mic-offset = <0x0>; + }; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver 2015-12-17 9:50 ` [RESEND PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver Songjun Wu @ 2015-12-19 4:17 ` Rob Herring [not found] ` <20151219040913.D0F442C02FD@rob-hp-laptop> 1 sibling, 0 replies; 6+ messages in thread From: Rob Herring @ 2015-12-19 4:17 UTC (permalink / raw) To: Songjun Wu Cc: broonie, nicolas.ferre, linux-arm-kernel, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree, linux-kernel On Thu, Dec 17, 2015 at 05:50:00PM +0800, Songjun Wu wrote: > DT binding documentation for this new ASoC driver. > > Signed-off-by: Songjun Wu <songjun.wu@atmel.com> > --- > > Changes in v2: None > > .../devicetree/bindings/sound/atmel-pdmic.txt | 55 ++++++++++++++++++++ > 1 file changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/atmel-pdmic.txt > > 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. Please append units to these 2 (-hz). > +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". When and why would this be different than the default? "label" can be used here if this is really needed. > +- 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 = "atmel,sama5d2-pdmic"; > + reg = <0xf8018000 0x124>; > + interrupts = <48 IRQ_TYPE_LEVEL_HIGH 7>; > + dmas = <&dma0 > + (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) > + | AT91_XDMAC_DT_PERID(50))>; > + dma-names = "rx"; > + clocks = <&pdmic_clk>, <&pdmic_gclk>; > + clock-names = "pclk", "gclk"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pdmic_default>; > + atmel,model = "PDMIC @ sama5d2_xplained"; > + atmel,mic-min-freq = <1000000>; > + atmel,mic-max-freq = <3246000>; > + atmel,mic-offset = <0x0>; > + }; > -- > 1.7.9.5 > ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <20151219040913.D0F442C02FD@rob-hp-laptop>]
* Re: [RESEND PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver [not found] ` <20151219040913.D0F442C02FD@rob-hp-laptop> @ 2015-12-19 11:30 ` Mark Brown 2015-12-22 18:37 ` Rob Herring 0 siblings, 1 reply; 6+ messages in thread From: Mark Brown @ 2015-12-19 11:30 UTC (permalink / raw) To: Rob Herring Cc: Songjun Wu, nicolas.ferre-AIFe0yeh4nAAvxtiuMwx3w, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA [-- Attachment #1: Type: text/plain, Size: 528 bytes --] On Fri, Dec 18, 2015 at 01:56:21PM -0600, Rob Herring wrote: > On Thu, Dec 17, 2015 at 05:50:00PM +0800, Songjun Wu wrote: > > +- atmel,model > > + The user-visible name of this sound card. > > + The default value is "PDMIC". > When and why would this be different than the default? > "label" can be used here if this is really needed. The plastics for the system are often very important for audio configuration - we need userspace to be able to distinguish between systems that are identical even on the electrical level. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [RESEND PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver 2015-12-19 11:30 ` Mark Brown @ 2015-12-22 18:37 ` Rob Herring [not found] ` <CAL_JsqKTNJ6Y0OUydkef3aYUO2jzDb30myvGJau-RBoJ3qe8hQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Rob Herring @ 2015-12-22 18:37 UTC (permalink / raw) To: Mark Brown Cc: Songjun Wu, Nicolas Ferre, linux-arm-kernel@lists.infradead.org, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org On Sat, Dec 19, 2015 at 5:30 AM, Mark Brown <broonie@kernel.org> wrote: > On Fri, Dec 18, 2015 at 01:56:21PM -0600, Rob Herring wrote: >> On Thu, Dec 17, 2015 at 05:50:00PM +0800, Songjun Wu wrote: > >> > +- atmel,model >> > + The user-visible name of this sound card. >> > + The default value is "PDMIC". > >> When and why would this be different than the default? > >> "label" can be used here if this is really needed. > > The plastics for the system are often very important for audio > configuration - we need userspace to be able to distinguish between > systems that are identical even on the electrical level. Okay. That is exactly what label is for, so please use it. Rob ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAL_JsqKTNJ6Y0OUydkef3aYUO2jzDb30myvGJau-RBoJ3qe8hQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [RESEND PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver [not found] ` <CAL_JsqKTNJ6Y0OUydkef3aYUO2jzDb30myvGJau-RBoJ3qe8hQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2015-12-22 23:49 ` Mark Brown 0 siblings, 0 replies; 6+ messages in thread From: Mark Brown @ 2015-12-22 23:49 UTC (permalink / raw) To: Rob Herring Cc: Songjun Wu, Nicolas Ferre, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org [-- Attachment #1: Type: text/plain, Size: 644 bytes --] On Tue, Dec 22, 2015 at 12:37:24PM -0600, Rob Herring wrote: > On Sat, Dec 19, 2015 at 5:30 AM, Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote: > >> "label" can be used here if this is really needed. > > The plastics for the system are often very important for audio > > configuration - we need userspace to be able to distinguish between > > systems that are identical even on the electrical level. > Okay. That is exactly what label is for, so please use it. Can you send fixes for this please? There's rather a lot of existing bindings using the current scheme, together with some subsystem code to help parse them. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-12-22 23:49 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-12-17 9:49 [RESEND PATCH v2 0/2] ASoC: atmel-pdmic: add driver for Atmel PDMIC Songjun Wu [not found] ` <1450345800-21299-1-git-send-email-songjun.wu-AIFe0yeh4nAAvxtiuMwx3w@public.gmane.org> 2015-12-17 9:50 ` [RESEND PATCH v2 2/2] ASoC: atmel-classd: DT binding for PDMIC driver Songjun Wu 2015-12-19 4:17 ` Rob Herring [not found] ` <20151219040913.D0F442C02FD@rob-hp-laptop> 2015-12-19 11:30 ` Mark Brown 2015-12-22 18:37 ` Rob Herring [not found] ` <CAL_JsqKTNJ6Y0OUydkef3aYUO2jzDb30myvGJau-RBoJ3qe8hQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2015-12-22 23:49 ` Mark Brown
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).