Kuninori Morimoto | 415f1cb | 2015-03-26 04:01:27 +0000 | [diff] [blame] | 1 | Renesas Sampling Rate Convert Sound Card: |
| 2 | |
| 3 | Renesas Sampling Rate Convert Sound Card specifies audio DAI connections of SoC <-> codec. |
| 4 | |
| 5 | Required properties: |
| 6 | |
Geert Uytterhoeven | 6240444 | 2015-10-29 20:59:55 +0100 | [diff] [blame] | 7 | - compatible : "renesas,rsrc-card{,<board>}" |
| 8 | Examples with boards are: |
Kuninori Morimoto | b7419dd | 2015-07-15 07:08:05 +0000 | [diff] [blame] | 9 | - "renesas,rsrc-card" |
Kuninori Morimoto | 415f1cb | 2015-03-26 04:01:27 +0000 | [diff] [blame] | 10 | - "renesas,rsrc-card,lager" |
| 11 | - "renesas,rsrc-card,koelsch" |
| 12 | Optional 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 | |
| 19 | Optional 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. |
Kuninori Morimoto | af7e2be | 2015-03-26 04:01:46 +0000 | [diff] [blame] | 32 | - convert-rate : platform specified sampling rate convert |
Kuninori Morimoto | 74e26809 | 2016-03-07 04:57:55 +0000 | [diff] [blame] | 33 | - convert-channels : platform specified converted channel size (2 - 8 ch) |
Kuninori Morimoto | b7419dd | 2015-07-15 07:08:05 +0000 | [diff] [blame] | 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"; |
Kuninori Morimoto | 415f1cb | 2015-03-26 04:01:27 +0000 | [diff] [blame] | 40 | |
| 41 | Required CPU/CODEC subnodes properties: |
| 42 | |
| 43 | - sound-dai : phandle and port of CPU/CODEC |
| 44 | |
| 45 | Optional 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 | |
| 57 | Example |
| 58 | |
| 59 | sound { |
| 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 | }; |