trouble with ov5640 60fps with 720p

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

trouble with ov5640 60fps with 720p

2,944 Views
johannobermayr
Contributor I

Hello,

we have a ov5640 camera with mipi Interface on a imx6 cpu.

now we have running mode 720p with 60fps.

1) but there are not 60 fps, but only 50 fps.

2) Now we will change from V4L2_PIX_FMT_UYVY to V4L2_PIX_FMT_YUV444

and Output format to Memory with 800x600 fromV4L2_PIX_FMT_BGR32  to a

BGR/RGB with 3x10bit.

after changing V4L2_PIX_FMT_UYVY the ipu don't send any IRQ (

enc_callback is not called).

Regards

  Johann

Labels (3)
0 Kudos
Reply
6 Replies

2,058 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Johann,

     The root cause on your issue is that 1-Lane dataline of MIPI is not enough. see following :

(1) speed at least you need

1280x720x60x24 = 1.327Gbps

(2) the speed of 1-Lane data line: 1Gbps

(3) Accroding to above calculation, you need 2-Lane of MIPI at least.

(4) suggestions

Check your hardware , please!  and confirm if there were 2 Lanes of MIPI connected on your board, then adjust ov5640 driver to transimit data with 2 Lanes to MIPI CSI-2 interface of i.MX6

    Hope above items can help you !

Regards,

Weidong

0 Kudos
Reply

2,058 Views
Danube
Contributor IV

Hi ,

Sensor -> IC -> Bmem ->IRT -> Fmem+DSx)

I think our default driver is for 15/30 fps

0 Kudos
Reply

2,058 Views
johannobermayr
Contributor I

Hello,

i see, that the  IC  (Image Converter) can only can 8bit Input Format. (38.1.2.1.5.3 Image Converter (IC))

Camera have 720p/60fps with 10Bit.

CSI-> convert 10Bit/value to 16 bit per value.

IC can only 8 bit per value.

How can i convert the Input Picture to a 800x600 with RGB 10bit ?

0 Kudos
Reply

2,058 Views
johannobermayr
Contributor I

Other solution for us.

Camera send 640x480 with RAW10 to CSI.

We will copy them to Fram with expand 10bit to 16 bit for each value.

so every Pixel have 6 Bytes. 16 bit for every Color.

Regards

Johann

0 Kudos
Reply

2,058 Views
johannobermayr
Contributor I

Yes, we have both lines on board.

How can i activate both lines ?

0 Kudos
Reply

2,058 Views
johannobermayr
Contributor I

on camera sensor, i have activ the 2 lanes.

must i enable this also on the IPU ?

0 Kudos
Reply