All of lore.kernel.org
 help / color / mirror / Atom feed
* imx8m-mini csi-2 limitations
@ 2022-08-15 13:52 Petko Manolov
  2022-08-18  9:27 ` Petko Manolov
  0 siblings, 1 reply; 8+ messages in thread
From: Petko Manolov @ 2022-08-15 13:52 UTC (permalink / raw)
  To: linux-media

	Hello guys,

I'm developing a driver for Sony imx492 sensor and i'm using imx8m-mini
(Variscite SoM on Symphony carrier board) platform.  Thanks to Laurent i dumped
the vendor mipi-csi and csi-bridge drivers in favor of mainline (v5.19-rc6 atm)
and parts started to click in place.  However, there are still a few rough
edges.

The sensor is 47mpix, and is only capable of streaming over all four CSI-2
lanes.  Each lane is 1.728gbit, which makes 6.912gbps total bandwidth.
imx8m-mini's d-phy can handle (on paper) up to 6gbps.

I guess the main question here is: what's the fastest transfer rate that's known
to work with this SoC?  Does anyone have experience with imx8m-mini in this
regard?


Even with the settings that i'm able to obtain a (distorted) test pattern image
with, i keep getting tons of:

[99910.847591] imx-mipi-csis 32e30000.mipi-csi: FIFO Overflow Error events: 1353347

IRQs also look a suspicious on the 'csi' part:

214:    2653716          0          0          0     GICv3  49 Level     32e30000.mipi-csi
215:          2          0          0          0     GICv3  48 Level     csi

That's with this clock setup:

 sys_pll2                             1        1        0  1000000000          0     0  50000         Y
    sys_pll2_out                      5        5        0  1000000000          0     0  50000         Y
       sys_pll2_1000m                 3        3        0  1000000000          0     0  50000         Y
          csi1_phy_ref                1        1        0  1000000000          0     0  50000         Y
          csi1_core                   1        1        0   500000000          0     0  50000         Y
             csi1_root_clk            1        1        0   500000000          0     0  50000         Y

However, if i change the latter two (csi1_core & csi1_root_clk) to 1ghz, there
are still mipi-csi IRQs coming in, but nothing from the csi-bridge.

Any advice on where i shall start looking first?


thanks,
Petko

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-09-01 15:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-15 13:52 imx8m-mini csi-2 limitations Petko Manolov
2022-08-18  9:27 ` Petko Manolov
2022-08-18 10:51   ` Jacopo Mondi
2022-08-18 12:41     ` Alexander Stein
2022-08-18 15:44       ` Petko Manolov
2022-08-18 15:37     ` Petko Manolov
2022-08-18 22:38       ` Laurent Pinchart
2022-09-01 15:20     ` Petko Manolov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.