From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>,
"Hans Verkuil" <hverkuil@xs4all.nl>,
"Mauro Carvalho Chehab" <mchehab@kernel.org>,
linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH] media: rcar-vin: Add support for RAW10
Date: Tue, 18 Jun 2024 17:51:13 +0300 [thread overview]
Message-ID: <20240618145113.GC17243@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20240618144101.GB17243@pendragon.ideasonboard.com>
On Tue, Jun 18, 2024 at 05:41:03PM +0300, Laurent Pinchart wrote:
> Hi Geert,
>
> On Wed, Apr 17, 2024 at 03:34:36PM +0200, Geert Uytterhoeven wrote:
> > On Wed, Apr 17, 2024 at 2:06 PM Niklas Söderlund wrote:
> > > Some R-Car SoCs are capable of capturing RAW10. Add support for it
> > > using the V4L2_PIX_FMT_Y10 pixel format, which I think is the correct
> > > format to express RAW10 unpacked to users.
> > >
> > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> >
> > Thanks for your patch!
> >
> > I am no VIN or V4L2 expert, but the register bits LGTM, so
> > Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
> >
> > > --- a/drivers/media/platform/renesas/rcar-vin/rcar-dma.c
> > > +++ b/drivers/media/platform/renesas/rcar-vin/rcar-dma.c
> > > @@ -780,6 +782,9 @@ static int rvin_setup(struct rvin_dev *vin)
> > > case MEDIA_BUS_FMT_Y8_1X8:
> > > vnmc |= VNMC_INF_RAW8;
> > > break;
> > > + case MEDIA_BUS_FMT_Y10_1X10:
> > > + vnmc |= VNMC_INF_RGB666;
> >
> > The actual meaning of this bit is not uniform across all SoCs.
> > On R-Car V3U it means (partial) 16 bpp, on R-Car Gen3 it means 18 bpp.
>
> The INF bits have different meanings depending on the VIN input. What
> you refer to above for V3U is for the CSI-2 input, while for the rest of
> Gen3 you quote the values for the parallel input. Value 111 is
> documented as "prohibit" for the CSI-2 input on the rest of Gen3.
To be precise, for V3U the documentation indicates "Input from Channel
Selector", not CSI-2. V3U has no parallel input.
The macros for the INF bits mix names for different types of inputs, it
could be a good idea to clean this up.
> > > + break;
> > > default:
> > > break;
> > > }
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2024-06-18 14:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-17 12:02 [PATCH] media: rcar-vin: Add support for RAW10 Niklas Söderlund
2024-04-17 13:34 ` Geert Uytterhoeven
2024-06-18 14:41 ` Laurent Pinchart
2024-06-18 14:51 ` Laurent Pinchart [this message]
2024-06-18 15:01 ` Niklas Söderlund
2024-06-18 15:08 ` Laurent Pinchart
2024-06-04 18:07 ` Niklas Söderlund
2024-06-18 14:57 ` Laurent Pinchart
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=20240618145113.GC17243@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=geert@linux-m68k.org \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
/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.