fsl-sai.txt 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Freescale Synchronous Audio Interface (SAI).
  2. The SAI is based on I2S module that used communicating with audio codecs,
  3. which provides a synchronous audio interface that supports fullduplex
  4. serial interfaces with frame synchronization such as I2S, AC97, TDM, and
  5. codec/DSP interfaces.
  6. Required properties:
  7. - compatible : Compatible list, contains "fsl,vf610-sai",
  8. "fsl,imx6sx-sai" or "fsl,imx6ul-sai"
  9. - reg : Offset and length of the register set for the device.
  10. - clocks : Must contain an entry for each entry in clock-names.
  11. - clock-names : Must include the "bus" for register access and
  12. "mclk1", "mclk2", "mclk3" for bit clock and frame
  13. clock providing.
  14. - dmas : Generic dma devicetree binding as described in
  15. Documentation/devicetree/bindings/dma/dma.txt.
  16. - dma-names : Two dmas have to be defined, "tx" and "rx".
  17. - pinctrl-names : Must contain a "default" entry.
  18. - pinctrl-NNN : One property must exist for each entry in
  19. pinctrl-names. See ../pinctrl/pinctrl-bindings.txt
  20. for details of the property values.
  21. - lsb-first : Configures whether the LSB or the MSB is transmitted
  22. first for the fifo data. If this property is absent,
  23. the MSB is transmitted first as default, or the LSB
  24. is transmitted first.
  25. - fsl,sai-synchronous-rx: This is a boolean property. If present, indicating
  26. that SAI will work in the synchronous mode (sync Tx
  27. with Rx) which means both the transimitter and the
  28. receiver will send and receive data by following
  29. receiver's bit clocks and frame sync clocks.
  30. - fsl,sai-asynchronous: This is a boolean property. If present, indicating
  31. that SAI will work in the asynchronous mode, which
  32. means both transimitter and receiver will send and
  33. receive data by following their own bit clocks and
  34. frame sync clocks separately.
  35. Optional properties:
  36. - big-endian : Boolean property, required if all the SAI
  37. registers are big-endian rather than little-endian.
  38. Optional properties (for mx6ul):
  39. - fsl,sai-mclk-direction-output: This is a boolean property. If present,
  40. indicates that SAI will output the SAI MCLK clock.
  41. Note:
  42. - If both fsl,sai-asynchronous and fsl,sai-synchronous-rx are absent, the
  43. default synchronous mode (sync Rx with Tx) will be used, which means both
  44. transimitter and receiver will send and receive data by following clocks
  45. of transimitter.
  46. - fsl,sai-asynchronous and fsl,sai-synchronous-rx are exclusive.
  47. Example:
  48. sai2: sai@40031000 {
  49. compatible = "fsl,vf610-sai";
  50. reg = <0x40031000 0x1000>;
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&pinctrl_sai2_1>;
  53. clocks = <&clks VF610_CLK_PLATFORM_BUS>,
  54. <&clks VF610_CLK_SAI2>,
  55. <&clks 0>, <&clks 0>;
  56. clock-names = "bus", "mclk1", "mclk2", "mclk3";
  57. dma-names = "tx", "rx";
  58. dmas = <&edma0 0 VF610_EDMA_MUXID0_SAI2_TX>,
  59. <&edma0 0 VF610_EDMA_MUXID0_SAI2_RX>;
  60. big-endian;
  61. lsb-first;
  62. };