MXSCM-240-2 arm: dts: imx: make mmdc clk accessible from the busfreq driver
authorJuan Gutierrez <juan.gutierrez@nxp.com>
Tue, 24 Jan 2017 16:30:34 +0000 (10:30 -0600)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:23 +0000 (14:58 -0500)
The mmdc clk rate needs to be explicitly updated when moving to
high audio rate by the busfreq module for the i.mx6q lpddr2 systems.
In order to make the mmdc_ch0_axi clk visible by this driver, it
needs to be included on the clocks/clock-names list.

For the imx6dqscm-1gb-evb systems the clocks list for the busfreq
module is originally inherited from imx6q.dtsi. To include the mmdc
clk, the full clocks list plus the mmdc clk needs to be overwriten
on the individual dts files.

Signed-off-by: Juan Gutierrez <juan.gutierrez@nxp.com>
arch/arm/boot/dts/imx6dqscm-1gb-evb-fix-ldo.dts
arch/arm/boot/dts/imx6dqscm-1gb-evb-interleave-android-ldo.dts

index 1f6c0c3..560f8ef 100644 (file)
                busfreq {
                        fsl,max_ddr_freq = <400000000>;
                        status = "okay";
+                       clocks = <&clks 171>, <&clks 6>, <&clks 11>, <&clks 104>, <&clks 172>, <&clks 58>,
+                                <&clks 18>, <&clks 60>, <&clks 20>, <&clks 3>, <&clks 140>;
+                       clock-names = "pll2_bus", "pll2_pfd2_396m", "pll2_198m", "arm", "pll3_usb_otg", "periph",
+                                     "periph_pre", "periph_clk2", "periph_clk2_sel", "osc", "mmdc";
                };
        };
 };
index 6b05421..e0ca328 100644 (file)
                busfreq {
                        fsl,max_ddr_freq = <400000000>;
                        status = "okay";
+                       clocks = <&clks 171>, <&clks 6>, <&clks 11>, <&clks 104>, <&clks 172>, <&clks 58>,
+                                <&clks 18>, <&clks 60>, <&clks 20>, <&clks 3>, <&clks 140>;
+                       clock-names = "pll2_bus", "pll2_pfd2_396m", "pll2_198m", "arm", "pll3_usb_otg", "periph",
+                                     "periph_pre", "periph_clk2", "periph_clk2_sel", "osc", "mmdc";
                };
        };
 };