aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt')
-rw-r--r--Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt67
1 files changed, 67 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt b/Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt
new file mode 100644
index 000000000000..c64155027288
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt
@@ -0,0 +1,67 @@
1Renesas Sampling Rate Convert Sound Card:
2
3Renesas Sampling Rate Convert Sound Card specifies audio DAI connections of SoC <-> codec.
4
5Required properties:
6
7- compatible : "renesas,rsrc-card,<board>"
8 Examples with soctypes are:
9 - "renesas,rsrc-card,lager"
10 - "renesas,rsrc-card,koelsch"
11Optional properties:
12
13- card_name : User specified audio sound card name, one string
14 property.
15- cpu : CPU sub-node
16- codec : CODEC sub-node
17
18Optional subnode properties:
19
20- format : CPU/CODEC common audio format.
21 "i2s", "right_j", "left_j" , "dsp_a"
22 "dsp_b", "ac97", "pdm", "msb", "lsb"
23- frame-master : Indicates dai-link frame master.
24 phandle to a cpu or codec subnode.
25- bitclock-master : Indicates dai-link bit clock master.
26 phandle to a cpu or codec subnode.
27- bitclock-inversion : bool property. Add this if the
28 dai-link uses bit clock inversion.
29- frame-inversion : bool property. Add this if the
30 dai-link uses frame clock inversion.
31- convert-rate : platform specified sampling rate convert
32
33Required CPU/CODEC subnodes properties:
34
35- sound-dai : phandle and port of CPU/CODEC
36
37Optional CPU/CODEC subnodes properties:
38
39- clocks / system-clock-frequency : specify subnode's clock if needed.
40 it can be specified via "clocks" if system has
41 clock node (= common clock), or "system-clock-frequency"
42 (if system doens't support common clock)
43 If a clock is specified, it is
44 enabled with clk_prepare_enable()
45 in dai startup() and disabled with
46 clk_disable_unprepare() in dai
47 shutdown().
48
49Example
50
51sound {
52 compatible = "renesas,rsrc-card,lager";
53
54 card-name = "rsnd-ak4643";
55 format = "left_j";
56 bitclock-master = <&sndcodec>;
57 frame-master = <&sndcodec>;
58
59 sndcpu: cpu {
60 sound-dai = <&rcar_sound>;
61 };
62
63 sndcodec: codec {
64 sound-dai = <&ak4643>;
65 system-clock-frequency = <11289600>;
66 };
67};