Hello, Community
I asked a question at https://community.nxp.com/message/667685?et=watches.email.thread#comment-667685.
But igorpadykov let me to start a new thread.
In my use case, the MIPI camera sensor output data of RGB666 format. But according to register of IPUx_CSI0_SENS_CONF in IMX6DQRM(Rev.3),it looks like that the IPU CSI of i.mx6 cannot receive RGB666 data.
igorpadykov suggests me to handle RGB666 data as generic format.
About generic format, I have two questions.
Q1)
If set CSI0_SENS_DATA_FORMAT to generic data, then how to set CSI0_DATA_WIDTH?
Q2)
If RGB666 input is received as generic data ,then how to resolve it back to RGB666 format(Need I write some custom code)?
Thank you!
ZongbiaoLiao
Hi ZongbiaoLiao
please look at below links they explain these questions
MX53 CSI/IDMAC config for Aptina 12-bit graysca... | NXP Community
https://community.freescale.com/message/344529#344529
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor
Thank you for you reply!
I found what I want in i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)
In IMX6DQRM, there is description as bellow:
-----------------------------------
37.4.3.2.2
High-speed serial interface - MIPI (Mobile Industry Processor
Interface).
In MIPI interface two values arrive in each cycle. Each value is 8 bit wide, which means
16 MSB bits of the data bus input are treated, while 4 LSB bits are ignored.
When working in this mode, the CSI can handle up to 4 streams of data. Each stream is
identified with DI (data identifier) that includes the virtual channel and the data type of
this stream. Each stream that is handled is defined in registers MIPI_DI0-3. Only the
main stream (MIPI_DI0) can be sent to all destination units while the other streams are
sent only to the SMFC as generic data.
In this mode SENS_DATA_FORMAT and DATA_WIDTH registers are ignored, since
this information is coming to the CSI via the MCT_DI bus.
-----------------------------------
Thank you!
ZongbiaoLiao