Commit ef42e355 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4fbd8d19
...@@ -140,6 +140,7 @@ sound { ...@@ -140,6 +140,7 @@ sound {
simple-audio-card,name = "Cubox Audio"; simple-audio-card,name = "Cubox Audio";
simple-audio-card,dai-link@0 { /* I2S - HDMI */ simple-audio-card,dai-link@0 { /* I2S - HDMI */
reg = <0>;
format = "i2s"; format = "i2s";
cpu { cpu {
sound-dai = <&audio1 0>; sound-dai = <&audio1 0>;
...@@ -150,6 +151,7 @@ sound { ...@@ -150,6 +151,7 @@ sound {
}; };
simple-audio-card,dai-link@1 { /* S/PDIF - HDMI */ simple-audio-card,dai-link@1 { /* S/PDIF - HDMI */
reg = <1>;
cpu { cpu {
sound-dai = <&audio1 1>; sound-dai = <&audio1 1>;
}; };
...@@ -159,6 +161,7 @@ sound { ...@@ -159,6 +161,7 @@ sound {
}; };
simple-audio-card,dai-link@2 { /* S/PDIF - S/PDIF */ simple-audio-card,dai-link@2 { /* S/PDIF - S/PDIF */
reg = <2>;
cpu { cpu {
sound-dai = <&audio1 1>; sound-dai = <&audio1 1>;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment