MIPI_CSI2_PHY_TST_CTRL1 setting when interfacing DS90UB960 to IMX6Q

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

MIPI_CSI2_PHY_TST_CTRL1 setting when interfacing DS90UB960 to IMX6Q

Jump to solution
1,317 Views
Issac_20200908
Contributor II
Hi
 
Hardware setup:
(1)ONLY ONE Camera (parallel image sensor output to DS90UB933,1080p,25fps,YUV422)
(2)Deserializer is DS90UB960(x4 lane), and is connected to MIPI CSI-2 interface of IMX6Q processor.
 
Theoretically, MIPI data rate of IMX6Q for 1080p,25fps,YUV422 will be 279.933Mbps per lane.
 
Questions:
(1)In our case,DS90UB960 is set to 400Mbps for i.MX6Q in x4 lanes mode.
What value we should use for MIPI_CSI2_PHY_TST_CTRL1 resister? 400MHz or 279.933MHz
 
(2)When DS90UB960 is set to 400Mbps per lane, video is correct only when MIPI_CSI2_PHY_TST_CTRL1 is set to 0x0E (value for 500~550Mhz frequency range and 549Mhz exact value). WHY?
 
(3)We wanna to run DS90UB960 to 800Mbps x4 Lanes. When DS90UB960 is set to 800Mbps per lane, no valid value for MIPI_CSI2_PHY_TST_CTRL1 to show a correct image. We get a rolling image with several angular stripes. Any suggestion for us to debug it?

 

0 Kudos
1 Solution
1,301 Views
igorpadykov
NXP Employee
NXP Employee

Hi Issac_20200908

 

for setting frequency details one can look at below link:

"For example, if the clock lane frequency is 128MHz, the clock range should

be 250-270MHz because of DDR clock mode.."

https://community.nxp.com/t5/i-MX-Processors/Some-Experience-When-Enable-MIPI-Camera/m-p/228959#3283...

For debugging try unit test, mxc_v4l2_tvin.out, some examples can be found on

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/iMX6DQ-MAX9286-MIPI-CSI2-720P-camera-sur...

https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_v4l2_test?h=imx_5.4.24_2.1.0

 

Best regards
igor

View solution in original post

4 Replies
1,270 Views
Issac_20200908
Contributor II

Thanks, igor.

   MIPI_CSI2_PHY_TST_CTRL1 value is based on MIPI transimitter's DPHY clock frequency as you said.

We have tested OK for 400Mbps x4 lane and 800Mbps x3 Lane with DS90UB960.

0 Kudos
1,289 Views
Issac_20200908
Contributor II
Thank you,igor.
 in all docs referred above, IMX6Q's MIPI DPHY is said to match sensor clock and MIPI_CSI2_PHY_TST_CTRL1 are calculated based on video image data rate.
 
In our case,DS90UB960 works as a camera sensor. However, DS90UB960 can only use 400Mbps or 800Mbps per lane when interfacing to IMX6Q, and far large than video image data rate(279.933Mbps per lane).
 
Does MIPI_CSI2_PHY_TST_CTRL1 should use value 0x28(300Mbps) no matter DS90UB960 DPHY's actual data rate is 400Mbps or 800Mbps?

 

0 Kudos
1,282 Views
igorpadykov
NXP Employee
NXP Employee

Hi Issac_20200908

 

if DS90UB960 works as a camera sensor and use 400Mbps per lane then
(as said in above example) "clock range should be 800MHz because of DDR clock mode.."

 

Best regards
igor

1,302 Views
igorpadykov
NXP Employee
NXP Employee

Hi Issac_20200908

 

for setting frequency details one can look at below link:

"For example, if the clock lane frequency is 128MHz, the clock range should

be 250-270MHz because of DDR clock mode.."

https://community.nxp.com/t5/i-MX-Processors/Some-Experience-When-Enable-MIPI-Camera/m-p/228959#3283...

For debugging try unit test, mxc_v4l2_tvin.out, some examples can be found on

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/iMX6DQ-MAX9286-MIPI-CSI2-720P-camera-sur...

https://source.codeaurora.org/external/imx/imx-test/tree/test/mxc_v4l2_test?h=imx_5.4.24_2.1.0

 

Best regards
igor