Hello Dave, On Tue, 21 Sept 2021 at 11:41 +0100, Dave Stevenson: > Whilst the spec is restricted, there are a few introductions that > give > a basic understanding, eg [1] Thanks, this helped a bit. > Clock lanes and data lanes may do slightly different things. It is > not > uncommon for the clock lane to remain in HS mode at all times, but > the > data lanes will almost always drop to LP-11. Device tree has a > clock-noncontinuous property to denote that the clock lane drops to > LP, which maps to the V4L2 flag V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK. > There is no mention in the datasheet as to whether IMX290/327 > produces > a continuous clock signal or not, and I can't say that I've checked. > Some receivers can get confused if the clock is continuous and they > miss the initial state change from LP to HS. Who drives the clock lane? The sensor or the host processor? If it is the sensor how do you support several sensors on the same bus? > > > > > > I assume now that my current problem regarding settle time is > > somewhere else. I can currently only assume the escape clock is not correct, > > but there is pretty much no documentation at all on that topic. > > What platform are you working with? I'm working on an i.MX8QM based board. A public RM is available since several days [1]. The MIPI-CSI subsystem chapters are a bit lacking. Also I am aware that the ISI does some strange things with CSI input, see also [1], but that is a different issue. As far as I understand different documents, the escape clock is used during LP-11 and shall be from 10 to 20 MHz. The device tree configures some clock to 72MHz [2], but I do not know what's happening internally. I used the same approach for calculating the settle time as [3]. But I have to use a value slightly below the maximum rather than the average > There are registers in the IMX290/327 which configure the MIPI > timings > - 0x3445-0x3455. The values do differ based on the link frequency, > but > checking our driver to the datasheet they appear to be all correct. Agreed. [1] https://www.nxp.com/docs/en/reference-manual/IMX8QMRM.pdf [2] https://yhbt.net/lore/all/20200226151431.GY5379@xxxxxxxxxxxxxxxxxxxxxx/T/ [3] https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi?h=lf-5.10.y#n516 [4] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/media/imx/imx8mq-mipi-csi2.c#n343 -- Mit freundlichen Grüßen i.A. Alexander Stein Entwicklung Standort Chemnitz Tel. +49 371 433151-0, Fax +49 371 433151-22 Zwickauer Straße 173, 09116 Chemnitz mailto: Alexander.Stein@xxxxxxxxxxxx TQ-Systems GmbH Mühlstraße 2, Gut Delling, 82229 Seefeld Amtsgericht München, HRB 105018 Sitz der Gesellschaft: Seefeld Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider www.tq-group.com