imx6 mipi csi2 question

cancel
Showing results for 
Search instead for 
Did you mean: 

imx6 mipi csi2 question

1,232 Views
ed_nash
Contributor III

What does this sequence in mxc_mipi_csi2.c: mipi_csi2_reset() do?

mipi_csi2_write(info, 0x00000001, MIPI_CSI2_PHY_TST_CTRL0);

mipi_csi2_write(info, 0x00000000, MIPI_CSI2_PHY_TST_CTRL1);

mipi_csi2_write(info, 0x00000000, MIPI_CSI2_PHY_TST_CTRL0);

mipi_csi2_write(info, 0x00000002, MIPI_CSI2_PHY_TST_CTRL0);

mipi_csi2_write(info, 0x00010044, MIPI_CSI2_PHY_TST_CTRL1);

mipi_csi2_write(info, 0x00000000, MIPI_CSI2_PHY_TST_CTRL0);

mipi_csi2_write(info, 0x00000014, MIPI_CSI2_PHY_TST_CTRL1);

mipi_csi2_write(info, 0x00000002, MIPI_CSI2_PHY_TST_CTRL0);

mipi_csi2_write(info, 0x00000000, MIPI_CSI2_PHY_TST_CTRL0);

According to the TRM sections 40.6.13 and 40.6.14, these registers are for moving test data in and out of the bus. But in this postGetting an 'err_id_vc0' error on iMX6 MIPI-CSI it seems to have something to do with clock settings?

Thanks, Ed

Labels (3)
Tags (2)
0 Kudos
2 Replies

181 Views
Yuri
NXP TechSupport
NXP TechSupport

  The stage of D-PHY initialization includes an access the D-PHY programming interface
to initialize and program the D-PHY according to the selected operating mode of the D-PHY.
This is D-PHY dependent, and this programming should be carried out according to the DPHY
databook. Sorry, there is no detailed information about programming internal MIPI CSI-2

DPHY registers, that may be done via the MIPI_CSI_PHY_TST_CTRL0/1 registers.
Some descriptions may be found regarding corresponding test registers of MIPI DSI DPHY.
Please take a look at section 41.5.1 (DSI and D-PHY initialization sequence) 
of the i.MX6 DQ RM.
An example also may be found in  C-function "mipi_csi2_controller_program"
from the Platform
SDK.

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

181 Views
ed_nash
Contributor III

Thanks for the insight. Is the information available under NDA - assuming it exists?

0 Kudos