davinci-mcasp-audio.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. - num-serializer : Serializers used by McASP.
  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, currently not used by the driver
  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. Example:
  37. mcasp0: mcasp0@1d00000 {
  38. compatible = "ti,da830-mcasp-audio";
  39. reg = <0x100000 0x3000>;
  40. reg-names "mpu";
  41. interrupts = <82>, <83>;
  42. interrupts-names = "tx", "rx";
  43. op-mode = <0>; /* MCASP_IIS_MODE */
  44. tdm-slots = <2>;
  45. num-serializer = <16>;
  46. serial-dir = <
  47. 0 0 0 0 /* 0: INACTIVE, 1: TX, 2: RX */
  48. 0 0 0 0
  49. 0 0 0 1
  50. 2 0 0 0 >;
  51. tx-num-evt = <1>;
  52. rx-num-evt = <1>;
  53. };