Commit b08d2fb5 authored by Rob Herring's avatar Rob Herring Committed by Shawn Guo

ARM: dts: imx: Add missing #sound-dai-cells for sgtl5000 codec

dtc now warns about missing #sound-dai-cells:

arch/arm/boot/dts/imx6ul-geam.dtb: Warning (sound_dai_property): /sound/simple-audio-card,codec: Missing property '#sound-dai-cells' in node /soc/aips-bus@2100000/i2c@21a0000/codec@a or bad phandle (referred from sound-dai[0])
arch/arm/boot/dts/imx6ul-isiot-emmc.dtb: Warning (sound_dai_property): /sound/simple-audio-card,codec: Missing property '#sound-dai-cells' in node /soc/aips-bus@2100000/i2c@21a0000/codec@a or bad phandle (referred from sound-dai[0])
arch/arm/boot/dts/imx6ul-isiot-nand.dtb: Warning (sound_dai_property): /sound/simple-audio-card,codec: Missing property '#sound-dai-cells' in node /soc/aips-bus@2100000/i2c@21a0000/codec@a or bad phandle (referred from sound-dai[0])

Lots of i.MX boards use the SGTL5000 codec, but not all get the warning
because only some reference the codec with "sound-dai" property. However,
the codec should always provide #sound-dai-cells regardless, so fix all
the occurrences.

Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent cbeb1dc7
...@@ -147,6 +147,7 @@ i2c0: i2c@80058000 { ...@@ -147,6 +147,7 @@ i2c0: i2c@80058000 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_3p3v>; VDDA-supply = <&reg_3p3v>;
VDDIO-supply = <&reg_3p3v>; VDDIO-supply = <&reg_3p3v>;
clocks = <&saif0>; clocks = <&saif0>;
......
...@@ -151,6 +151,7 @@ &i2c0 { ...@@ -151,6 +151,7 @@ &i2c0 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_3p3v>; VDDA-supply = <&reg_3p3v>;
VDDIO-supply = <&reg_3p3v>; VDDIO-supply = <&reg_3p3v>;
clocks = <&saif0>; clocks = <&saif0>;
......
...@@ -197,6 +197,7 @@ i2c0: i2c@80058000 { ...@@ -197,6 +197,7 @@ i2c0: i2c@80058000 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_3p3v>; VDDA-supply = <&reg_3p3v>;
VDDIO-supply = <&reg_3p3v>; VDDIO-supply = <&reg_3p3v>;
clocks = <&saif0>; clocks = <&saif0>;
......
...@@ -140,6 +140,7 @@ i2c0: i2c@80058000 { ...@@ -140,6 +140,7 @@ i2c0: i2c@80058000 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_3p3v>; VDDA-supply = <&reg_3p3v>;
VDDIO-supply = <&reg_3p3v>; VDDIO-supply = <&reg_3p3v>;
clocks = <&saif0>; clocks = <&saif0>;
......
...@@ -369,6 +369,7 @@ &i2c2 { ...@@ -369,6 +369,7 @@ &i2c2 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
clocks = <&clk_audio>; clocks = <&clk_audio>;
VDDA-supply = <&vdig_reg>; VDDA-supply = <&vdig_reg>;
VDDIO-supply = <&vvideo_reg>; VDDIO-supply = <&vvideo_reg>;
......
...@@ -153,6 +153,7 @@ &i2c1 { ...@@ -153,6 +153,7 @@ &i2c1 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_3p2v>; VDDA-supply = <&reg_3p2v>;
VDDIO-supply = <&reg_3p2v>; VDDIO-supply = <&reg_3p2v>;
clocks = <&clks IMX5_CLK_SSI_EXT1_GATE>; clocks = <&clks IMX5_CLK_SSI_EXT1_GATE>;
......
...@@ -446,6 +446,7 @@ i2c4: i2c@0 { ...@@ -446,6 +446,7 @@ i2c4: i2c@0 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0xa>; reg = <0xa>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_sgtl5k>; VDDA-supply = <&reg_sgtl5k>;
VDDIO-supply = <&reg_sgtl5k>; VDDIO-supply = <&reg_sgtl5k>;
clocks = <&cko2_11M>; clocks = <&cko2_11M>;
......
...@@ -317,6 +317,7 @@ &i2c2 { ...@@ -317,6 +317,7 @@ &i2c2 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_3p2v>; VDDA-supply = <&reg_3p2v>;
VDDIO-supply = <&reg_3p2v>; VDDIO-supply = <&reg_3p2v>;
clocks = <&clks IMX5_CLK_SSI_EXT1_GATE>; clocks = <&clks IMX5_CLK_SSI_EXT1_GATE>;
......
...@@ -230,6 +230,7 @@ &i2c3 { ...@@ -230,6 +230,7 @@ &i2c3 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_2v5>; VDDA-supply = <&reg_2v5>;
VDDIO-supply = <&reg_3v3>; VDDIO-supply = <&reg_3v3>;
clocks = <&mclk>; clocks = <&mclk>;
......
...@@ -131,6 +131,7 @@ &i2c3 { ...@@ -131,6 +131,7 @@ &i2c3 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_2v5>; VDDA-supply = <&reg_2v5>;
VDDIO-supply = <&reg_3v3>; VDDIO-supply = <&reg_3v3>;
clocks = <&mclk>; clocks = <&mclk>;
......
...@@ -133,6 +133,7 @@ &i2c3 { ...@@ -133,6 +133,7 @@ &i2c3 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
VDDA-supply = <&reg_3p3v>; VDDA-supply = <&reg_3p3v>;
VDDIO-supply = <&reg_3p3v>; VDDIO-supply = <&reg_3p3v>;
clocks = <&clks 150>; clocks = <&clks 150>;
......
...@@ -288,6 +288,7 @@ &i2c2 { ...@@ -288,6 +288,7 @@ &i2c2 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
clocks = <&clks IMX6QDL_CLK_CKO>; clocks = <&clks IMX6QDL_CLK_CKO>;
VDDA-supply = <&reg_1p8v>; VDDA-supply = <&reg_1p8v>;
VDDIO-supply = <&reg_3p3v>; VDDIO-supply = <&reg_3p3v>;
......
...@@ -196,6 +196,7 @@ pcf8523: rtc@68 { ...@@ -196,6 +196,7 @@ pcf8523: rtc@68 {
sgtl5000: codec@a { sgtl5000: codec@a {
clocks = <&clks IMX6QDL_CLK_CKO>; clocks = <&clks IMX6QDL_CLK_CKO>;
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
#sound-dai-cells = <0>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hummingboard2_sgtl5000>; pinctrl-0 = <&pinctrl_hummingboard2_sgtl5000>;
reg = <0x0a>; reg = <0x0a>;
......
...@@ -181,6 +181,7 @@ &i2c1 { ...@@ -181,6 +181,7 @@ &i2c1 {
sgtl5000: codec@a { sgtl5000: codec@a {
compatible = "fsl,sgtl5000"; compatible = "fsl,sgtl5000";
reg = <0x0a>; reg = <0x0a>;
#sound-dai-cells = <0>;
clocks = <&clks IMX6UL_CLK_OSC>; clocks = <&clks IMX6UL_CLK_OSC>;
clock-names = "mclk"; clock-names = "mclk";
VDDA-supply = <&reg_3p3v>; VDDA-supply = <&reg_3p3v>;
......
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