fsl,ssi.txt 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Freescale Synchronous Serial Interface
  2. The SSI is a serial device that communicates with audio codecs. It can
  3. be programmed in AC97, I2S, left-justified, or right-justified modes.
  4. Required properties:
  5. - compatible: Compatible list, should contain one of the following
  6. compatibles:
  7. fsl,mpc8610-ssi
  8. fsl,imx51-ssi
  9. fsl,imx35-ssi
  10. fsl,imx21-ssi
  11. - cell-index: The SSI, <0> = SSI1, <1> = SSI2, and so on.
  12. - reg: Offset and length of the register set for the device.
  13. - interrupts: <a b> where a is the interrupt number and b is a
  14. field that represents an encoding of the sense and
  15. level information for the interrupt. This should be
  16. encoded based on the information in section 2)
  17. depending on the type of interrupt controller you
  18. have.
  19. - fsl,fifo-depth: The number of elements in the transmit and receive FIFOs.
  20. This number is the maximum allowed value for SFCSR[TFWM0].
  21. - clocks: "ipg" - Required clock for the SSI unit
  22. "baud" - Required clock for SSI master mode. Otherwise this
  23. clock is not used
  24. Required are also ac97 link bindings if ac97 is used. See
  25. Documentation/devicetree/bindings/sound/soc-ac97link.txt for the necessary
  26. bindings.
  27. Optional properties:
  28. - codec-handle: Phandle to a 'codec' node that defines an audio
  29. codec connected to this SSI. This node is typically
  30. a child of an I2C or other control node.
  31. - fsl,fiq-stream-filter: Bool property. Disabled DMA and use FIQ instead to
  32. filter the codec stream. This is necessary for some boards
  33. where an incompatible codec is connected to this SSI, e.g.
  34. on pca100 and pcm043.
  35. - dmas: Generic dma devicetree binding as described in
  36. Documentation/devicetree/bindings/dma/dma.txt.
  37. - dma-names: Two dmas have to be defined, "tx" and "rx", if fsl,imx-fiq
  38. is not defined.
  39. - fsl,mode: The operating mode for the AC97 interface only.
  40. "ac97-slave" - AC97 mode, SSI is clock slave
  41. "ac97-master" - AC97 mode, SSI is clock master
  42. - fsl,ssi-asynchronous:
  43. If specified, the SSI is to be programmed in asynchronous
  44. mode. In this mode, pins SRCK, STCK, SRFS, and STFS must
  45. all be connected to valid signals. In synchronous mode,
  46. SRCK and SRFS are ignored. Asynchronous mode allows
  47. playback and capture to use different sample sizes and
  48. sample rates. Some drivers may require that SRCK and STCK
  49. be connected together, and SRFS and STFS be connected
  50. together. This would still allow different sample sizes,
  51. but not different sample rates.
  52. - fsl,playback-dma: Phandle to a node for the DMA channel to use for
  53. playback of audio. This is typically dictated by SOC
  54. design. See the notes below.
  55. Only used on Power Architecture.
  56. - fsl,capture-dma: Phandle to a node for the DMA channel to use for
  57. capture (recording) of audio. This is typically dictated
  58. by SOC design. See the notes below.
  59. Only used on Power Architecture.
  60. Child 'codec' node required properties:
  61. - compatible: Compatible list, contains the name of the codec
  62. Child 'codec' node optional properties:
  63. - clock-frequency: The frequency of the input clock, which typically comes
  64. from an on-board dedicated oscillator.
  65. Notes on fsl,playback-dma and fsl,capture-dma:
  66. On SOCs that have an SSI, specific DMA channels are hard-wired for playback
  67. and capture. On the MPC8610, for example, SSI1 must use DMA channel 0 for
  68. playback and DMA channel 1 for capture. SSI2 must use DMA channel 2 for
  69. playback and DMA channel 3 for capture. The developer can choose which
  70. DMA controller to use, but the channels themselves are hard-wired. The
  71. purpose of these two properties is to represent this hardware design.
  72. The device tree nodes for the DMA channels that are referenced by
  73. "fsl,playback-dma" and "fsl,capture-dma" must be marked as compatible with
  74. "fsl,ssi-dma-channel". The SOC-specific compatible string (e.g.
  75. "fsl,mpc8610-dma-channel") can remain. If these nodes are left as
  76. "fsl,elo-dma-channel" or "fsl,eloplus-dma-channel", then the generic Elo DMA
  77. drivers (fsldma) will attempt to use them, and it will conflict with the
  78. sound drivers.