AnsweredAssumed Answered

imx6Q  CSI1 configuration for the adv7180

Question asked by Jacky Huang on Nov 19, 2012
Latest reply on Mar 3, 2014 by Yixing Kong

Dear All:


I want to use the CSI1 of the imx6q  with the adv7180. Anyone has the correct configuration for the CSI1?


I look up the IMX6DQRM.pdf and found out the figure as below:


I understand that csi1 pins is connected to the csi0 of ipu1, so the modify the gpr register  and config the csi device as below, 

however, I can't drvier up the csi device with the adv7180, It seems that the imx6 can not catch any signal from the csi1 pins.

if you have any suggestion, pls tell me and discuss with me.  Thank you advance!


in file arch/arm/mach-mx6/board-mx6q_sabresd.c I add code as bellow:


+ mxc_iomux_set_gpr_register(1, 20, 1, 1);

static struct fsl_mxc_capture_platform_data capture_data[] = {


  .csi = 1,

- .ipu = 0,

+ .ipu = 1,

  .mclk_source = 0,

- .is_mipi = 1,

+ .is_mipi = 0,




in file drivers/media/video/mxc/capture/adv7180.c

struct sensor {

  int ae_mode;

  int mode;

  v4l2_std_id std_id;

+ int csi;

} adv7180_data;


and set the csi to value 1

static int adv7180_probe(struct i2c_client *client,

  adv7180_data.pix.pixelformat = V4L2_PIX_FMT_UYVY;  /* YUV422 */

  adv7180_data.pix.priv = 1;  /* 1 is used to indicate TV in */

  adv7180_data.on = true;

+ adv7180_data.csi = 1;


Thanks a lot!