imx8m mini mipi capture image wrong

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

imx8m mini mipi capture image wrong

2,129 Views
chinaman
Fresh Out Contributor

Hi,all:

        I am using imx8mm with an mipi camera imx334. The sensor run at  891Mbps,4 lanes, 3824x2176,30fps,10bits raw data.My bsp is 4.14.98.

        Take the image from the sensor as shown in the figure below,it looks like several images are stitched together.

   My understanding is that the image path is sensor->mipi phy->csi bridge-> memory.I'm sure the sensor is OK because I've verified it on other motherboards platforms.And I can also be sure that Mipi phy is OK because there are no errors reported in the interrupt mipi_csis_irq_handler in file  mxc_mipi_csi.c.What puzzles me is CSI bridge,in mx6s_capture.c the mx6s_csi_irq_handler processes the image data from Mipi PHY.when processing images,it was supposed to have 30 interrupts per second, but actually it was less than 10.

   Can anyone know why about this?

       pastedImage_1.png

手动阀
Labels (1)
0 Kudos
9 Replies

1,234 Views
udhayamoorthi
Contributor II

can you pls share your dtsi,mipi_csi and mx6s_capture.c driver codes?

0 Kudos

1,836 Views
abdu2
Contributor I

Hi ! @chinaman , 

We are using iMX8M processor and seeing similar issue like what you have posted. Our configuration on the sensor is  4lane, 720Mbps. Same issue with 720p30, 1080p30, 4Kp30.

 

Have you got this issue resolved ?

Appreciate your suggestion on solving the issue @chinaman @joanxie 

Regards

Abdu Samad

 

0 Kudos

2,004 Views
joanxie
NXP TechSupport
NXP TechSupport

for capture raw 10bits data, did you change any source code? maybe you can refer to the link as below:

https://community.nxp.com/message/1225950?commentID=1225950#comment-1225950 

0 Kudos

2,004 Views
chinaman
Fresh Out Contributor

I've tried code like this before,it doesn't work.

手动阀
0 Kudos

2,004 Views
joanxie
NXP TechSupport
NXP TechSupport

any improvement if you set lane to 2? what change have you tried so far?? did you change the clock?

0 Kudos

2,004 Views
chinaman
Fresh Out Contributor

Imx334 only supports 4 lanes or 8 lanes.There will be CRC or SOT errors reported in mipi_csis_irq_handler in mxc_mipi_csi.c if I set the mipi lanes to 2.How can I change clock.

Looking forward to your reply.

手动阀
0 Kudos

2,004 Views
joanxie
NXP TechSupport
NXP TechSupport

if you use 4 lanes, try to change the clock in the dts file:

assigned-clock-rates = <266000000>, <333000000>, <66000000>

0 Kudos

2,004 Views
chinaman
Fresh Out Contributor

That makes no difference.And the code seems to be imx8m not for imx8mm.

手动阀
0 Kudos

2,004 Views
joanxie
NXP TechSupport
NXP TechSupport

yes, this setting is for imx8m, for imx8mm, still set clk_ui to 333Mhz for your case, and did you set this to dual pixel mode or quad pixel mode?https://jira.sw.nxp.com/secure/attachment/635347/635347_Pixel+Mode.png

0 Kudos