atmel-pdmic.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. * Atmel PDMIC driver under ALSA SoC architecture
  2. Required properties:
  3. - compatible
  4. Should be "atmel,sama5d2-pdmic".
  5. - reg
  6. Should contain PDMIC registers location and length.
  7. - interrupts
  8. Should contain the IRQ line for the PDMIC.
  9. - dmas
  10. One DMA specifiers as described in atmel-dma.txt and dma.txt files.
  11. - dma-names
  12. Must be "rx".
  13. - clock-names
  14. Required elements:
  15. - "pclk" peripheral clock
  16. - "gclk" generated clock
  17. - clocks
  18. Must contain an entry for each required entry in clock-names.
  19. Please refer to clock-bindings.txt.
  20. - atmel,mic-min-freq
  21. The minimal frequency that the micphone supports.
  22. - atmel,mic-max-freq
  23. The maximal frequency that the micphone supports.
  24. Optional properties:
  25. - pinctrl-names, pinctrl-0
  26. Please refer to pinctrl-bindings.txt.
  27. - atmel,model
  28. The user-visible name of this sound card.
  29. The default value is "PDMIC".
  30. - atmel,mic-offset
  31. The offset that should be added.
  32. The range is from -32768 to 32767.
  33. The default value is 0.
  34. Example:
  35. pdmic@f8018000 {
  36. compatible = "atmel,sama5d2-pdmic";
  37. reg = <0xf8018000 0x124>;
  38. interrupts = <48 IRQ_TYPE_LEVEL_HIGH 7>;
  39. dmas = <&dma0
  40. (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
  41. | AT91_XDMAC_DT_PERID(50))>;
  42. dma-names = "rx";
  43. clocks = <&pdmic_clk>, <&pdmic_gclk>;
  44. clock-names = "pclk", "gclk";
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&pinctrl_pdmic_default>;
  47. atmel,model = "PDMIC @ sama5d2_xplained";
  48. atmel,mic-min-freq = <1000000>;
  49. atmel,mic-max-freq = <3246000>;
  50. atmel,mic-offset = <0x0>;
  51. };