davinci-mcasp-audio.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. - interrupts : Interrupt number for McASP
  13. - op-mode : I2S/DIT ops mode.
  14. - tdm-slots : Slots for TDM operation.
  15. - num-serializer : Serializers used by McASP.
  16. - serial-dir : A list of serializer pin mode. The list number should be equal
  17. to "num-serializer" parameter. Each entry is a number indication
  18. serializer pin direction. (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. Example:
  31. mcasp0: mcasp0@1d00000 {
  32. compatible = "ti,da830-mcasp-audio";
  33. #address-cells = <1>;
  34. #size-cells = <0>;
  35. reg = <0x100000 0x3000>;
  36. reg-names "mpu";
  37. interrupts = <82 83>;
  38. op-mode = <0>; /* MCASP_IIS_MODE */
  39. tdm-slots = <2>;
  40. num-serializer = <16>;
  41. serial-dir = <
  42. 0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */
  43. 0 0 0 0
  44. 0 0 0 1
  45. 2 0 0 0 >;
  46. tx-num-evt = <1>;
  47. rx-num-evt = <1>;
  48. };