I am designing my own carrier. I want to support two CSI cameras. I have question on master clocks on CSI interface - MCLK02, MCLK03, MCLK04, MCLK05.
Can I use MCLK02 and MCLK03? Basically can I use MCLK02 for camera#1, and MCLK03 for camera#2?
Are MCLK02 - MCLK05 in the same phase? (I think MCLK05 is configured in GPIO mode, so it cannot be used as master clock. But I don’t need MCLK05 anyway.)
What is the frequency of MCLK02 - MCLK05? Are they all 25 MHz? And is the frequency configurable using device-tree? If so, can you show me an example?
I saw in “Jetson_AGX_Xavier_Series_Camera_Module_Hardware_Design_Guide_DG-09364-001_v1.2” section “2.2.2 Multiple Camera Case”, it shows an example of doing 6 cameras. It is only using one master clock MCLK02, then use a clock buffer to have a fan-out of 6. Do I need to do the same way as this example? Since I only need to support two cameras, does it mean that I can use the existing master clocks (MCLK02 and MCLK03) WITHOUT the need of clock buffer.
What if I want to support frame-sync on two camera, do I need to make sure the two master clocks route to two cameras are in the same phase?
Hi, for camera design, please refer to the product design guide and camera module design guide in DLC. We don’t support other design than those in the guide.
Thanks for your reply. Yes, I did check. I saw MCLK2-5 are available, but it doesn’t mention about clock frequency. It doesn’t mention whether they are in phase.
It says:
"
Name of the input clock for the device. The default value is extperiph1.
The maximum frequency for extperiph1 is 24 MHz. If a frequency greater than 24 MHz is required, use an external clock source.
"
I also checked max freq reported by bpmp linux debugfs:
I am pretty sure that extperiph1 maps to MCLK2, and extperiph2 maps to MCLK3.
Does it mean that MCLK2 can go up to 37 MHz, but the rest of MCLK3-5 can only go up to 24MHz?
However, this is conflict with what LT4 developer guide saying, which says “maximum frequency for extperiph1 is 24 MHz”.
Which one is correct?
I want reference clock in 25 MHz. Shall I stay with MCLK2, or use an external clock generator?
Can you please give some guide?
the max frequency is set to 24MHz as our document mentioned.
however,
the MCLKs (i.e. extperiph1, extperiph2, extperiph3) were clock sourced from PLLP-OUT0, which is 408MHz, but we don’t recommend to set the divider to change the frequency.
so,
you may use the configuration and you should also confirm on the scope to check frequency.
if the clock is indeed 25Mhz, then it should be ok, thanks