From: Hyun Kwon <hyun.kwon@xilinx.com>
To: Jacopo Mondi <jacopo+renesas@jmondi.org>
Cc: "mchehab@kernel.org" <mchehab@kernel.org>,
"hverkuil-cisco@xs4all.nl" <hverkuil-cisco@xs4all.nl>,
"sakari.ailus@linux.intel.com" <sakari.ailus@linux.intel.com>,
"laurent.pinchart@ideasonboard.com"
<laurent.pinchart@ideasonboard.com>,
"dave.stevenson@raspberrypi.com" <dave.stevenson@raspberrypi.com>,
"niklas.soderlund+renesas@ragnatech.se"
<niklas.soderlund+renesas@ragnatech.se>,
"kieran.bingham@ideasonboard.com"
<kieran.bingham@ideasonboard.com>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH 0/4] v4l2-subdev: Introduce get_mbus_format pad op
Date: Wed, 1 Apr 2020 15:30:29 -0700 [thread overview]
Message-ID: <20200401223027.GA583@smtp.xilinx.com> (raw)
In-Reply-To: <20200313144035.401430-1-jacopo+renesas@jmondi.org>
Hi Jacopo,
Thanks for the patch.
On Fri, 2020-03-13 at 07:40:31 -0700, Jacopo Mondi wrote:
> This series introduces a pad oriented operation, much similar to the existing
> s/g_mbus_config subdv video operation, to allow dyanmic negotiation of media
> bus parameter.
>
> The existing s/g_mbus_format are on their way to deprecation, due to the fact
> they operate at device level being a video op instead of pad level as this new
> implementation does.
>
> The use case I'm addressing is described here, in the RFC sent one year ago
> on top of Sakari's v4l-multiplexed work, where I tried to extend the frame
> descriptor to transport media bus information.
>
> Quoting:
> https://patchwork.kernel.org/cover/10855919/
> "The use case this series cover is the following one:
> the Gen-3 R-Car boards include an ADV748x HDMI/CVBS to CSI-2 converter
> connected to its CSI-2 receivers. The ADV748x chip has recently gained support
> for routing both HDMI and analogue video streams through its 4 lanes TXA
> transmitter, specifically to support the Ebisu board that has a single CSI-2
> receiver, compared to all other Gen-3 board where the ADV748x TXes are connected
> to different CSI-2 receivers, and where analogue video is streamed out from the
> ADV748x single lane TXB transmitter.
> To properly support transmission of analogue video through TXA, the number of
> data lanes shall be dynamically reduced to 1, in order to comply with the MIPI
> CSI-2 minimum clock frequency requirements"
>
> During the discussion of the RFC, Dave reported another use case for media
> bus parameter negotiation on his platform:
> https://patchwork.kernel.org/patch/10855923/#22569149
And as you know, there's another use case for GMSL, and this patch set helps
negotiation between serializer and de-serializer. :-) I added the GMSL
config for some parameters on top of this, and it works well.
>
> Another possible use case is for parallel bus multiplexing, where multiple image
> sensor share the parallel bus lines and they get activated alternatively through
> an enable signal. While this might not be most clever design, it's often seen
> in the wild, and this operation allow receivers to re-configure their bus
> parameter in between streaming session.
Even for parallel bus, I'm learning how diverse configurations can be.
For example, some ISP aligns bits in different way, MSB of color component
on d0. I'm sure there are a lot more creative ones out there, so this seems
quite useful to handle such accordingly.
Thanks,
-hyun
>
> For now I have left untouched definitions and users of the existing
> s/g_mbus_config ops, waiting for feedback on this first implementation.
>
> Thanks
> j
>
> Jacopo Mondi (4):
> media: i2c: adv748x: Adjust TXA data lanes number
> media: v4l2-subdv: Introduce get_mbus_config pad op
> media: i2c: adv748x: Implement get_mbus_config
> media: rcar-vin: csi2: Negotiate data lanes number
>
> drivers/media/i2c/adv748x/adv748x-core.c | 31 +++++++---
> drivers/media/i2c/adv748x/adv748x-csi2.c | 15 +++++
> drivers/media/i2c/adv748x/adv748x.h | 1 +
> drivers/media/platform/rcar-vin/rcar-csi2.c | 49 ++++++++++++++-
> include/media/v4l2-subdev.h | 67 +++++++++++++++++++++
> 5 files changed, 153 insertions(+), 10 deletions(-)
>
> --
> 2.25.1
>
prev parent reply other threads:[~2020-04-01 22:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-13 14:40 [PATCH 0/4] v4l2-subdev: Introduce get_mbus_format pad op Jacopo Mondi
2020-03-13 14:40 ` [PATCH 1/4] media: i2c: adv748x: Adjust TXA data lanes number Jacopo Mondi
2020-04-07 22:19 ` Niklas Söderlund
2020-03-13 14:40 ` [PATCH 2/4] media: v4l2-subdv: Introduce get_mbus_config pad op Jacopo Mondi
2020-04-01 22:30 ` Hyun Kwon
2020-04-07 22:22 ` niklas.soderlund+renesas
2020-04-09 7:35 ` Jacopo Mondi
2020-04-10 0:30 ` Hyun Kwon
2020-04-10 10:24 ` niklas.soderlund+renesas
2020-04-10 19:26 ` Hyun Kwon
2020-04-15 2:22 ` Laurent Pinchart
2020-04-15 7:43 ` Jacopo Mondi
2020-04-15 10:35 ` Laurent Pinchart
2020-04-08 8:47 ` Sakari Ailus
2020-04-09 9:08 ` Jacopo Mondi
2020-03-13 14:40 ` [PATCH 3/4] media: i2c: adv748x: Implement get_mbus_config Jacopo Mondi
2020-04-07 22:24 ` Niklas Söderlund
2020-03-13 14:40 ` [PATCH 4/4] media: rcar-vin: csi2: Negotiate data lanes number Jacopo Mondi
2020-04-07 22:33 ` Niklas Söderlund
2020-04-09 7:40 ` Jacopo Mondi
2020-04-01 22:30 ` Hyun Kwon [this message]
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=20200401223027.GA583@smtp.xilinx.com \
--to=hyun.kwon@xilinx.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=hverkuil-cisco@xs4all.nl \
--cc=jacopo+renesas@jmondi.org \
--cc=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
--cc=sakari.ailus@linux.intel.com \
/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.