]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MLK-10349 ARM: dts: imx6dql: fix the clock for MIPI CSI2
authorRobby Cai <r63905@freescale.com>
Sat, 28 Feb 2015 10:48:21 +0000 (18:48 +0800)
committerRobby Cai <r63905@freescale.com>
Mon, 2 Mar 2015 07:58:02 +0000 (15:58 +0800)
Fix the clock index for cfg clock and use MACRO instead of hard-codes.

This patch fixes the following issue.
-----------------------------------------------------------
root@imx6qdlsolo:~# /unit_tests/mxc_v4l2_capture.out -d /dev/video1 1.yuv
in_width = 176, in_height = 144
out_width = 176, out_height = 144
top = 0, left = 0
mipi csi2 can not receive sensor clk!
...

ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
VIDIOC_DQBUF failed.ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued
-----------------------------------------------------------

Signed-off-by: Robby Cai <r63905@freescale.com>
(cherry picked from commit 6e4ee449de591d3cfb93575ca639ca32944832bc)

arch/arm/boot/dts/imx6qdl.dtsi

index ab73d832c26825cba320d0cd7e2a5ef6281ae504..732f2d247a7f162094a39be3182677ecff015b60 100644 (file)
                                compatible = "fsl,imx6q-mipi-csi2";
                                reg = <0x021dc000 0x4000>;
                                interrupts = <0 100 0x04>, <0 101 0x04>;
-                               clocks = <&clks 138>, <&clks 53>, <&clks 204>;
+                               clocks = <&clks IMX6QDL_CLK_HSI_TX>,
+                                        <&clks IMX6QDL_CLK_EMI_SEL>,
+                                        <&clks IMX6QDL_CLK_VIDEO_27M>;
                                /* Note: clks 138 is hsi_tx, however, the dphy_c
                                 * hsi_tx and pll_refclk use the same clk gate.
                                 * In current clk driver, open/close clk gate do