Merge branch 'apw' (xfrm_user fixes)
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / sound / zte,zx-i2s.txt
1 ZTE ZX296702 I2S controller
2
3 Required properties:
4  - compatible : Must be one of:
5         "zte,zx296718-i2s", "zte,zx296702-i2s"
6         "zte,zx296702-i2s"
7  - reg : Must contain I2S core's registers location and length
8  - clocks : Pairs of phandle and specifier referencing the controller's clocks.
9  - clock-names: "wclk" for the wclk, "pclk" for the pclk to the I2S interface.
10  - dmas: Pairs of phandle and specifier for the DMA channel that is used by
11    the core. The core expects two dma channels for transmit.
12  - dma-names : Must be "tx" and "rx"
13
14 For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties
15 please check:
16         * resource-names.txt
17         * clock/clock-bindings.txt
18         * dma/dma.txt
19
20 Example:
21         i2s0: i2s@b005000 {
22                 #sound-dai-cells = <0>;
23                 compatible = "zte,zx296718-i2s", "zte,zx296702-i2s";
24                 reg = <0x0b005000 0x1000>;
25                 clocks = <&audiocrm AUDIO_I2S0_WCLK>, <&audiocrm AUDIO_I2S0_PCLK>;
26                 clock-names = "wclk", "pclk";
27                 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
28                 dmas = <&dma 5>, <&dma 6>;
29                 dma-names = "tx", "rx";
30                 status = "okay";
31         };
32
33         sound {
34                 compatible = "simple-audio-card";
35                 simple-audio-card,name = "zx296702_snd";
36                 simple-audio-card,format = "left_j";
37                 simple-audio-card,bitclock-master = <&sndcodec>;
38                 simple-audio-card,frame-master = <&sndcodec>;
39                 sndcpu: simple-audio-card,cpu {
40                         sound-dai = <&i2s0>;
41                 };
42
43                 sndcodec: simple-audio-card,codec {
44                         sound-dai = <&acodec>;
45                 };
46         };