imx8m plus mipi camera not working properly

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

imx8m plus mipi camera not working properly

1,937 Views
eminb
Contributor I

Hi,


I want to use 2 mipi cameras in our Toradex Verdin imx8m plus + custom carrier board environment.
First camera : 1920*1080 30 FPS at csi 1
Second camera : 640*512 30 FPS at csi 2

I changed device tree and ov5640 driver. I attached files.

Then, when I tried to capture video with the gstreamer pipeline below, it worked randomly. So when I tried to run the gstreamer script, sometimes it works, but most of the time I don't get any frames.

Gstreamer Pipeline:
gst-launch-1.0 v4l2src device=/dev/video3 ! fpsdisplaysink sync=false


1. Is there any missing step ?
2. Should i change mipi csi2 reset function at mxc-mipi-csi 2 ?

Other informations:

>>v4l2-ctl --list-devices

():
/dev/v4l-subdev0

():
/dev/v4l-subdev1

mxc-isi-cap (platform:32e00000.isi:cap_devic):
/dev/video3

mxc-isi-m2m (platform:32e00000.isi:m2m_devic):
/dev/video2

mxc-isi-cap (platform:32e02000.isi:cap_devic):
/dev/video4

FSL Capture Media Device (platform:mxc-md):
/dev/media0

vsi_v4l2dec (platform:vsi_v4l2dec):
/dev/video1

vsi_v4l2enc (platform:vsi_v4l2enc):
/dev/video0

 

>> media-ctl -p

Media controller API version 5.15.148

Media device information
------------------------
driver mxc-md
model FSL Capture Media Device
serial
bus info
hw revision 0x0
driver version 5.15.148

Device topology
- entity 1: mxc_isi.0 (16 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
pad0: Sink
<- "mxc-mipi-csi2.0":4 [ENABLED]
pad1: Sink
pad2: Sink
pad3: Sink
pad4: Sink
pad5: Sink
pad6: Sink
pad7: Sink
pad8: Sink
pad9: Sink
pad10: Sink
pad11: Sink
pad12: Source
-> "mxc_isi.0.capture":0 [ENABLED]
pad13: Source
pad14: Source
pad15: Sink

- entity 18: mxc_isi.0.capture (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: Sink
<- "mxc_isi.0":12 [ENABLED]

- entity 22: mxc_isi.1 (16 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
pad0: Sink
pad1: Sink
pad2: Sink
pad3: Sink
pad4: Sink
<- "mxc-mipi-csi2.1":4 [ENABLED]
pad5: Sink
pad6: Sink
pad7: Sink
pad8: Sink
pad9: Sink
pad10: Sink
pad11: Sink
pad12: Source
-> "mxc_isi.1.capture":0 [ENABLED]
pad13: Source
pad14: Source
pad15: Sink

- entity 39: mxc_isi.1.capture (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video4
pad0: Sink
<- "mxc_isi.1":12 [ENABLED]

- entity 43: mxc-mipi-csi2.0 (8 pads, 2 links)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "opthermal 2-0036":0 [ENABLED,IMMUTABLE]
pad1: Sink
pad2: Sink
pad3: Sink
pad4: Source
-> "mxc_isi.0":0 [ENABLED]
pad5: Source
pad6: Source
pad7: Source

- entity 52: mxc-mipi-csi2.1 (8 pads, 2 links)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev1
pad0: Sink
<- "optv 2-0037":0 [ENABLED,IMMUTABLE]
pad1: Sink
pad2: Sink
pad3: Sink
pad4: Source
-> "mxc_isi.1":4 [ENABLED]
pad5: Source
pad6: Source
pad7: Source

- entity 61: opthermal 2-0036 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
[fmt:YUYV8_1X16/1920x1080@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range
crop.bounds:(0,0)/1920x1080
crop:(16,14)/1920x1080]
-> "mxc-mipi-csi2.0":0 [ENABLED,IMMUTABLE]

- entity 63: optv 2-0037 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev3
pad0: Source
[fmt:YUYV8_1X16/640x512@1/30 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range
crop.bounds:(0,0)/640x512
crop:(16,14)/640x512]
-> "mxc-mipi-csi2.1":0 [ENABLED,IMMUTABLE]

After loading driver dmesg output:

[ 291.953314] optv 2-0037: probe done
[ 291.962352] opthermal 2-0036: probe done
[ 291.971412] imx8_media_dev: module is from the staging directory, the quality is unknown, you have been warned.
[ 291.982800] mx8-img-md: Registered mxc_isi.0.capture as /dev/video3
[ 291.989440] mx8-img-md: Registered mxc_isi.1.capture as /dev/video4
[ 291.995994] mx8-img-md: Registered sensor subdevice: opthermal 2-0036 (1)
[ 292.002829] mx8-img-md: Registered sensor subdevice: optv 2-0037 (2)
[ 292.009212] mx8-img-md: created link [mxc_isi.0] => [mxc_isi.0.capture]
[ 292.015854] mx8-img-md: created link [mxc-mipi-csi2.0] => [mxc_isi.0]
[ 292.022341] mx8-img-md: created link [mxc_isi.1] => [mxc_isi.1.capture]
[ 292.029007] mx8-img-md: created link [mxc-mipi-csi2.1] => [mxc_isi.1]
[ 292.035472] mx8-img-md: created link [opthermal 2-0036] => [mxc-mipi-csi2.0]
[ 292.042539] mx8-img-md: created link [optv 2-0037] => [mxc-mipi-csi2.1]
[ 292.049172] mxc-md 32c00000.bus:camera: mxc_md_create_links

0 Kudos
Reply
2 Replies

1,856 Views
Manuel_Salas
NXP TechSupport
NXP TechSupport

Hello @eminb 

You can take as reference the imx8mp-evk-dual-ov2775.dts.

As you are using a third party board it is recommended to contact them to get support on this inquiry.

 

Best regards,

Salas.

0 Kudos
Reply

1,927 Views
eminb
Contributor I
 
0 Kudos
Reply