Linux 5.15.52 imx8x parallel_csi bt656 issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux 5.15.52 imx8x parallel_csi bt656 issue

2,707 Views
songhongliang
Contributor II


imx8x在5.15的版本中,关于bt656的支持,需要修改imx8的驱动代码吗?有没有patch?
In the 5.15 version of imx8x, do you need to modify the driver code of imx8 for the support of bt656? Is there a patch?

0 Kudos
13 Replies

2,694 Views
joanxie
NXP TechSupport
NXP TechSupport

yes needs patch I send the example to you for reference

0 Kudos

2,687 Views
songhongliang
Contributor II

这是我的log,请帮忙查看寄存器是否正常。我该怎么判断我的配置是正常的

 

This is my log. Please check whether the register is normal. How do I judge whether my configuration is normal

0 Kudos

2,681 Views
songhongliang
Contributor II

Hi @qiang_li-mpu_se  and @joanxie 

imx8qxp

linux 5.15.52

video in :xs9922a 1280x720@25 bt656 8bit

帮忙看一下我的log ,寄存器的状态是否正常

0 Kudos

2,664 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

For 1280*720 camera resolution, it should be the progressive mode, so CI_PI register 0x58261010 should be 0x18404081 (CCIR_VIDEO_MODE = 0).

And in ISI, no de-interlace is needed, CHNL_IMG_CFG and CHNL_SCL_IMG_CFG should be 0x02D00500. DEINT in register CHNL_IMG_CTRL should be 0b00.

0 Kudos

2,631 Views
songhongliang
Contributor II

我仍然获取不到图像,有没有什么办法,可以让我确定是主控这边没配置好,还是sensor那边没配置好

0 Kudos

2,628 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

你需要弄清楚parallel CSI口上实际的信号现在到底是怎么样的,逐行的还是隔行的,Timing和分辨率到底是多少,设置了BT656模式之后,如果数据线上没有标准的EAV/SAV,那么数据是收不进来的。可能要协议分析仪抓一帧数据看看。

0 Kudos

2,615 Views
songhongliang
Contributor II

我现在将图像大小改为1920*1080, log显示有中断产生了,但是中断有些正常。

有中断产生 是不是意味着主控接收到了完整的图像。附件log,请查看。

0 Kudos

2,611 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

"status:0x60020100" 和 "status:0x60020200"交替出现,表示可以抓到图像,但是BIT 17 EARLY_VSYNC_ERR 为1,表示实际一个VSYNC的数据量并没有达到设置的1920*1080。

完全正常的状态是"status:0x60000100" 和 "status:0x60000200"交替出现。

另外一个需要注意的是,parallel CSI接口上输入的clock频率不能大于150MHz,否则可能丢数据。

0 Kudos

2,605 Views
songhongliang
Contributor II

您好

请查看附件, 帮忙确定一下imx8x的 parallel csi使用bt656的时候,是否支持附件图片中 最后一个时序传输。即是否支持时分复用传输。

0 Kudos

2,599 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

qiang_limpu_se_0-1668392351208.png

 

不支持上面这种不符合BT656规范的数据。

BT656规范定义的SAV/EAV格式是 FF 00 00 XY.

0 Kudos

2,597 Views
songhongliang
Contributor II

sensor这边说 这也是标准的bt656协议

0 Kudos

2,594 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

不支持这种,我们只支持4个字节基准码。

0 Kudos

2,661 Views
songhongliang
Contributor II

现在我的寄存器看起来都是对的了吧,只需sensor那边能提供1280x720@25图像 ,这边就可以显示吧。

0 Kudos