diff options
author | Jun Nie <jun.nie@linaro.org> | 2015-06-03 23:41:21 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-06-04 08:05:07 -0400 |
commit | dc772a4cf76113d7269e4fb1c45e5d85c0cf458e (patch) | |
tree | ffab1eb2f4193428b46d3a2f550060641e3681c8 | |
parent | 0637e965ba20da9cb29cade3a7026db307473f05 (diff) |
dt: Add documentation for the ZTE I2S controller
This patch adds the devicetree documentation for the ZTE
zx296702 I2S audio controller.
Signed-off-by: Jun Nie <jun.nie@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/sound/zte,zx-i2s.txt | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/zte,zx-i2s.txt b/Documentation/devicetree/bindings/sound/zte,zx-i2s.txt new file mode 100644 index 000000000000..7e5aa6f6b5a1 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/zte,zx-i2s.txt | |||
@@ -0,0 +1,44 @@ | |||
1 | ZTE ZX296702 I2S controller | ||
2 | |||
3 | Required 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 | |||
12 | For more details on the 'dma', 'dma-names', 'clock' and 'clock-names' properties | ||
13 | please check: | ||
14 | * resource-names.txt | ||
15 | * clock/clock-bindings.txt | ||
16 | * dma/dma.txt | ||
17 | |||
18 | Example: | ||
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 | }; | ||