Re: i.MX6 MIPI-CSI2 OV5640 Camera testing on Mainline Linux
From: Sakari Ailus
Date: Fri Jun 01 2018 - 05:53:31 EST
On Fri, Jun 01, 2018 at 10:49:56AM +0530, Jagan Teki wrote:
> Hi Philipp,
>
> On Fri, Jun 1, 2018 at 12:36 AM, Philipp Zabel <pza@xxxxxxxxxxxxxx> wrote:
> > Hi Jagan,
> >
> > On Thu, May 31, 2018 at 08:39:20PM +0530, Jagan Teki wrote:
> >> Hi All,
> >>
> >> I'm trying to verify MIPI-CSI2 OV5640 camera on i.MX6 platform with
> >> Mainline Linux.
> >>
> >> I've followed these[1] instructions to configure MC links and pads
> >> based on the probing details from dmesg and trying to capture
> >> ipu1_ic_prpenc capture (/dev/video1) but it's not working.
> >>
> >> Can anyone help me to verify whether I configured all the details
> >> properly if not please suggest.
> >>
> >> I'm pasting full log here, so-that anyone can comment in line and dt
> >> changes are at [2]
> >>
> >> Log:
> >> -----
> > [...]
> >> # media-ctl -l "'ov5640 2-003c':0 -> 'imx6-mipi-csi2':0[1]"
> >> # media-ctl -l "'imx6-mipi-csi2':2 -> 'ipu1_csi1':0[1]"
> >> # media-ctl -l "'ipu1_csi1':1 -> 'ipu1_ic_prp':0[1]"
> >> # media-ctl -l "'ipu1_ic_prp':1 -> 'ipu1_ic_prpenc':0[1]"
> >> # media-ctl -l "'ipu1_ic_prpenc':1 -> 'ipu1_ic_prpenc capture':0[1]"
> >
> > Here you configure a pipeline that ends at ipu1 prpenc capture ...
> >
> >> # med# media-ctl -p
> > [...]
> >> - entity 18: ipu1_ic_prpenc capture (1 pad, 1 link)
> >> type Node subtype V4L flags 0
> >> device node name /dev/video0
> >
> > ... which is /dev/video0 ...
> >
> > [...]
> >> - entity 27: ipu1_ic_prpvf capture (1 pad, 1 link)
> >> type Node subtype V4L flags 0
> >> device node name /dev/video1
> >
> > ... not /dev/video1 ...
>
> True, thanks for pointing it.
>
> I actually tried even on video0 which I forgot to post the log [4].
> Now I understand I'm trying for wrong device to capture look like
> video0 which is ipu1 prepenc firing kernel oops. I'm trying to debug
> this and let me know if have any suggestion to look into.
>
> [ 56.800074] imx6-mipi-csi2: LP-11 timeout, phy_state = 0x000002b0
> [ 57.369660] ipu1_ic_prpenc: EOF timeout
> [ 57.849692] ipu1_ic_prpenc: wait last EOF timeout
> [ 57.855703] ipu1_ic_prpenc: pipeline start failed with -110
I don't have the hardware but this looks like the host cannot detect the
LP-11 state on the sensor (both wires high?). Some sensors cannot do this
without starting streaming at the same time. I'd expect the same if there
are problems in lane configuration etc.
--
Sakari Ailus
e-mail: sakari.ailus@xxxxxx