What is correct way to reset mipi dphy frequency on the fly?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

What is correct way to reset mipi dphy frequency on the fly?

跳至解决方案
1,367 次查看
wallyyeh
Contributor V

Hi, guys:

    It takes me so long to figure out i.MX6 mipi csi controller must set correct dphy frequency to match the mipi device output.

    My question is,  how can I just set mipi dphy frequency without reload my driver? since ADV7480 can transfer any resolution, it's not convenient to reload the module for change i.MX6 mipi csi controller's dphy freq register.

    I tried only calling mipi_csi2_write(info, 0x00000014, CSI2_PHY_TST_CTRL1);  by replacing the 0x14 to another value, but it won't work.

    Any suggestions is welcome, thanks.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,039 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Wally

I am afraid there ia no way to reset i.MX6 mipi phy just for frequency,

MIPI_CSI_CSI2_RESETN is described in

sect.40.6.5 CSI2 controller reset (MIPI_CSI_CSI2_RESETN)

i.MX6DQ Reference Manual (rev.3  7/2015)

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf

Best regards

igor

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,039 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Wally

one can power down phy or reset with MIPI_CSI_CSI2_RESETN,

then reconfigure pll with steps given in

Some Experience When Enable MIPI Camera

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,039 次查看
wallyyeh
Contributor V

Hi, Igor:

   thanks, but I already read them, couldn't find the sequence of correct way to reset i.MX6 mipi phy just for frequency.

   could you tell me the detail sequence of register command? or I must do all steps in mipi_csi2_reset() ?

0 项奖励
回复
1,040 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Wally

I am afraid there ia no way to reset i.MX6 mipi phy just for frequency,

MIPI_CSI_CSI2_RESETN is described in

sect.40.6.5 CSI2 controller reset (MIPI_CSI_CSI2_RESETN)

i.MX6DQ Reference Manual (rev.3  7/2015)

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf

Best regards

igor

0 项奖励
回复
1,039 次查看
wallyyeh
Contributor V

Thanks, pal. if there's no way to do this, I just doing mipi_csi2_reset() again. then turn ADV7480's CSI-TXA signal on.

0 项奖励
回复