AnsweredAssumed Answered

Accessing Camera feed in imx6Q board

Question asked by srinivasaporam on Dec 22, 2015
Latest reply on Dec 24, 2015 by srinivasaporam

Hi,

We have got a IMX6Q customized board to which a CSI camera is connected. In our kernel V4L2 drivers and MIPI CSI Interface are enabled as given below:

 

CONFIG_MXC_MIPI_CSI2=y

 

CONFIG_V4L_PLATFORM_DRIVERS=y

# CONFIG_VIDEO_TIMBERDALE is not set

CONFIG_VIDEO_MXC_OUTPUT=y

CONFIG_VIDEO_MXC_CAPTURE=m

 

#

# MXC Camera/V4L2 PRP Features support

#

CONFIG_VIDEO_MXC_IPU_CAMERA=y

CONFIG_VIDEO_MXC_CSI_CAMERA=m

CONFIG_MXC_CAMERA_OV5640=m

CONFIG_MXC_CAMERA_OV5642=m

CONFIG_MXC_CAMERA_OV5640_MIPI=m

CONFIG_MXC_TVIN_ADV7180=m

CONFIG_MXC_VADC=m

CONFIG_MXC_IPU_DEVICE_QUEUE_SDC=m

CONFIG_MXC_IPU_PRP_ENC=m

CONFIG_MXC_IPU_CSI_ENC=m

CONFIG_VIDEO_MXC_IPU_OUTPUT=y

CONFIG_VIDEO_MXC_PXP_V4L2=y

CONFIG_SOC_CAMERA=y

 

Then, mipi csi is enabled in dts file also as below:

 

mipi_csi: mipi_csi@021dc000 {

                compatible = "fsl,imx6q-mipi-csi2";

                reg = <0x021dc000 0x4000>;

                interrupts = <0 100 0x04>, <0 101 0x04>;

                clocks = <&clks 138>, <&clks 53>, <&clks 204>;

                clock-names = "dphy_clk", "pixel_clk", "cfg_clk";

                status = "disabled";

            };

 

 

and

 

&mipi_csi {

    ipu_id = <1>;

    csi_id = <0>;

    v_channel = <0>;

    lanes = <2>;

    status = "okay";

};

 

we are running a qt application which captures video feed from v4l devices. When we are running the application we are not getting any video feed. is the above setting correct are we need to any more settings

 

when we are issueing command as below:

 

$ dmesg | grep csi   output is

 

mxc_mipi_csi2 21dc000.mipi_csi; i.MX MIPI CSI2 driver probed

 

mxc_mipi_csi2 21dc000.mipi_csi; i.MX MIPI CSI2 dphy version is 0x3130302a

 

what is mistake that we are doing.

Outcomes