IMX6 MIPI on Virtual Chanel 0

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

IMX6 MIPI on Virtual Chanel 0

67,439 Views
joachimjaehn
Contributor III

Hi @all

I use the IMX.6QDL on an  DartMX6 Board from Varicite. I would like to use an MIPI CMOS Gray scale Senor (IMX290). I have running an other Sensor on Virtual Chanel 1. It works without problems. But it is Impossible to change the Virtual Chanel from the IMX290. So i have to use the Virtual Chanel 0. Now i got problems if i change the virtual Chanel of the old Sensor to 0 and the new sensor will not work too. See Attach. If I darken the sensor the image will also darken. So the data comes from the sensor. But I don't get a stable picture.

Both sensors use MIPI with 4Lanes, a data rate of 594Mbps and the data format RAW10. I can't find the differences between VC0 and VC1.

VC0 >  MUX Parallel >  IPU0 CSI0 > SMFC  IDMAC > Memory

VC1 >                            IPU0 CSI1 > SMFC > IDMAC > Memory

I can't find the Problem. can anyone help me?

0 Kudos
Reply
7 Replies

66,684 Views
nesterovich2797
Contributor I

Good day, joachim Jaehn. You managed to start the camera?

0 Kudos
Reply

66,684 Views
joachimjaehn
Contributor III

i solved my problem, but i don't understand why it works.

I have set the Virtual Chanel in my Sensor to 0.  So the Sensor Data are forwarded to IPU0 CSI0.

There is an entry in the device tree file for the MIPI.

There i set:  ipu_id = <0>;  csi_id = <0>;   v_channel = <1>;

Now I get sensible sensor data, although the VC is not the same

But now i have e new problem.  I loose the frame synchronization.
I got the error :

imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00000001

The following information is written in data sheet:

New Frame before end-of-frame error indication of Channel interrupt.

This bit is the status bit of New IDMAC_ Frame before end-of-frame

error interrupt of Channel 0

The senor frame don't start at the beginning of the buffer. So i get a half picture from frame n and a half picture from frame n+1.

0 Kudos
Reply

66,684 Views
leavs
Contributor IV

Do you solve the frame_no_sync problem? I face the same problem.

0 Kudos
Reply

66,684 Views
joachimjaehn
Contributor III

no,sorry.
But i know a way to handle it.
I start the sensor with a very low frame rate(1-4fps). I grow up the frame rate after the first 5 frames.
Now i get clean frames. But i still get the error message.

I hope that helps



0 Kudos
Reply

66,684 Views
igorpadykov
NXP Employee
NXP Employee

Hi joachim

one can recheck port selection using IOMUXC_GPR13 and

Figure 19-1. CSI2IPU gasket connectivity i.MX6SDL Reference Manual

http://www.nxp.com/assets/documents/data/en/reference-manuals/IMX6SDLRM.pdf 

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

0 Kudos
Reply

66,684 Views
joachimjaehn
Contributor III

Thank you for your reply, but i use the IMX6QDL not SDL. The registers you mean are IOMUXC_GPR1:MIPI_IPU1_MUX and IOMUXC_GPR1:MIPI_IPU2_MUX. They set the mux between parallel and MIPI. If i don't configure them, i get on data. That's not my problem. I get data. These also come from the sensor. But I don't get a clean picture. It looks like the data is messed up.

0 Kudos
Reply

66,684 Views
igorpadykov
NXP Employee
NXP Employee

for usage different virtual channels one can look at example on

iMX6DQ MAX9286 MIPI CSI2 720P camera surround view solution for Linux BSP 

0 Kudos
Reply