aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-01-04 12:24:57 -0500
committerMark Brown <broonie@kernel.org>2018-01-04 12:39:00 -0500
commitef42e3557f66bd236bfc157c1f02de5abfd01236 (patch)
tree1984065f38a1f2b6e81ea3a0ed063cadc302f709
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
ASoC: simple-card: Pass 'reg' property in the examples
Since unit addresses are passed to simple-audio-card,dai-link a corresponding 'reg' property is needed, otherwise dtc complains (when building with W=1) in case someone copies the bindings example into a real dts file: Warning (unit_address_vs_reg): Node /sound-digital/simple-audio-card,dai-link@0 has a unit name, but no reg property Improve the example by passing the correct 'reg' properties. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/sound/simple-card.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/simple-card.txt b/Documentation/devicetree/bindings/sound/simple-card.txt
index 166f2290233b..17c13e74667d 100644
--- a/Documentation/devicetree/bindings/sound/simple-card.txt
+++ b/Documentation/devicetree/bindings/sound/simple-card.txt
@@ -140,6 +140,7 @@ sound {
140 simple-audio-card,name = "Cubox Audio"; 140 simple-audio-card,name = "Cubox Audio";
141 141
142 simple-audio-card,dai-link@0 { /* I2S - HDMI */ 142 simple-audio-card,dai-link@0 { /* I2S - HDMI */
143 reg = <0>;
143 format = "i2s"; 144 format = "i2s";
144 cpu { 145 cpu {
145 sound-dai = <&audio1 0>; 146 sound-dai = <&audio1 0>;
@@ -150,6 +151,7 @@ sound {
150 }; 151 };
151 152
152 simple-audio-card,dai-link@1 { /* S/PDIF - HDMI */ 153 simple-audio-card,dai-link@1 { /* S/PDIF - HDMI */
154 reg = <1>;
153 cpu { 155 cpu {
154 sound-dai = <&audio1 1>; 156 sound-dai = <&audio1 1>;
155 }; 157 };
@@ -159,6 +161,7 @@ sound {
159 }; 161 };
160 162
161 simple-audio-card,dai-link@2 { /* S/PDIF - S/PDIF */ 163 simple-audio-card,dai-link@2 { /* S/PDIF - S/PDIF */
164 reg = <2>;
162 cpu { 165 cpu {
163 sound-dai = <&audio1 1>; 166 sound-dai = <&audio1 1>;
164 }; 167 };