atmel-classd.txt 1.5 KB

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