How to calculate UI value?

Here’s the UI from pix_clk_hz in device tree.

MIPI clock = pix_clk_hz*depth/lanes
tMIPICLK = UINT64_C(1000000000) / mipi_clock_khz
UI = (phy_mode == NVCSI_PHY_TYPE_DPHY) ? (tMIPICLK / 2U) : tMIPICLK