[Adding Steve and Philipp] On Thu, Jul 18, 2019 at 10:06 AM Laura Nao <laura.nao@xxxxxxxxxxxx> wrote: > > Hello Loic, > > I'm having some issues with RAW8 mode on the OV5640 camera and I'd like > to kindly ask for your advice, as I saw that you added support for RAW > mode in the mainline kernel driver. > > I'm trying to capture some raw images on a i.MX6Q based board. I > configured the pipeline as follows: > > media-ctl -l "'ov5640 1-003c':0 -> 'imx6-mipi-csi2':0[1]" > media-ctl -l "'imx6-mipi-csi2':2 -> 'ipu1_csi1':0[1]" > media-ctl -l "'ipu1_csi1':2 -> 'ipu1_csi1 capture':0[1]" > media-ctl -V "'ov5640 1-003c':0 [fmt:SBGGR8_1X8/2592x1944 field:none]" > media-ctl -V "'imx6-mipi-csi2':2 [fmt:SBGGR8_1X8/2592x1944 field:none]" > > I'm capturing the frame using v4l-utils: > > v4l2-ctl -d /dev/video5 --verbose --set-fmt > video=width=2592,height=1944,pixelformat=BA81 --stream-mmap > --stream-count=1 --stream-to=bggr_2592x1944.raw > > The images I'm obtaining are completely garbled. I tried both 5.2 > mainline and 5.1.18 kernels. > > I'm able to correctly capture YUV frames in all resolutions with the > same driver (with the pipeline configured to go through the > ipu1_ic_prpenc node first). > > Do you have any insight on what might be causing these issues? Is the > PLL configuration supposed to be changed when RAW8 format is selected? > > Thanks for your help, > > Best regards, > > Laura