linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* OV5640 CSI2 problems
@ 2020-03-13 11:15 Tomi Valkeinen
  2020-03-17 10:22 ` OV5640 CSI2 problemsg Jacopo Mondi
  2020-03-17 11:01 ` OV5640 CSI2 problems Loic Poulain
  0 siblings, 2 replies; 7+ messages in thread
From: Tomi Valkeinen @ 2020-03-13 11:15 UTC (permalink / raw)
  To: Benoit Parrot, Loic Poulain, Maxime Ripard, Hugues Fruchet,
	Jacopo Mondi, Steve Longerbeam, linux-media

Hi all,

I've been testing and debugging OV5640 with TI's DRA76 and AM65 platforms, which have the CAL IP for 
MIPI CSI2 RX.

The most clear problem is that 1280x720@30 doesn't work at all, but with all resolutions I can see 
occasional PHY errors reported when starting the streaming.

The OV5640 spec lists the video timings, but I haven't been able to figure out what exactly they 
mean, as e.g. the vsync time doesn't seem to match the other times according to my calculations.

In any case, I was poking here and there, and noticed that if I use the htot value from the spec 
(2844), instead of the current value (1896 for most resolutions), 1280x720 works, and the PHY errors 
are gone.

Testing more, I found out that the smaller the htot, the more unreliable the RX becomes, and going 
down from 2844, somewhere around 2400 I start to see errors.

I'm not that much familiar with CSI-2, and very little with OV5640. Does anyone have a clue about 
what I'm observing here? Does 1280x720@30 work on other platforms with CSI2? Where do the current 
OV5640 video timings come from?

  Tomi

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

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

end of thread, other threads:[~2020-05-15 16:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-13 11:15 OV5640 CSI2 problems Tomi Valkeinen
2020-03-17 10:22 ` OV5640 CSI2 problemsg Jacopo Mondi
2020-03-17 12:40   ` Tomi Valkeinen
2020-03-17 14:43     ` Jacopo Mondi
2020-03-19 11:22     ` Tomi Valkeinen
2020-05-15 16:46       ` [RFC] media: i2c: ov5640: Rework CSI-2 clock tree Jacopo Mondi
2020-03-17 11:01 ` OV5640 CSI2 problems Loic Poulain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).