i.MX8MQ CSI line size constraint - documentation mistake?

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

i.MX8MQ CSI line size constraint - documentation mistake?

跳至解决方案
1,518 次查看
dcz
Contributor I

Section 13.7.6.13 "CSI Image Parameter Register" of the i.MX 8M Quad Applications Processors Reference Manual states that the line size should be divisible by 8 bytes.

I've been using them with a sensor returning 780-byte lines (8bpp), which is divisible by 4, but *not* by 8. This works as long as the total buffer length is divisible by 8 bytes.

I want to add this functionality to the upstream Linux CSI driver, but I'd like to get an opinion from NXP.

Is this supported behaviour, and the datasheet is too strict? Or am I inviting some kind of trouble?

Is the CSI IP used in i.MX7 series working the same way?

0 项奖励
1 解答
1,411 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dcz 

Thank you for the answer. Do I understand correctly, that streams divisible by 4×4 will work on other i.MX8 hardware too? - Yes

Will those kind of resolutions work on i.MX7 series CSI hardware? - Yes

Thanks & Regards

Sanket Parekh

在原帖中查看解决方案

0 项奖励
12 回复数
1,484 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dcz 

I hope you are doing well.

You can set divisible by 4 option, But for that you need to configure input data from the sensor is 10-bit/pixel or 16-bit/pixel format. Please find the reference from below.

CSI-Image length.png

Thanks & Regards

Sanket Parekh

0 项奖励
1,484 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dcz 

I hope you are doing well.

You can set divisible by 4 option, But for that you need to configure input data from the sensor is 10-bit/pixel or 16-bit/pixel format. Please find the reference from below.

CSI-Image length.png

Thanks & Regards

Sanket Parekh

0 项奖励
1,480 次查看
dcz
Contributor I

Hello Sanket,

 

I understand that the datasheet says I "should" use line sizes divisible by 4 pixels in 10-bit or 16-bit (so divisible by 8 bytes).

What the datasheet doesn't explicitly say is that I can also use line sizes divisible by 4 pixels in 8-bit mode (4 bytes). I have verified it on real hardware and it works.

Does this "should" mean that using lines divisible by 4 bytes is supported too? Are there any bad consequences to doing that?

Thanks

0 项奖励
1,475 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dcz 

Have you verified 780 bytes of data with divisible by 4 pixels in 8-bit mode?

Thanks & Regards

Sanket Parekh

0 项奖励
1,465 次查看
dcz
Contributor I

I verified a 8-bit 780px width × 1052px height stream on i.MX8MQ.

0 项奖励
1,469 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dcz 

Waiting for your answer.

Thanks & Regards

Sanket Parekh

0 项奖励
1,430 次查看
dcz
Contributor I

Correction: I verified a 8-bit 1052px width × 780px height stream

0 项奖励
1,427 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dcz 

That's great the streaming is working fine with 8-bit configuration.

Can you please verify the 8-bit configuration using transmission of 780 bytes only?

Thanks & Regards

Sanket Parekh

0 项奖励
1,424 次查看
dcz
Contributor I
Hi,
if you mean 780px width x 1px height, then nothing similar to this did not work last time I tried: the height must be an even number if the width is not divisible by 8.

(I tried 1052px × 779px and that failed).
0 项奖励
1,420 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dcz 

1052px width × 780px This combinations was worked because both the values height and width are divisible by 4. That's why this combination was worked.

Thanks & Regards

Sanket Parekh

0 项奖励
1,415 次查看
dcz
Contributor I
Thank you for the answer. Do I understand correctly, that streams divisible by 4×4 will work on other i.MX8 hardware too?

Will those kind of resolutions work on i.MX7 series CSI hardware?
0 项奖励
1,412 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dcz 

Thank you for the answer. Do I understand correctly, that streams divisible by 4×4 will work on other i.MX8 hardware too? - Yes

Will those kind of resolutions work on i.MX7 series CSI hardware? - Yes

Thanks & Regards

Sanket Parekh

0 项奖励