IMX6Q CLK for custom camera

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

IMX6Q CLK for custom camera

917 Views
Simon_Wu
Contributor II

Hello,

This thread is I post before : https://community.nxp.com/t5/i-MX-Processors/how-to-get-csi-embeded-data-on-iMX6Q/td-p/1262685

I check our camera datasheet:

width = 1104

height = 1312

fps = 75

Ouput MIPI RAW10 data

Supports 2 lanes (up to 0.8 or 1 Gbps per lane) MIPI

MIPI Alliance Standard for Camera Serial Interface 2 (CSI-2) v1.1

MIPI Alliance Specification for D-PHY v1.1

According to AN5305,

Pixel clock = 1104* 1312* 75 fps * 1 cycle/pixel * 1.35 blank interval = 146.66 MHz

Total MIPI data rate is 146.66 M * 16 bits = 2346.56 Mb/s.

MIPI clock = 2346.56/ 2 / 2 = 586.64 MHz

MIPI_CSI2_PHY_TST_CTRL1 setting = 586.64 MHz * 2 (DDR mode) = 1173.28MHz

1173.28 MHz seems over thr range of i.MX6Q

I set it 0x74(950-1000MHz), and I get ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0

Do you have any suggestions?

@igorpadykov 

 

Labels (2)
Tags (1)
0 Kudos
4 Replies

887 Views
joanxie
NXP TechSupport
NXP TechSupport

for mipi raw data capture pls refer to the document as below, it's very useful for you

"https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX6Q-capture-raw-bayer-data-and-debaye..."

 

0 Kudos

876 Views
Simon_Wu
Contributor II

Hi Joanxie,

I can get ov5640 raw 10 data,

but I can't get custom carame raw 10 data.

MIPI_CSI_ERR1 = 0x100,

MIPI_CSI_ERR2 = 0x0.

What should I do next?

0 Kudos

865 Views
joanxie
NXP TechSupport
NXP TechSupport

if you use customized camera, pls refer to the debug document as below:

"https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Debug-steps-for-customer-MIPI-sensor-doc..."

0 Kudos

855 Views
Simon_Wu
Contributor II

Hi joanxie,

Thanks for your reply.

 I found MIPI_PHY_STATE = 0x300, the correct state is 0x330 in Debug steps for customer MIPI sensor.

What should I check?

Simon

 

0 Kudos