atmel-classd.txt 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. * Atmel ClassD driver under ALSA SoC architecture
  2. Required properties:
  3. - compatible
  4. Should be "atmel,sama5d2-classd".
  5. - reg
  6. Should contain ClassD registers location and length.
  7. - interrupts
  8. Should contain the IRQ line for the ClassD.
  9. - dmas
  10. One DMA specifiers as described in atmel-dma.txt and dma.txt files.
  11. - dma-names
  12. Must be "tx".
  13. - clock-names
  14. Tuple listing input clock names.
  15. Required elements: "pclk", "gclk" and "aclk".
  16. - clocks
  17. Please refer to clock-bindings.txt.
  18. - assigned-clocks
  19. Should be <&classd_gclk>.
  20. - assigned-clock-parents
  21. Should be <&audio_pll_pmc>.
  22. Optional properties:
  23. - pinctrl-names, pinctrl-0
  24. Please refer to pinctrl-bindings.txt.
  25. - atmel,model
  26. The user-visible name of this sound complex.
  27. The default value is "CLASSD".
  28. - atmel,pwm-type
  29. PWM modulation type, "single" or "diff".
  30. The default value is "single".
  31. - atmel,non-overlap-time
  32. Set non-overlapping time, the unit is nanosecond(ns).
  33. There are four values,
  34. <5>, <10>, <15>, <20>, the default value is <10>.
  35. Non-overlapping will be disabled if not specified.
  36. Example:
  37. classd: classd@fc048000 {
  38. compatible = "atmel,sama5d2-classd";
  39. reg = <0xfc048000 0x100>;
  40. interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>;
  41. dmas = <&dma0
  42. (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
  43. | AT91_XDMAC_DT_PERID(47))>;
  44. dma-names = "tx";
  45. clocks = <&classd_clk>, <&classd_gclk>, <&audio_pll_pmc>;
  46. clock-names = "pclk", "gclk", "aclk";
  47. assigned-clocks = <&classd_gclk>;
  48. assigned-clock-parents = <&audio_pll_pmc>;
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&pinctrl_classd_default>;
  51. atmel,model = "classd @ SAMA5D2-Xplained";
  52. atmel,pwm-type = "diff";
  53. atmel,non-overlap-time = <10>;
  54. };