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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,347件の閲覧回数
rajucm
Contributor III

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

ラベル(4)
0 件の賞賛
返信
4 返答(返信)

1,062件の閲覧回数
rajucm
Contributor III

Can any one tell me Linux version 3.0.35 support BT656 input streaming on CSI0  (CSI0_DATA12 : CSI0_DAT19).

Please lemme know If need to take any patch for this feature...

Thanks,

Raju

0 件の賞賛
返信

1,062件の閲覧回数
rajucm
Contributor III

Also, I have tried applying patch given in following lik

Patch to Support BT656 and BT1120 Output For i.MX6 BSP

But, I find many files are missing. ( also we don't use device tree). Can any one suggest me correct patch for my kernel version

127|root@sabresd_6dq:/ # cat /proc/version

Linux version 3.0.35-06529-g6e7b166-dirty (rajucm@rajucm-E400) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #123 SMP PREEMPT Fri Mar 27 13:12:09 CST 2015

===================================================================================

rajucm@rajucm-E400:~/cmm2.0/KK4.4_Server/kernel_imx$ git apply ./0001-Support-BT656-and-BT1120-output-for-iMX6-ipuv3.patch

./0001-Support-BT656-and-BT1120-output-for-iMX6-ipuv3.patch:416: trailing whitespace.

./0001-Support-BT656-and-BT1120-output-for-iMX6-ipuv3.patch:430: trailing whitespace.

./0001-Support-BT656-and-BT1120-output-for-iMX6-ipuv3.patch:660: trailing whitespace.

static void _ipu_dc_setup_bt656_interlaced(struct ipu_soc *ipu,

./0001-Support-BT656-and-BT1120-output-for-iMX6-ipuv3.patch:661: trailing whitespace.

                            int u_map, int y_map, int v_map,

./0001-Support-BT656-and-BT1120-output-for-iMX6-ipuv3.patch:662: trailing whitespace.

                            bool is_bt1120, int di_msb,

error: arch/arm/boot/dts/imx6qdl-sabresd.dtsi: No such file or directory

error: arch/arm/mach-imx/clk-imx6q.c: No such file or directory

error: drivers/media/platform/mxc/capture/ipu_bg_overlay_sdc.c: No such file or directory

error: drivers/media/platform/mxc/capture/ipu_csi_enc.c: No such file or directory

error: drivers/media/platform/mxc/capture/ipu_fg_overlay_sdc.c: No such file or directory

error: drivers/media/platform/mxc/capture/ipu_prp_enc.c: No such file or directory

error: drivers/media/platform/mxc/capture/ipu_prp_vf_sdc.c: No such file or directory

error: drivers/media/platform/mxc/capture/ipu_prp_vf_sdc_bg.c: No such file or directory

error: drivers/media/platform/mxc/capture/ipu_still.c: No such file or directory

error: drivers/media/platform/mxc/output/mxc_vout.c: No such file or directory

error: patch failed: drivers/mxc/ipu3/ipu_disp.c:49

error: drivers/mxc/ipu3/ipu_disp.c: patch does not apply

error: patch failed: drivers/video/mxc/mxc_ipuv3_fb.c:136

error: drivers/video/mxc/mxc_ipuv3_fb.c: patch does not apply

warning: drivers/video/mxc/mxc_lcdif.c has type 100755, expected 100644

error: patch failed: drivers/video/mxc/mxc_lcdif.c:48

error: drivers/video/mxc/mxc_lcdif.c: patch does not apply

error: include/linux/ipu-v3.h: No such file or directory

error: include/uapi/linux/ipu.h: No such file or directory

error: include/uapi/linux/mxcfb.h: No such file or directory

================================================

0 件の賞賛
返信

1,062件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

for tvin settings, you can refer to the adv7180 in the bsp, then use the unit test to test the tvin, if you need more detailed information, pls let me know it.

0 件の賞賛
返信

1,062件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

did you use freescale bsp? you can install freescale bsp, which has these drivers. the name is L3.0.35_4.1.0_ER_SOURCE_BSP

<i.MX6Q|i.MX 6Quad Processors|Quad Core|Freescale>.

0 件の賞賛
返信