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