imx6 mipi csi2 question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6 mipi csi2 question

1,786件の閲覧回数
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

ラベル(3)
タグ(2)
0 件の賞賛
2 返答(返信)

735件の閲覧回数
Yuri
NXP Employee
NXP Employee

  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 件の賞賛

735件の閲覧回数
ed_nash
Contributor III

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

0 件の賞賛