18c2ecf20Sopenharmony_ci* Atmel PDMIC driver under ALSA SoC architecture 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciRequired properties: 48c2ecf20Sopenharmony_ci- compatible 58c2ecf20Sopenharmony_ci Should be "atmel,sama5d2-pdmic". 68c2ecf20Sopenharmony_ci- reg 78c2ecf20Sopenharmony_ci Should contain PDMIC registers location and length. 88c2ecf20Sopenharmony_ci- interrupts 98c2ecf20Sopenharmony_ci Should contain the IRQ line for the PDMIC. 108c2ecf20Sopenharmony_ci- dmas 118c2ecf20Sopenharmony_ci One DMA specifiers as described in atmel-dma.txt and dma.txt files. 128c2ecf20Sopenharmony_ci- dma-names 138c2ecf20Sopenharmony_ci Must be "rx". 148c2ecf20Sopenharmony_ci- clock-names 158c2ecf20Sopenharmony_ci Required elements: 168c2ecf20Sopenharmony_ci - "pclk" peripheral clock 178c2ecf20Sopenharmony_ci - "gclk" generated clock 188c2ecf20Sopenharmony_ci- clocks 198c2ecf20Sopenharmony_ci Must contain an entry for each required entry in clock-names. 208c2ecf20Sopenharmony_ci Please refer to clock-bindings.txt. 218c2ecf20Sopenharmony_ci- atmel,mic-min-freq 228c2ecf20Sopenharmony_ci The minimal frequency that the micphone supports. 238c2ecf20Sopenharmony_ci- atmel,mic-max-freq 248c2ecf20Sopenharmony_ci The maximal frequency that the micphone supports. 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ciOptional properties: 278c2ecf20Sopenharmony_ci- pinctrl-names, pinctrl-0 288c2ecf20Sopenharmony_ci Please refer to pinctrl-bindings.txt. 298c2ecf20Sopenharmony_ci- atmel,model 308c2ecf20Sopenharmony_ci The user-visible name of this sound card. 318c2ecf20Sopenharmony_ci The default value is "PDMIC". 328c2ecf20Sopenharmony_ci- atmel,mic-offset 338c2ecf20Sopenharmony_ci The offset that should be added. 348c2ecf20Sopenharmony_ci The range is from -32768 to 32767. 358c2ecf20Sopenharmony_ci The default value is 0. 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ciExample: 388c2ecf20Sopenharmony_ci pdmic@f8018000 { 398c2ecf20Sopenharmony_ci compatible = "atmel,sama5d2-pdmic"; 408c2ecf20Sopenharmony_ci reg = <0xf8018000 0x124>; 418c2ecf20Sopenharmony_ci interrupts = <48 IRQ_TYPE_LEVEL_HIGH 7>; 428c2ecf20Sopenharmony_ci dmas = <&dma0 438c2ecf20Sopenharmony_ci (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) 448c2ecf20Sopenharmony_ci | AT91_XDMAC_DT_PERID(50))>; 458c2ecf20Sopenharmony_ci dma-names = "rx"; 468c2ecf20Sopenharmony_ci clocks = <&pdmic_clk>, <&pdmic_gclk>; 478c2ecf20Sopenharmony_ci clock-names = "pclk", "gclk"; 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci pinctrl-names = "default"; 508c2ecf20Sopenharmony_ci pinctrl-0 = <&pinctrl_pdmic_default>; 518c2ecf20Sopenharmony_ci atmel,model = "PDMIC @ sama5d2_xplained"; 528c2ecf20Sopenharmony_ci atmel,mic-min-freq = <1000000>; 538c2ecf20Sopenharmony_ci atmel,mic-max-freq = <3246000>; 548c2ecf20Sopenharmony_ci atmel,mic-offset = <0x0>; 558c2ecf20Sopenharmony_ci }; 56