MIPI camera fails to use 4 lane on iMX6

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MIPI camera fails to use 4 lane on iMX6

跳至解决方案
2,055 次查看
raymondman
Contributor II

Hi,

I can use 1 and 2 lanes to receive the RAW data from a camera module OV8865 on iMX6. The image is fine. When I use 4 lanes to transfer data, the image is distorted (see attached).

The modification are as follows,

1) set the OV8865 module to output data through 4 lanes

2) mipi_csi2_set_lanes(mipi_csi2_info, 4);

Could anyone tell what's wrong or missing to modify?

Thanks a lot!

标签 (1)
0 项奖励
1 解答
1,263 次查看
igorpadykov
NXP Employee
NXP Employee

Hi raymond

please try to change clocks as described on

https://community.freescale.com/docs/DOC-94312

Best regards

igor

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

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

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

在原帖中查看解决方案

0 项奖励
4 回复数
1,263 次查看
hareeshdas
Contributor II

Hi raymondman,

  We are trying to capture camera images by ov8865 in a custom iMX6Q board, but end up with "ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0". We are tried to capture through 2 lanes. Can you please help us on this ?  What application you use to capture images ?

Thanks,

Hareesh

0 项奖励
1,263 次查看
raymondman
Contributor II

Hi Hareesh,

Which platform are you using for development? If the kernel is 3.0.35, you may apply the patch from

i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)

Some other useful threads from

Can imx6 support for RGB RAW camera?

You need to modify the corresponding register of ov8865 to change to 2 lanes and use mipi_csi2_set_lanes() for the board. Check if the clock is correct, from Igor's reply.

I use Freescale test suite, mxc_v4l2_capture, to capture images.

Hope the above information is useful to you.

1,263 次查看
hareeshdas
Contributor II

Hi raymond man,

   Thanks for the quick response. We are using 3.14.28 kernel from freescale repo.

  We modified the ov8865 register settings and verified the clock and data from sensor. Does 3.14 kernel can able to capture the 10 bit RAW RGB data from sensor ?  Our understanding is iMX6 can able to capture RAW RGB or any format to memory, but it has to use CSI-->MEM path only. Is this right understanding ?

Regards,

Hareesh

0 项奖励
1,264 次查看
igorpadykov
NXP Employee
NXP Employee

Hi raymond

please try to change clocks as described on

https://community.freescale.com/docs/DOC-94312

Best regards

igor

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

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

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

0 项奖励