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