AnsweredAssumed Answered

phy_rxclk_activehs bit is not set and MIPI_CSI2_PHY_STATE is 0x210 and 0x200

Question asked by Titus Stalin on Oct 25, 2016
Latest reply on Dec 14, 2016 by John Dusing

Dear All,

I have the following custom camera, want to get a frame from camera using iMX6 sabrelite EVM board.

At power ON, our camera will generate the frames continuously at 800x600 45fps in RGB565 format (data type is 22)

Camera sensor bit clock is 48MHz

Byte clock is 187.5MHz

Camera MIPI TX is configured for 1.5Gbps   (187.5 * 8bit data)

1 Lane

Not sure about the virtual channel.

 

Board name:

I am using Sabrelite iMX6 EVM board from boundary devices (J16 MIPI port)

I have also tried to connect the OV5640 MIPI camera to the board and able to get the frames.

 

For my custom sensor, I have created the driver based on the ov5640_mipi.c driver and did the following as per my camera sensor.

1) Set data lane to 1

2) Set 0x44 in MIPI_CSI2_PHY_TST_CTRL1 register as I have differential clock is 187.5MHz (Not sure, please suggest me if anything.)

3) I think, we don't have virtual channel in our camera so I set "virtual channel" as 0 (default) so I used IPU0 and CSI0.

4)  Here is the MIPI CSI register dump:

 

MIPI_CSI2_VERSION 3130302a
MIPI_CSI2_N_LANES 1
MIPI_CSI2_PHY_SHUTDOWNZ 1
MIPI_CSI2_DPHY_RSTZ 1
MIPI_CSI2_CSI2_RESETN 1
MIPI_CSI2_PHY_STATE 210
MIPI_CSI2_DATA_IDS_1 0
MIPI_CSI2_DATA_IDS_2 0
MIPI_CSI2_ERR1 0
MIPI_CSI2_ERR2 0
MIPI_CSI2_MASK1 0
MIPI_CSI2_MASK2 0
MIPI_CSI2_PHY_TST_CTRL0 0
MIPI_CSI2_PHY_TST_CTRL1 4444
MIPI_CSI2_SFT_RESET 0

 

Can you please anyone provide the support please ?

 

 

Outcomes