davinci-mcasp-audio.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Texas Instruments McASP controller
  2. Required properties:
  3. - compatible :
  4. "ti,dm646x-mcasp-audio" : for DM646x platforms
  5. "ti,da830-mcasp-audio" : for both DA830 & DA850 platforms
  6. "ti,am33xx-mcasp-audio" : for AM33xx platforms (AM33xx, TI81xx)
  7. - reg : Should contain reg specifiers for the entries in the reg-names property.
  8. - reg-names : Should contain:
  9. * "mpu" for the main registers (required). For compatibility with
  10. existing software, it is recommended this is the first entry.
  11. * "dat" for separate data port register access (optional).
  12. - op-mode : I2S/DIT ops mode. 0 for I2S mode. 1 for DIT mode used for S/PDIF,
  13. IEC60958-1, and AES-3 formats.
  14. - tdm-slots : Slots for TDM operation. Indicates number of channels transmitted
  15. or received over one serializer.
  16. - serial-dir : A list of serializer configuration. Each entry is a number
  17. indication for serializer pin direction.
  18. (0 - INACTIVE, 1 - TX, 2 - RX)
  19. - dmas: two element list of DMA controller phandles and DMA request line
  20. ordered pairs.
  21. - dma-names: identifier string for each DMA request line in the dmas property.
  22. These strings correspond 1:1 with the ordered pairs in dmas. The dma
  23. identifiers must be "rx" and "tx".
  24. Optional properties:
  25. - ti,hwmods : Must be "mcasp<n>", n is controller instance starting 0
  26. - tx-num-evt : FIFO levels.
  27. - rx-num-evt : FIFO levels.
  28. - sram-size-playback : size of sram to be allocated during playback
  29. - sram-size-capture : size of sram to be allocated during capture
  30. - interrupts : Interrupt numbers for McASP, currently not used by the driver
  31. - interrupt-names : Known interrupt names are "tx" and "rx"
  32. - pinctrl-0: Should specify pin control group used for this controller.
  33. - pinctrl-names: Should contain only one value - "default", for more details
  34. please refer to pinctrl-bindings.txt
  35. Example:
  36. mcasp0: mcasp0@1d00000 {
  37. compatible = "ti,da830-mcasp-audio";
  38. reg = <0x100000 0x3000>;
  39. reg-names "mpu";
  40. interrupts = <82>, <83>;
  41. interrupts-names = "tx", "rx";
  42. op-mode = <0>; /* MCASP_IIS_MODE */
  43. tdm-slots = <2>;
  44. serial-dir = <
  45. 0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */
  46. 0 0 0 0
  47. 0 0 0 1
  48. 2 0 0 0 >;
  49. tx-num-evt = <1>;
  50. rx-num-evt = <1>;
  51. };