davinci-mcasp-audio.txt 2.3 KB

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