Calculate clock frequency for MIPI DPHY using different ref_clock value

From the reference manual "Rockchip RK3399 TRM V1.3 Part2", Table 7-6 shows the MIPI DPHY PLL Settings for 27 MHz reference Clock. However, the default clock is 24 MHz (pll_refclk) for the RK3399.

How is the table generated for 24 MHz?

It seems you have never calculated PLLs modes. Usually it is quite straightforward.
Try the spreadsheet (OpenOffice Calc) in archive attached. I've created it by the data of the document you've mentioned in the message above. Fiddle the digits in green cells and look the result.
Only one unknown thing from "Rockchip RK3399 TRM V1.3 Part2" document is frequency range of "fbclk" frequency. I do not know how high it can be. Sure it can't be lower than 5MHz because of "Flexible input clock reference" requirement which is starting from 5MHz. With lowest available n=0 (N=1) divider value value the "fbclk" will be 5MHz too. So this value can be assumed as absolute minimum for "fbclk". The highest value is not disclosed in this document. From "Table 7-6" it is known to be not less than 27MHz.
Try to choose the values which are producing the closest to desired output frequency wile not violating the limits. Other values, icpctrl, lpfctrl and vcorange should correspond to Table 5-7.

Disclaimer: I have none RK3399 yet and had programmed only the PLLs of microcontrollers and PLLs on PC motherboards only.

Attached Files
.zip   RK3399 MIPI D-PHY PLL (Size: 9.92 KB / Downloads: 102)

Possibly Related Threads…
Thread Author Replies Views Last Post
  Camera sensor support on MIPI lines abhimanyu_gr 0 260 01-22-2021, 09:23 AM
Last Post: abhimanyu_gr
  RockPro 64 MIPI Pinout carbotaniuman 3 1,472 05-21-2020, 03:41 AM
Last Post: dukla2000
  Non burst mode in MIPI DSI skumar 0 628 06-06-2019, 12:54 AM
Last Post: skumar
  4k MIPI DSI - Sony Xperia Z5 Premium kramac 1 1,205 10-23-2018, 08:16 PM
Last Post: tllim
  Max. CPU Frequency mysli 1 1,564 08-04-2018, 05:08 PM
Last Post: dukla2000
  Query regarding MIPI CSI camera support kafan1986 8 3,862 06-10-2018, 09:55 PM
Last Post: vbb

Forum Jump:

Users browsing this thread: 1 Guest(s)