From: "Mats Randgaard (matrandg)" <matrandg@cisco.com>
To: linux-media@vger.kernel.org
Cc: sakari.ailus@iki.fi
Subject: v4l2_mbus_config flags for CSI-2
Date: Tue, 02 Dec 2014 12:49:07 +0100 [thread overview]
Message-ID: <547DA733.8060804@cisco.com> (raw)
Hi,
I am writing a driver for Toshiba TC358743 HDMI to CSI-2 bridge. The
chip has four CSI lanes. Toshiba recommends to configure the CSI output
speed for the highest resolution the CSI interface can handle and reduce
the number of CSI lanes in use if the received video has lower
resolution. The number of CSI lanes in use is also reduced when the
bridge transmits YCbCr 4:2:2 encoded video instead of RGB888.
The plan was to use g_mbus_config for this, but it is not clear to me
what the different defines in include/media/v4l2-mediabus.h should be
used for:
/* How many lanes the client can use */
#define V4L2_MBUS_CSI2_1_LANE (1 << 0)
#define V4L2_MBUS_CSI2_2_LANE (1 << 1)
#define V4L2_MBUS_CSI2_3_LANE (1 << 2)
#define V4L2_MBUS_CSI2_4_LANE (1 << 3)
/* On which channels it can send video data */
#define V4L2_MBUS_CSI2_CHANNEL_0 (1 << 4)
#define V4L2_MBUS_CSI2_CHANNEL_1 (1 << 5)
#define V4L2_MBUS_CSI2_CHANNEL_2 (1 << 6)
#define V4L2_MBUS_CSI2_CHANNEL_3 (1 << 7)
Should I set V4L2_MBUS_CSI2_4_LANE since the device supports four lanes,
and set V4L2_MBUS_CSI2_CHANNEL_X according to the number of lanes in use?
Thanks,
Mats Randgaard
next reply other threads:[~2014-12-02 11:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 11:49 Mats Randgaard (matrandg) [this message]
2014-12-02 12:45 ` v4l2_mbus_config flags for CSI-2 Sakari Ailus
2014-12-02 13:50 ` Mats Randgaard (matrandg)
2014-12-02 22:06 ` Sakari Ailus
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=547DA733.8060804@cisco.com \
--to=matrandg@cisco.com \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@iki.fi \
/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.