atmel-classd.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. Optional properties:
  19. - pinctrl-names, pinctrl-0
  20. Please refer to pinctrl-bindings.txt.
  21. - atmel,model
  22. The user-visible name of this sound complex.
  23. The default value is "CLASSD".
  24. - atmel,pwm-type
  25. PWM modulation type, "single" or "diff".
  26. The default value is "single".
  27. - atmel,non-overlap-time
  28. Set non-overlapping time, the unit is nanosecond(ns).
  29. There are four values,
  30. <5>, <10>, <15>, <20>, the default value is <10>.
  31. Non-overlapping will be disabled if not specified.
  32. Example:
  33. classd: classd@fc048000 {
  34. compatible = "atmel,sama5d2-classd";
  35. reg = <0xfc048000 0x100>;
  36. interrupts = <59 IRQ_TYPE_LEVEL_HIGH 7>;
  37. dmas = <&dma0
  38. (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1)
  39. | AT91_XDMAC_DT_PERID(47))>;
  40. dma-names = "tx";
  41. clocks = <&classd_clk>, <&classd_gclk>, <&audio_pll_pmc>;
  42. clock-names = "pclk", "gclk", "aclk";
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&pinctrl_classd_default>;
  45. atmel,model = "classd @ SAMA5D2-Xplained";
  46. atmel,pwm-type = "diff";
  47. atmel,non-overlap-time = <10>;
  48. };