fsl-sai.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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" or "fsl,imx6sx-sai".
  8. - reg: Offset and length of the register set for the device.
  9. - clocks: Must contain an entry for each entry in clock-names.
  10. - clock-names : Must include the "bus" for register access and "mclk1" "mclk2"
  11. "mclk3" for bit clock and frame clock providing.
  12. - dmas : Generic dma devicetree binding as described in
  13. Documentation/devicetree/bindings/dma/dma.txt.
  14. - dma-names : Two dmas have to be defined, "tx" and "rx".
  15. - pinctrl-names: Must contain a "default" entry.
  16. - pinctrl-NNN: One property must exist for each entry in pinctrl-names.
  17. See ../pinctrl/pinctrl-bindings.txt for details of the property values.
  18. - big-endian: Boolean property, required if all the FTM_PWM registers
  19. are big-endian rather than little-endian.
  20. - lsb-first: Configures whether the LSB or the MSB is transmitted first for
  21. the fifo data. If this property is absent, the MSB is transmitted first as
  22. default, or the LSB is transmitted first.
  23. - fsl,sai-synchronous-rx: This is a boolean property. If present, indicating
  24. that SAI will work in the synchronous mode (sync Tx with Rx) which means
  25. both the transimitter and receiver will send and receive data by following
  26. receiver's bit clocks and frame sync clocks.
  27. - fsl,sai-asynchronous: This is a boolean property. If present, indicating
  28. that SAI will work in the asynchronous mode, which means both transimitter
  29. and receiver will send and receive data by following their own bit clocks
  30. and frame sync clocks separately.
  31. Note:
  32. - If both fsl,sai-asynchronous and fsl,sai-synchronous-rx are absent, the
  33. default synchronous mode (sync Rx with Tx) will be used, which means both
  34. transimitter and receiver will send and receive data by following clocks
  35. of transimitter.
  36. - fsl,sai-asynchronous and fsl,sai-synchronous-rx are exclusive.
  37. Example:
  38. sai2: sai@40031000 {
  39. compatible = "fsl,vf610-sai";
  40. reg = <0x40031000 0x1000>;
  41. pinctrl-names = "default";
  42. pinctrl-0 = <&pinctrl_sai2_1>;
  43. clocks = <&clks VF610_CLK_PLATFORM_BUS>,
  44. <&clks VF610_CLK_SAI2>,
  45. <&clks 0>, <&clks 0>;
  46. clock-names = "bus", "mclk1", "mclk2", "mclk3";
  47. dma-names = "tx", "rx";
  48. dmas = <&edma0 0 VF610_EDMA_MUXID0_SAI2_TX>,
  49. <&edma0 0 VF610_EDMA_MUXID0_SAI2_RX>;
  50. big-endian;
  51. lsb-first;
  52. };