Read MIPI YUV422 data

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

Read MIPI YUV422 data

1,295 Views
alexisfronteau
Contributor III

Hi, 

I'm trying to get 4096x2160 YUV422 pixels on mipi with an IMX6Q. I use 4 lanes, data type = 0x1E, virtual channel 1. I set the pixelformat V4L2_PIX_FMT_YUYV but there is a problem with data that I read. I select CSI MEM path.

Bytes are sent as: 

lane 1 : Byte0-----Byter4-----Byter8-------Byter12 ...

lane 2 : Byte1-----Byter5-----Byter9-------Byter13 ...

lane 3 : Byte2-----Byter6-----Byter10-----Byter14...

lane 4 : Byte3-----Byter7-----Byter11-----Byter15 ...

But when I read IDMAC, i have : 

Byte2----Byte3----Byte3----Byte7----Byte10----Byte11----Byte15----Byte9 ...

I have checked ipu registers and they seemed configured well.

Thanks

Labels (2)
0 Kudos
Reply
1 Reply

999 Views
igorpadykov
NXP Employee
NXP Employee

Hi Alexis

for MIPI YUV422 settings one can check sect.6.1. Use case example—image
capture from sensor to memory AN5305 MIPI–CSI2 Peripheral on i.MX6 MPUs
https://www.nxp.com/docs/en/application-note/AN5305.pdf
and Figure 19-10. YUV422-8 data reception i.MX6DQ Reference Manual
http://www.nxp.com/docs/en/reference-manual/IMX6DQRM.pdf

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply