I.MX8M Plus dual camera support

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

I.MX8M Plus dual camera support

2,411 Views
baek
Contributor I

Hi, there.

I'm trying to connect dual camera on i.MX8M Plus board.

My configuration is below.

- Board : Technexion EDM-G-IMX8M-PLUS EVK

- Camera1 (via CSI1) : Onsemi (Aptina) AR0521 Monochrome 5MP with own oscillator 27MHz, own reset pin assigned.

- Camera2 (via CSI2) : Same sensor as Camera1 with own oscillator 27MHz, own reset pin assigned.

- Capture format : RAW8, 2592x1944 Resolution

- MIPI setup : 4-Lane for both camera

- Media control pipeline :   Camera1 --- CSI1 --- ISI1 Capture --- ISI1 --- Memory (via AXI bus)

                                           Camera2 --- CSI2 --- ISI2 Capture --- ISI2 --- Memory (via AXI bus)

                                            ISI only used (No ISP or dewarp used)

- Capture test utility : v4l2-ctl

- Kernel : 5.4.70_2.3.0

 

(Final goal) Generating two video streams from dual camera (RAW8, 2592x1944)

 

(Situation) After modifying kernel driver sources of capture (imx8-isi-cap.c) and mipi-csi driver (imx8-mipi-csi-sam.c) and writing custom camera driver, I managed to get RAW8 image from Camera1 successfully.

When I capture from Camera1 using v4l2-ctl, CSI1 and ISI1 interrupts are raised correctly and captured image is saved as I expected.

(Problem) But, when I am trying to capture from Camera2, no CSI2 and ISI2 interrupts are raised and v4l2-ctl hangs. Rarely, interrupts are raised but v4l2-ctl process still hangs. 

 

The questions are below.

Q1. AR0521 camera (2592x1944) is over 2K resolution. As I know of, i.MX8M Plus supports up to 4K. (I don't use ISP or dewarp now, I only use ISI for sensor interface)

So I think 4K images from both cameras (simultaneously or independently) should be captured. Is my understanding right?

Q2. From the RM, maximum clock frequencies for CSI1 and CSI2 are 500MHz and 266MHz, respectively. Is there a possibility that Camera2 capture is not working because of the difference in the clock frequency?

I already tried various configuration of MIPI clock frequencies, hs-settle and clk-settle values, but had no luck for Camera2 (via CSI2).

Q3. Is there any possibility of a v4l2-ctl problem?

 

How can I get an image from Camera2 (via CSI2) ?

Can anyone tell me what I am missing for dual camera configuration ?

 

0 Kudos
Reply
3 Replies

2,004 Views
Relive
Contributor I

Hi,bake

Can you give me some advice about how to modefy the source files(imx8-isi-cap.c and imx8-mipi-csi-sam.c)? I want to get raw8 data from grayscale sensor.

 

thank you.

0 Kudos
Reply

2,364 Views
joanxie
NXP TechSupport
NXP TechSupport

if you use nxp imx8mp evk board, pls try to use ISI and ISP for dual camera, current board doesn't support dual ISI in the same time, in another word, ISI CAP and ISI MEM couldn't work in the same time

0 Kudos
Reply

1,823 Views
kim7604
Contributor I

Hi NXP,

Is support for ISI.0 and ISI.1 being usable at the same time going to be available soon, if ever?  I saw this patch for Yocto Hardknott:  https://github.com/basler/meta-basler-imx8/blob/hardknott-5.10.72-2.2.0/recipes-kernel/linux/linux-i...

Is it available to use ISI.0 and ISI.1 in the above version?

 

Thanks,

Kim