Does S2D13P04 chip works with colibri iMX6?


We need a 4 channel video decoder that decodes simultaneously. And found a a Multi Camera Module wiki.

After some search, found its driver at tegra sources.

Can we run this device at Colibri iMX6 ?

We are using Colibri-iMX6_LXDE-Image_2.8b4.129-20181005 tag as base to a custom image. And real time kernel 4.9
It seems tegra-next have kernel 3. Should we need to port to 4.9 RT ?

It seems is not compatible with kernel 4. Got these errors:

/opt/yocto/build/tmp-glibc/work/colibri_imx6-angstrom-linux-gnueabi/s2d13p04/0.1-r0/s2d13p04.c:399:3: error: dereferencing pointer to incomplete type 'enum v4l2_mbus_pixelcode'
   *code = V4L2_MBUS_FMT_YUYV8_2X8;
/opt/yocto/build/tmp-glibc/work/colibri_imx6-angstrom-linux-gnueabi/s2d13p04/0.1-r0/s2d13p04.c:399:11: error: 'V4L2_MBUS_FMT_YUYV8_2X8' undeclared (first use in this function); did you mean 'MEDIA_BUS_FMT_YUYV8_2X8'?
   *code = V4L2_MBUS_FMT_YUYV8_2X8;

And there is no V4L2_MBUS_FMT_YUYV8_2X8 at 4.9 sources.

Thanks @jaski.tx.
We will try to find another chip to get 4 channel video simultaneously which have supported already.

Thanks for your feedback.

Best regards,

hi @huseyinkozan

I searched in the Internet and I think, this driver was never ported to the iMX or Linux Mainline Kernel. So you will have to do it yourself.

We don’t have any experience porting this driver to the newer Linux kernel.

Best regards,