xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/mxs-saif.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Freescale MXS Serial Audio Interface (SAIF)
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: Should be "fsl,<chip>-saif"
5*4882a593Smuzhiyun- reg: Should contain registers location and length
6*4882a593Smuzhiyun- interrupts: Should contain ERROR interrupt number
7*4882a593Smuzhiyun- dmas: DMA specifier, consisting of a phandle to DMA controller node
8*4882a593Smuzhiyun  and SAIF DMA channel ID.
9*4882a593Smuzhiyun  Refer to dma.txt and fsl-mxs-dma.txt for details.
10*4882a593Smuzhiyun- dma-names: Must be "rx-tx".
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunOptional properties:
13*4882a593Smuzhiyun- fsl,saif-master: phandle to the master SAIF.  It's only required for
14*4882a593Smuzhiyun  the slave SAIF.
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunNote: Each SAIF controller should have an alias correctly numbered
17*4882a593Smuzhiyunin "aliases" node.
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunExample:
20*4882a593Smuzhiyun
21*4882a593Smuzhiyunaliases {
22*4882a593Smuzhiyun	saif0 = &saif0;
23*4882a593Smuzhiyun	saif1 = &saif1;
24*4882a593Smuzhiyun};
25*4882a593Smuzhiyun
26*4882a593Smuzhiyunsaif0: saif@80042000 {
27*4882a593Smuzhiyun	compatible = "fsl,imx28-saif";
28*4882a593Smuzhiyun	reg = <0x80042000 2000>;
29*4882a593Smuzhiyun	interrupts = <59>;
30*4882a593Smuzhiyun	dmas = <&dma_apbx 4>;
31*4882a593Smuzhiyun	dma-names = "rx-tx";
32*4882a593Smuzhiyun};
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunsaif1: saif@80046000 {
35*4882a593Smuzhiyun	compatible = "fsl,imx28-saif";
36*4882a593Smuzhiyun	reg = <0x80046000 2000>;
37*4882a593Smuzhiyun	interrupts = <58>;
38*4882a593Smuzhiyun	dmas = <&dma_apbx 5>;
39*4882a593Smuzhiyun	dma-names = "rx-tx";
40*4882a593Smuzhiyun	fsl,saif-master = <&saif0>;
41*4882a593Smuzhiyun};
42