IMX6Q mipi 1080p 60 摄像头问题

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX6Q mipi 1080p 60 摄像头问题

396 Views
stevenhuang
Contributor III

移植了一个1080p 60 的摄像头, 系统版本为3.0.35, 挂在在ipu1 的csi0上, virtual为0, 配置如下:

static struct mipi_csi2_platform_data mipi_csi2_pdata = {
.ipu_id = 0,
.csi_id = 0,
.v_channel = 0,
#if CONFIG_MXC_HDMI_MIPI
.lanes = 4,
#else
.lanes = 2,
#endif
.dphy_clk = "mipi_pllref_clk",
.pixel_clk = "emi_clk",
};

驱动能正常加载,但是在采集数据是报如下错误: 

./mxc_v4l2_capture.out -d /dev/video0

ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0

VIDIOC_DQBUF failed.

ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued

在下面帖子里面https://community.nxp.com/thread/306542#comment-332646,说到“whe  i set the AXI_CLK_ROOT clock to 528Mhz,(default 264Mhz)”, 请问怎么修改AXI_CLK_ROOT时钟欸528M? 能否给出详细代码, 非常感谢!

Labels (1)
0 Kudos
3 Replies

97 Views
joanxie
NXP TechSupport
NXP TechSupport

since you use ipu1 csi0, try to set .ipu_id = 1

0 Kudos

97 Views
stevenhuang
Contributor III

my question is how to change the AXI_CLK_ROOT clock。 could you any suggest? thank you very much!

0 Kudos

97 Views
joanxie
NXP TechSupport
NXP TechSupport

for this clock, you can set bit axi_podf  in the register CCM_CBCDR, for more detailed information, pls refer to the reference manual of imx6q:

https://www.nxp.com/webapp/sps/download/preDownload.jsp?render=true 

0 Kudos