]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - Documentation/devicetree/bindings/sound/renesas,rsrc-card.txt
ASoC: sti: fix missing clk_disable_unprepare() on error in uni_player_start()
[mirror_ubuntu-bionic-kernel.git] / Documentation / devicetree / bindings / sound / renesas,rsrc-card.txt
CommitLineData
415f1cb2
KM
1Renesas Sampling Rate Convert Sound Card:
2
3Renesas Sampling Rate Convert Sound Card specifies audio DAI connections of SoC <-> codec.
4
5Required properties:
6
62404442
GU
7- compatible : "renesas,rsrc-card{,<board>}"
8 Examples with boards are:
b7419dd7 9 - "renesas,rsrc-card"
415f1cb2
KM
10 - "renesas,rsrc-card,lager"
11 - "renesas,rsrc-card,koelsch"
12Optional properties:
13
14- card_name : User specified audio sound card name, one string
15 property.
16- cpu : CPU sub-node
17- codec : CODEC sub-node
18
19Optional subnode properties:
20
21- format : CPU/CODEC common audio format.
22 "i2s", "right_j", "left_j" , "dsp_a"
23 "dsp_b", "ac97", "pdm", "msb", "lsb"
24- frame-master : Indicates dai-link frame master.
25 phandle to a cpu or codec subnode.
26- bitclock-master : Indicates dai-link bit clock master.
27 phandle to a cpu or codec subnode.
28- bitclock-inversion : bool property. Add this if the
29 dai-link uses bit clock inversion.
30- frame-inversion : bool property. Add this if the
31 dai-link uses frame clock inversion.
af7e2be9 32- convert-rate : platform specified sampling rate convert
74e26809 33- convert-channels : platform specified converted channel size (2 - 8 ch)
b7419dd7
KM
34- audio-prefix : see audio-routing
35- audio-routing : A list of the connections between audio components.
36 Each entry is a pair of strings, the first being the connection's sink,
37 the second being the connection's source. Valid names for sources.
38 use audio-prefix if some components is using same sink/sources naming.
39 it can be used if compatible was "renesas,rsrc-card";
415f1cb2
KM
40
41Required CPU/CODEC subnodes properties:
42
43- sound-dai : phandle and port of CPU/CODEC
44
45Optional CPU/CODEC subnodes properties:
46
47- clocks / system-clock-frequency : specify subnode's clock if needed.
48 it can be specified via "clocks" if system has
49 clock node (= common clock), or "system-clock-frequency"
50 (if system doens't support common clock)
51 If a clock is specified, it is
52 enabled with clk_prepare_enable()
53 in dai startup() and disabled with
54 clk_disable_unprepare() in dai
55 shutdown().
56
57Example
58
59sound {
60 compatible = "renesas,rsrc-card,lager";
61
62 card-name = "rsnd-ak4643";
63 format = "left_j";
64 bitclock-master = <&sndcodec>;
65 frame-master = <&sndcodec>;
66
67 sndcpu: cpu {
68 sound-dai = <&rcar_sound>;
69 };
70
71 sndcodec: codec {
72 sound-dai = <&ak4643>;
73 system-clock-frequency = <11289600>;
74 };
75};