AnsweredAssumed Answered

[I.Mx6] Configuring V4l2 slave driver on CSI0 (8-bit) Port.

Question asked by Raju CM on Mar 26, 2015
Latest reply on Apr 8, 2015 by Joan Xie

Dear ALL,

I have my setup as follows.

TW8836_VCODEV =====Connected to====> I.Mx6 CSI0 (8-bit i.e CSI0_DAT12 : CSI0_DAT19).

 

Here, TW8836 Video codec chip delivers Interlaced NTSC standard video on CIS0 port. Typically BT656 output.

 

Can any one suggest what should be my V4L2 driver settings?

 

 

at present I tried with following configuration,

static int tw8836_i2c_probe(struct i2c_client *client,

        const struct i2c_device_id *id)

{

    int ret = 0;

    struct fsl_mxc_tvin_platform_data *pdata = client->dev.platform_data;

 

    tw8836_data.pix.pixelformat = V4L2_PIX_FMT_UYVY;

    tw8836_data.pix.width = video_fmts[video_idx].raw_width;;

    tw8836_data.pix.height = video_fmts[video_idx].raw_height;;

    tw8836_data.streamcap.timeperframe.denominator = 30;

    tw8836_data.streamcap.timeperframe.numerator = 1;

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

    tw8836_data.on = true;

 

    //video_idx = TW8836_NOT_LOCKED;

    i2c_set_clientdata(client, &tw8836_data);

    tvin_plat = pdata;

    TW8836_REG_PAGE_curr_value = 0x00;

   

    tw8836_int_device.priv = &tw8836_data;

    ret = v4l2_int_device_register(&tw8836_int_device);

 

    pr_debug("VICODEC tw8836 is registered to V4L2 Framework.\n");

    return 0x00;

}

 

Please suggest me....

 

Thanks,

Raju

Outcomes