Customizing IMX477 registers

Is anyone customizing imx477 registers?
I developed an imx477 driver based on Arducam B0249 for an IMX8MP platform and I am interested in exchanging with other experts on tweaking/customizing the imx477 registers.

One particular issue I am facing right now:

How to correctly set imx477 LINE_LENGTH_PCK und FRM_LENGTH_LINES Registers (0x0340 to 0x0343)?

These registers steer the frame rate. Does anyone know how these registers are derived. Any formula?

Thank you