Accessing Camera feed in imx6Q board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accessing Camera feed in imx6Q board

1,568 Views
srinivasaporam
Contributor II

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.

Labels (3)
0 Kudos
3 Replies

934 Views
srinivasaporam
Contributor II

Hi,

from the forum icame to know, we need to check that GPR1 Bit19 and Bit20 to be set '0' to get the CSI/camera  module to detected by i2c and set to virtual channel '0'. But where i need to set or confirm they are already been set.

0 Kudos

934 Views
srinivasaporam
Contributor II

Hi,

My CSI camera is not being detected in i2c also. is there any problem or setting need to be done making CSI to detect in i2c

0 Kudos

934 Views
igorpadykov
NXP Employee
NXP Employee

Hi Srinivasa

one can look at document for mipi camera debug

Debug steps for customer MIPI sensor.docx

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos