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

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

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

Jump to solution
1,179 Views
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.

Labels (1)
Tags (1)
0 Kudos
1 Solution
851 Views
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

View solution in original post

0 Kudos
4 Replies
851 Views
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 Kudos
851 Views
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 Kudos
852 Views
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 Kudos
851 Views
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 Kudos