fsl,asrc.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Freescale Asynchronous Sample Rate Converter (ASRC) Controller
  2. The Asynchronous Sample Rate Converter (ASRC) converts the sampling rate of a
  3. signal associated with an input clock into a signal associated with a different
  4. output clock. The driver currently works as a Front End of DPCM with other Back
  5. Ends Audio controller such as ESAI, SSI and SAI. It has three pairs to support
  6. three substreams within totally 10 channels.
  7. Required properties:
  8. - compatible : Contains "fsl,imx35-asrc" or "fsl,imx53-asrc".
  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 : Contains "rxa", "rxb", "rxc", "txa", "txb" and "txc".
  14. - clocks : Contains an entry for each entry in clock-names.
  15. - clock-names : Contains the following entries
  16. "mem" Peripheral access clock to access registers.
  17. "ipg" Peripheral clock to driver module.
  18. "asrck_<0-f>" Clock sources for input and output clock.
  19. - big-endian : If this property is absent, the little endian mode
  20. will be in use as default. Otherwise, the big endian
  21. mode will be in use for all the device registers.
  22. - fsl,asrc-rate : Defines a mutual sample rate used by DPCM Back Ends.
  23. - fsl,asrc-width : Defines a mutual sample width used by DPCM Back Ends.
  24. Example:
  25. asrc: asrc@02034000 {
  26. compatible = "fsl,imx53-asrc";
  27. reg = <0x02034000 0x4000>;
  28. interrupts = <0 50 IRQ_TYPE_LEVEL_HIGH>;
  29. clocks = <&clks 107>, <&clks 107>, <&clks 0>,
  30. <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
  31. <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
  32. <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
  33. <&clks 107>, <&clks 0>, <&clks 0>;
  34. clock-names = "mem", "ipg", "asrck0",
  35. "asrck_1", "asrck_2", "asrck_3", "asrck_4",
  36. "asrck_5", "asrck_6", "asrck_7", "asrck_8",
  37. "asrck_9", "asrck_a", "asrck_b", "asrck_c",
  38. "asrck_d", "asrck_e", "asrck_f";
  39. dmas = <&sdma 17 23 1>, <&sdma 18 23 1>, <&sdma 19 23 1>,
  40. <&sdma 20 23 1>, <&sdma 21 23 1>, <&sdma 22 23 1>;
  41. dma-names = "rxa", "rxb", "rxc",
  42. "txa", "txb", "txc";
  43. fsl,asrc-rate = <48000>;
  44. fsl,asrc-width = <16>;
  45. status = "okay";
  46. };