From: Javier Martin <javiermartin@by.com.es>
To: linux-media <linux-media@vger.kernel.org>
Subject: i.MX6 video capture support in mainline
Date: Tue, 23 Jun 2015 12:20:39 +0200 [thread overview]
Message-ID: <558932F7.3070509@by.com.es> (raw)
Hello,
we have an BD-SL-i.MX6 platform (compatible with the Nitrogen6X) where
we are currently running the BSP from Freescale, which is based on
kernel 3.10 if I recall properly.
We are aware that those drivers have some issues, specially when it
comes to compliance with the V4L2 frameworks like the media controller
API, stability, etc...
Furthermore, we need to use the mainline kernel because some of the
drivers that we need to use are not available in the Freescale kernel.
The biggest problem that we have found so far for switching to the
mainline kernel is the video capture support in the I.MX6 IPU. I've been
following some old e-mail threads (from 2014) and I eventually found
Philipp Zabel's repository branch 'nitrogen6x-ipu-media' which has what
seems to be an early version of an i.MX6 IPU capture driver via the CSI
interface.
We've got here the same setup with an ov5642 sensor connected to the CSI
interface and we have been giving a try to the driver.
This is what we have tried so far:
cat /dev/video0 # This is needed so that open gets called and the csi
links are created
media-ctl -l '"ov5642 1-003c":0->"mipi_ipu1_mux":1[1],
"/soc/ipu@02400000/port@0":1->"IPU0 SMFC0":0[1]'
media-ctl -l '"IPU0 SMFC0":1->"imx-ipuv3-camera.2":0[1]'
The last command will fail like this:
imx-ipuv3 2400000.ipu: invalid link 'IPU0 SMFC0'(5):1 ->
'imx-ipuv3-camera.2'(2):0
Unable to parse link: Invalid argument (22)
The reason it fails, apparently, is that the links that have been
created when opening /dev/video0 are not included in the "ipu_links[]"
static table defined in "drivers/gpio/ipu-v3/ipu-media.c" which is where
the "ipu_smfc_link_setup()" function tries to find a valid link.
I've got some questions regarding this driver and iMX6 video capture
support in general that someone here may gladly answer:
a) Is anyone currently working on mainlining iMX6 video capture support?
I know about Steve's and Philipp's work but I haven't seen any progress
since September 2014.
b) Does anyone know whether it's possible to capture YUV420P video using
the driver in Philipp's repository? If so could you please provide the
pipeline setup that you used with media-ctl?
c) If we were willing to help with mainline submission of this driver
what issues should we focus on?
Regards,
Javier.
[1] git://git.pengutronix.de/git/pza/linux.git
next reply other threads:[~2015-06-23 10:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-23 10:20 Javier Martin [this message]
2015-06-25 13:16 ` i.MX6 video capture support in mainline Philipp Zabel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=558932F7.3070509@by.com.es \
--to=javiermartin@by.com.es \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.