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.
Solved! Go to Solution.
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
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!
-----------------------------------------------------------------------------------------------------------------------
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() ?
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
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.