L4T 32.6.1适配4 lane 图像采集模块获取不到流

hi team,
nx设备通过4 lane mipi CSI-2接了一个图像采集模块。图像采集模块包括一个imx428 sensor和isp,imx428采集图像经过isp处理后通过mipi csi-2传给nx设备。采集模块输出图像格式是 YUV420-8B,尺寸1200*1920,帧率60fps。图像采集模块上电输出图像,不需要nx供电和通过i2c控制。

目前通过v4l2获取不到流,已抓取了dmesg log和trace log
dmesg_trace_log (33.6 KB)

The debug log that has been sent is encrypted and cannot be read. I have uploaded the debug log again
dmesg.log (77.0 KB)
trace.log (11.2 KB)

Did you probe the MIPI signal to confirm? Also suggest configure the sensor output as discontinuous mode.

用示波器测量有mipi信号,配置成了discontinuous mode还是抓不不到流,另外请教下连接的是CSI4这个mipi CSI-2接口,dts里面的port-index和tegra_interface该如何配置?

It’s CSIE and port-index is 4

非常感谢你的即时回复

还有一个疑问:isp输出图像格式是YUV420 8bit,nx代码支持下面几种格式:
if (strncmp(pixel_t, “bayer_bggr10”, size) == 0)
*format = V4L2_PIX_FMT_SBGGR10;
else if (strncmp(pixel_t, “bayer_rggb10”, size) == 0)
*format = V4L2_PIX_FMT_SRGGB10;
else if (strncmp(pixel_t, “bayer_grbg10”, size) == 0)
*format = V4L2_PIX_FMT_SGRBG10;
else if (strncmp(pixel_t, “bayer_gbrg10”, size) == 0)
*format = V4L2_PIX_FMT_SGBRG10;
else if (strncmp(pixel_t, “bayer_bggr12”, size) == 0)
*format = V4L2_PIX_FMT_SBGGR12;
else if (strncmp(pixel_t, “bayer_rggb12”, size) == 0)
*format = V4L2_PIX_FMT_SRGGB12;
else if (strncmp(pixel_t, “bayer_wdr_pwl_rggb12”, size) == 0)
*format = V4L2_PIX_FMT_SRGGB12;
else if (strncmp(pixel_t, “bayer_wdr_dol_rggb10”, size) == 0)
*format = V4L2_PIX_FMT_SRGGB10;
else if (strncmp(pixel_t, “bayer_xbggr10p”, size) == 0)
*format = V4L2_PIX_FMT_XBGGR10P;
else if (strncmp(pixel_t, “bayer_xrggb10p”, size) == 0)
*format = V4L2_PIX_FMT_XRGGB10P;
else if (strncmp(pixel_t, “yuv_yuyv16”, size) == 0)
*format = V4L2_PIX_FMT_YUYV;
else if (strncmp(pixel_t, “yuv_yvyu16”, size) == 0)
*format = V4L2_PIX_FMT_YVYU;
else if (strncmp(pixel_t, “yuv_uyvy16”, size) == 0)
*format = V4L2_PIX_FMT_UYVY;
else if (strncmp(pixel_t, “yuv_vyuy16”, size) == 0)
*format = V4L2_PIX_FMT_VYUY;
else {
pr_err(“%s: Need to extend format%s\n”, func, pixel_t);
return -EINVAL;
}

如果要支持YUV420 8bit格式是否需要自己在代码里添加支持的格式?有没有对应的文档提供?谢谢!

Suppose the output is YUV422 and the format configure should be V4L2_PIX_FMT_UYVY/V4L2_PIX_FMT_YUYV/ …

Hi ShaneCCC,
sensor的数据经过isp处理后通过mipi dsi直接nx的mipi csi-2,这种dsi和csi-2直连的方式是否可行?nx现在探测不到mipi信号,我怀疑和这种连接方式有关.期待你的回复。

Yes, it was supported. You can check the TRM for more information.

Hi ShaneCCC,
nx设备一直获取不到isp输出的流,通过示波器测试mipi clk发现,isp输出端clk是正常的,但是nx端clk电压几乎为0,我怀疑是nx端 mipi clk没有打开导致的,请问如何确认nx的mipi clk通道是打开的?附件是抓的dmesg和trace log
dmesg.log (77.9 KB)
trace (12.1 KB)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.