AnsweredAssumed Answered

MIPI CSI2 ioctl_g_ifparm ?

Question asked by Mustafa Bakırcıoglu on Oct 11, 2017
Latest reply on Oct 19, 2017 by Mustafa Bakırcıoglu

Hello ;

I am writing imx290 mipi csi2 driver on imx6q (wandboard). I am facing with the mipi csi2 can not receive sensor clk " error. I modified the ov5640_mipi.c file according to the camera registers and settings. But I am only using mipi csi-2 interface with i2c (4 mipi data lanes , 1 mipi clock lane and i2c communication). According to the code something is look like wrong to me.

 

static int ioctl_g_ifparm(struct v4l2_int_device *s, struct v4l2_ifparm *p)
{
    if (s == NULL) {
        pr_err("   ERROR!! no slave device set!\n");
        return -1;
    }

 

    memset(p, 0, sizeof(*p));
    p->u.bt656.clock_curr = imx290_data.mclk;
    pr_debug("   clock_curr=mclk=%d\n", imx290_data.mclk);
    pr_info("   clock_curr=mclk=%d\n", imx290_data.mclk);
    p->if_type = V4L2_IF_TYPE_BT656;
    p->u.bt656.mode = V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT;
    p->u.bt656.clock_min = IMX290_XCLK_MIN;
    p->u.bt656.clock_max = IMX290_XCLK_MAX;
    p->u.bt656.bt_sync_correct = 1;  /* Indicate external vsync */

 

    return 0;
}

   According to this file connections

This settings are done according to the parallel camera settings . Is there any setting modes according to the mipi csi2 interface codes or macros.

 

Thanks.

Best Regards

Outcomes