diff options
| author | Jean-Francois Moine <moinejf@free.fr> | 2014-03-20 06:04:16 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-03-25 14:09:20 -0400 |
| commit | 015f630de86c8a79df45c475c34087d3e96b882a (patch) | |
| tree | 88dfd36f11aaaaa5d9d95fce5dd21298be079e15 | |
| parent | cf7dc23cbfd5c4c5ab2136f19522d9b3b41acf99 (diff) | |
ASoC: simple-card: Add DT documentation for multi-DAI links
Many couples of CPU/CODEC DAI links may be described in the DT
thanks to 'simple-audio-card,dai-link' containers.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mark Brown <broonie@linaro.org>
| -rw-r--r-- | Documentation/devicetree/bindings/sound/simple-card.txt | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt index 881914b139ca..131aa2ad7f1a 100644 --- a/Documentation/devicetree/bindings/sound/simple-card.txt +++ b/Documentation/devicetree/bindings/sound/simple-card.txt | |||
| @@ -23,6 +23,11 @@ Optional properties: | |||
| 23 | 23 | ||
| 24 | Required subnodes: | 24 | Required subnodes: |
| 25 | 25 | ||
| 26 | - simple-audio-card,dai-link : container for the CPU and CODEC sub-nodes | ||
| 27 | This container may be omitted when the | ||
| 28 | card has only one DAI link. | ||
| 29 | See the examples. | ||
| 30 | |||
| 26 | - simple-audio-card,cpu : CPU sub-node | 31 | - simple-audio-card,cpu : CPU sub-node |
| 27 | - simple-audio-card,codec : CODEC sub-node | 32 | - simple-audio-card,codec : CODEC sub-node |
| 28 | 33 | ||
| @@ -49,7 +54,7 @@ Note: | |||
| 49 | CPU and CODEC sides as we need to keep the settings identical for both ends | 54 | CPU and CODEC sides as we need to keep the settings identical for both ends |
| 50 | of the link. | 55 | of the link. |
| 51 | 56 | ||
| 52 | Example: | 57 | Example 1 - single DAI link: |
| 53 | 58 | ||
| 54 | sound { | 59 | sound { |
| 55 | compatible = "simple-audio-card"; | 60 | compatible = "simple-audio-card"; |
| @@ -94,3 +99,38 @@ sh_fsi2: sh_fsi2@ec230000 { | |||
| 94 | interrupt-parent = <&gic>; | 99 | interrupt-parent = <&gic>; |
| 95 | interrupts = <0 146 0x4>; | 100 | interrupts = <0 146 0x4>; |
| 96 | }; | 101 | }; |
| 102 | |||
| 103 | Example 2 - many DAI links: | ||
| 104 | |||
| 105 | sound { | ||
| 106 | compatible = "simple-audio-card"; | ||
| 107 | simple-audio-card,name = "Cubox Audio"; | ||
| 108 | simple-audio-card,format = "i2s"; | ||
| 109 | |||
| 110 | simple-audio-card,dai-link@0 { /* I2S - HDMI */ | ||
| 111 | simple-audio-card,cpu { | ||
| 112 | sound-dai = <&audio1 0>; | ||
| 113 | }; | ||
| 114 | simple-audio-card,codec { | ||
| 115 | sound-dai = <&tda998x 0>; | ||
| 116 | }; | ||
| 117 | }; | ||
| 118 | |||
| 119 | simple-audio-card,dai-link@1 { /* S/PDIF - HDMI */ | ||
| 120 | simple-audio-card,cpu { | ||
| 121 | sound-dai = <&audio1 1>; | ||
| 122 | }; | ||
| 123 | simple-audio-card,codec { | ||
| 124 | sound-dai = <&tda998x 1>; | ||
| 125 | }; | ||
| 126 | }; | ||
| 127 | |||
| 128 | simple-audio-card,dai-link@2 { /* S/PDIF - S/PDIF */ | ||
| 129 | simple-audio-card,cpu { | ||
| 130 | sound-dai = <&audio1 1>; | ||
| 131 | }; | ||
| 132 | simple-audio-card,codec { | ||
| 133 | sound-dai = <&spdif_codec>; | ||
| 134 | }; | ||
| 135 | }; | ||
| 136 | }; | ||
