ARM: dts: imx7: Use audio_mclk_post_div instead audio_mclk_root_clk
authorAbel Vesa <abel.vesa@nxp.com>
Thu, 27 Jan 2022 14:10:51 +0000 (16:10 +0200)
committerShawn Guo <shawnguo@kernel.org>
Fri, 11 Feb 2022 03:55:41 +0000 (11:55 +0800)
The audio_mclk_root_clk was added as a gate with the CCGR121 (0x4790),
but according to the reference manual, there is no such gate. Moreover,
the consumer driver of the mentioned clock might gate it and leave
the ECSPI2 (the true owner of that gate) hanging. So lets use the
audio_mclk_post_div, which is the parent.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7-colibri.dtsi
arch/arm/boot/dts/imx7-mba7.dtsi
arch/arm/boot/dts/imx7d-nitrogen7.dts
arch/arm/boot/dts/imx7d-pico-hobbit.dts
arch/arm/boot/dts/imx7d-pico-pi.dts
arch/arm/boot/dts/imx7d-sdb.dts
arch/arm/boot/dts/imx7s-warp.dts

index 62b771c1d5a9a71058dfb478a6f6f14b4641dbaa..f1c60b0cb143edad66f9376f34b0a856bfc86187 100644 (file)
@@ -40,7 +40,7 @@
 
                dailink_master: simple-audio-card,codec {
                        sound-dai = <&codec>;
-                       clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+                       clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                };
        };
 };
                compatible = "fsl,sgtl5000";
                #sound-dai-cells = <0>;
                reg = <0x0a>;
-               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_sai1_mclk>;
                VDDA-supply = <&reg_module_3v3_avdd>;
index 49086c6b6a0a2b2f817783cf3a842bfc4acaacba..3df6dff7734ae4d0d5766f155411e825f72f0e11 100644 (file)
        tlv320aic32x4: audio-codec@18 {
                compatible = "ti,tlv320aic32x4";
                reg = <0x18>;
-               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                clock-names = "mclk";
                ldoin-supply = <&reg_audio_3v3>;
                iov-supply = <&reg_audio_3v3>;
index e0751e6ba3c0f7e0d4709a5c1106eaeb7ab4f33b..a31de900139d6d10f0c849756bbf95e83ec5157d 100644 (file)
        codec: wm8960@1a {
                compatible = "wlf,wm8960";
                reg = <0x1a>;
-               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                clock-names = "mclk";
                wlf,shared-lrclk;
        };
index 7b2198a9372c621e0276bd509c3b373cf02c4072..d917dc4f2f22759bc546c18248bbff7fcc3d726f 100644 (file)
@@ -31,7 +31,7 @@
 
                dailink_master: simple-audio-card,codec {
                        sound-dai = <&sgtl5000>;
-                       clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+                       clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                };
        };
 };
@@ -41,7 +41,7 @@
                #sound-dai-cells = <0>;
                reg = <0x0a>;
                compatible = "fsl,sgtl5000";
-               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                VDDA-supply = <&reg_2p5v>;
                VDDIO-supply = <&reg_vref_1v8>;
        };
index 70bea95c06d83f84737d13478d1d7b37dca2272d..f263e391e24cbb6c44d569cf284dde74020f58ac 100644 (file)
@@ -31,7 +31,7 @@
 
                dailink_master: simple-audio-card,codec {
                        sound-dai = <&sgtl5000>;
-                       clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+                       clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                };
        };
 };
@@ -41,7 +41,7 @@
                #sound-dai-cells = <0>;
                reg = <0x0a>;
                compatible = "fsl,sgtl5000";
-               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                VDDA-supply = <&reg_2p5v>;
                VDDIO-supply = <&reg_vref_1v8>;
        };
index 7813ef960f6ee81e3bc73d83d5a0b0dde6233f02..f053f512274174e51c840c487186e56117f74ae2 100644 (file)
        codec: wm8960@1a {
                compatible = "wlf,wm8960";
                reg = <0x1a>;
-               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                clock-names = "mclk";
                wlf,shared-lrclk;
                wlf,hp-cfg = <2 2 3>;
                wlf,gpio-cfg = <1 3>;
                assigned-clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_SRC>,
                                  <&clks IMX7D_PLL_AUDIO_POST_DIV>,
-                                 <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+                                 <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
                assigned-clock-rates = <0>, <884736000>, <12288000>;
        };
index 4f1edef06c922eab3f20e807a32ba3ba2d755985..e8734d218b9dea9f08ef8f443bbd99cf2520cd42 100644 (file)
@@ -75,7 +75,7 @@
 
                dailink_master: simple-audio-card,codec {
                        sound-dai = <&codec>;
-                       clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+                       clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                };
        };
 };
                #sound-dai-cells = <0>;
                reg = <0x0a>;
                compatible = "fsl,sgtl5000";
-               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
+               clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_DIV>;
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_sai1_mclk>;
                VDDA-supply = <&vgen4_reg>;