i.MX8MQ CSI line size constraint - documentation mistake?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX8MQ CSI line size constraint - documentation mistake?

ソリューションへジャンプ
1,397件の閲覧回数
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,290件の閲覧回数
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,363件の閲覧回数
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,363件の閲覧回数
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,359件の閲覧回数
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,354件の閲覧回数
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,344件の閲覧回数
dcz
Contributor I

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

0 件の賞賛
1,348件の閲覧回数
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @dcz 

Waiting for your answer.

Thanks & Regards

Sanket Parekh

0 件の賞賛
1,309件の閲覧回数
dcz
Contributor I

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

0 件の賞賛
1,306件の閲覧回数
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,303件の閲覧回数
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,299件の閲覧回数
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,294件の閲覧回数
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,291件の閲覧回数
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 件の賞賛