aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Ripard2015-09-12 08:26:23 -0500
committerMark Brown2015-09-16 14:18:37 -0500
commit4ec73d3c81be5a401546afc6628aaf8add253ff1 (patch)
treed8154e739ca64dbce1d08193953ee288b328b70d /Documentation/devicetree/bindings/sound/sun4i-codec.txt
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff)
downloadti-linux-kernel-4ec73d3c81be5a401546afc6628aaf8add253ff1.tar.gz
ti-linux-kernel-4ec73d3c81be5a401546afc6628aaf8add253ff1.tar.xz
ti-linux-kernel-4ec73d3c81be5a401546afc6628aaf8add253ff1.zip
ASoC: sunxi: Add the Allwinner A10 codec bindings
The Allwinner SoCs have an in-SoC audio controller taking the role of a DAI and a codec. Add the binding documentation for that controller on the A10. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound/sun4i-codec.txt')
-rw-r--r--Documentation/devicetree/bindings/sound/sun4i-codec.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/sun4i-codec.txt b/Documentation/devicetree/bindings/sound/sun4i-codec.txt
new file mode 100644
index 000000000000..680144b74ae9
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/sun4i-codec.txt
@@ -0,0 +1,33 @@
1* Allwinner A10 Codec
2
3Required properties:
4- compatible: must be either "allwinner,sun4i-a10-codec" or
5 "allwinner,sun7i-a20-codec"
6- reg: must contain the registers location and length
7- interrupts: must contain the codec interrupt
8- dmas: DMA channels for tx and rx dma. See the DMA client binding,
9 Documentation/devicetree/bindings/dma/dma.txt
10- dma-names: should include "tx" and "rx".
11- clocks: a list of phandle + clock-specifer pairs, one for each entry
12 in clock-names.
13- clock-names: should contain followings:
14 - "apb": the parent APB clock for this controller
15 - "codec": the parent module clock
16- routing : A list of the connections between audio components. Each
17 entry is a pair of strings, the first being the connection's sink,
18 the second being the connection's source.
19
20
21Example:
22codec: codec@01c22c00 {
23 #sound-dai-cells = <0>;
24 compatible = "allwinner,sun7i-a20-codec";
25 reg = <0x01c22c00 0x40>;
26 interrupts = <0 30 4>;
27 clocks = <&apb0_gates 0>, <&codec_clk>;
28 clock-names = "apb", "codec";
29 dmas = <&dma 0 19>, <&dma 0 19>;
30 dma-names = "rx", "tx";
31 routing = "Headphone Jack", "HP Right",
32 "Headphone Jack", "HP Left";
33};