fsl,esai.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Freescale Enhanced Serial Audio Interface (ESAI) Controller
  2. The Enhanced Serial Audio Interface (ESAI) provides a full-duplex serial port
  3. for serial communication with a variety of serial devices, including industry
  4. standard codecs, Sony/Phillips Digital Interface (S/PDIF) transceivers, and
  5. other DSPs. It has up to six transmitters and four receivers.
  6. Required properties:
  7. - compatible : Compatible list, must contain "fsl,imx35-esai" or
  8. "fsl,vf610-esai"
  9. - reg : Offset and length of the register set for the device.
  10. - interrupts : Contains the spdif interrupt.
  11. - dmas : Generic dma devicetree binding as described in
  12. Documentation/devicetree/bindings/dma/dma.txt.
  13. - dma-names : Two dmas have to be defined, "tx" and "rx".
  14. - clocks : Contains an entry for each entry in clock-names.
  15. - clock-names : Includes the following entries:
  16. "core" The core clock used to access registers
  17. "extal" The esai baud clock for esai controller used to
  18. derive HCK, SCK and FS.
  19. "fsys" The system clock derived from ahb clock used to
  20. derive HCK, SCK and FS.
  21. "spba" The spba clock is required when ESAI is placed as a
  22. bus slave of the Shared Peripheral Bus and when two
  23. or more bus masters (CPU, DMA or DSP) try to access
  24. it. This property is optional depending on the SoC
  25. design.
  26. - fsl,fifo-depth : The number of elements in the transmit and receive
  27. FIFOs. This number is the maximum allowed value for
  28. TFCR[TFWM] or RFCR[RFWM].
  29. - fsl,esai-synchronous: This is a boolean property. If present, indicating
  30. that ESAI would work in the synchronous mode, which
  31. means all the settings for Receiving would be
  32. duplicated from Transmition related registers.
  33. Optional properties:
  34. - big-endian : If this property is absent, the native endian mode
  35. will be in use as default, or the big endian mode
  36. will be in use for all the device registers.
  37. Example:
  38. esai: esai@2024000 {
  39. compatible = "fsl,imx35-esai";
  40. reg = <0x02024000 0x4000>;
  41. interrupts = <0 51 0x04>;
  42. clocks = <&clks 208>, <&clks 118>, <&clks 208>;
  43. clock-names = "core", "extal", "fsys";
  44. dmas = <&sdma 23 21 0>, <&sdma 24 21 0>;
  45. dma-names = "rx", "tx";
  46. fsl,fifo-depth = <128>;
  47. fsl,esai-synchronous;
  48. big-endian;
  49. };