ARM: dts: imx6: make gpt per clock can be from OSC
authorAnson Huang <b20788@freescale.com>
Thu, 11 Sep 2014 03:29:41 +0000 (11:29 +0800)
committerShawn Guo <shawn.guo@freescale.com>
Tue, 16 Sep 2014 02:27:32 +0000 (10:27 +0800)
Original gpt per clk parent is from ipg_per clk which
may be scaled when system enter low bus mode, as ipg
clk will be lower in low bus mode, to keep system clk
NOT drift, select gpt per clk parent from OSC which
is at fixed freq always.

On i.mx6qdl, add a osc_per clk source for i.mx6q
TO > 1.0 and all i.MX6dl SoC.

On i.mx6sx, just make gpt per clk from OSC.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/boot/dts/imx6qdl.dtsi
arch/arm/boot/dts/imx6sx.dtsi

index 0de8806222cbb4c358181ebae33d7ac708caca84..9596ed5867e6d9a6b838d5c6880ab0d86b26bb4b 100644 (file)
                                reg = <0x02098000 0x4000>;
                                interrupts = <0 55 IRQ_TYPE_LEVEL_HIGH>;
                                clocks = <&clks IMX6QDL_CLK_GPT_IPG>,
-                                        <&clks IMX6QDL_CLK_GPT_IPG_PER>;
-                               clock-names = "ipg", "per";
+                                        <&clks IMX6QDL_CLK_GPT_IPG_PER>,
+                                        <&clks IMX6QDL_CLK_GPT_3M>;
+                               clock-names = "ipg", "per", "osc_per";
                        };
 
                        gpio1: gpio@0209c000 {
index d137cacabba18a7573d965ea469c060c1fe812e0..888dd767a0b34dd3964d6cc530346398f1ed4dbc 100644 (file)
                                reg = <0x02098000 0x4000>;
                                interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
                                clocks = <&clks IMX6SX_CLK_GPT_BUS>,
-                                        <&clks IMX6SX_CLK_GPT_SERIAL>;
+                                        <&clks IMX6SX_CLK_GPT_3M>;
                                clock-names = "ipg", "per";
                        };