linux icon indicating copy to clipboard operation
linux copied to clipboard

4lane support for IMX708

Open 6by9 opened this issue 3 months ago • 1 comments

This gets IMX708 working in 4 lane mode.

It hasn't yet changed the frame rates achievable, but has made it easier in computing the PLL register settings based on the configured values. Whilst we could try to do something clever in automatically computing values, I'd probably lean towards having an array for line_length_pix and pixel_rate for each mode, with one set of values for 2 lanes and another for 4 lanes. At least that way we can guarantee that the value combinations work, but does limit some of the gain in increasing the link frequency.

I haven't added any validation on the link frequency actually making a usable system. Adding a check later that the line time of the pixel array is greater than that of the MIPI link would probably be beneficial.

6by9 avatar Sep 18 '25 15:09 6by9

Bah, I hate the handling of 64bit division on 32bit kernels. Hopefully resolved now.

6by9 avatar Sep 18 '25 16:09 6by9