From: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v4 1/5] dt-bindings: media: renesas,vin: Add Gen4 family fallback
Date: Tue, 2 Jul 2024 11:06:10 +0200 [thread overview]
Message-ID: <20240702090610.GA2984619@ragnatech.se> (raw)
In-Reply-To: <CAMuHMdUrEf9KFKCawY_XPu0WuJwaE+Se21jx-d4X_Ef+f2S36Q@mail.gmail.com>
Hi Geert,
Thanks for your review.
On 2024-07-02 09:52:08 +0200, Geert Uytterhoeven wrote:
> Hi Niklas,
>
> On Mon, Jun 24, 2024 at 4:43 PM Niklas Söderlund
> <niklas.soderlund+renesas@ragnatech.se> wrote:
> > The two Gen4 SoCs released (V4H and V4M) that have a video capture
> > pipeline the VIN IP are very similar.
> >
> > The datasheet for the two SoCs have small nuances around the Pre-Clip
> > registers ELPrC and EPPrC in three use-cases, interlaced images,
> > embedded data and RAW8 input. On V4H the values written to the registers
> > are based on odd numbers while on V4M they are even numbers, values are
> > based on the input image size. No board that uses these SoCs which also
> > have the external peripherals to test these nuances exists. Most likely
> > this is an issue in the datasheet.
> >
> > Before adding bindings for V4M add a family compatible fallback for
> > Gen4. That way the driver only needs to be updated once for Gen4, and we
> > still have the option to fix any problems in the driver if any testable
> > differences between the two SoCs is found.
> >
> > There are already DTS files using the renesas,vin-r8a779g0 compatible
> > which needs to be updated to not produce a warning for DTS checks. And
> > the driver will need to kept compatible with renesas,vin-r8a779g0, but
> > for new Gen4 SoCs such as V4M we can avoid this.
> >
> > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> > ---
> > * Changes since v3
> > - New in v4.
>
> Thanks for your patch!
>
> > --- a/Documentation/devicetree/bindings/media/renesas,vin.yaml
> > +++ b/Documentation/devicetree/bindings/media/renesas,vin.yaml
> > @@ -53,7 +53,10 @@ properties:
> > - renesas,vin-r8a77990 # R-Car E3
> > - renesas,vin-r8a77995 # R-Car D3
> > - renesas,vin-r8a779a0 # R-Car V3U
>
> I think R-Car V3U should be moved below, too, as it's the first
> member of the R-Car Gen4 family, despite the name.
I was a bit conflicted about if I should do this and opted to for the
least intrusive change. But the change seems to have landed on a good
note, I will do a new version that covers V3U as well.
>
> > + - items:
> > + - enum:
> > - renesas,vin-r8a779g0 # R-Car V4H
> > + - const: renesas,rcar-gen4-vin # Generic R-Car Gen4
>
> If all differences in the pipeline can be devised from the topology
> in DT:
It can.
> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks!
>
> >
> > reg:
> > maxItems: 1
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
--
Kind Regards,
Niklas Söderlund
next prev parent reply other threads:[~2024-07-02 9:06 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 14:41 [PATCH v4 0/5] rcar-vin: Add support for R-Car V4M Niklas Söderlund
2024-06-24 14:41 ` [PATCH v4 1/5] dt-bindings: media: renesas,vin: Add Gen4 family fallback Niklas Söderlund
2024-06-26 11:44 ` Conor Dooley
2024-07-02 7:52 ` Geert Uytterhoeven
2024-07-02 9:06 ` Niklas Söderlund [this message]
2024-06-24 14:41 ` [PATCH v4 2/5] arm64: dts: renesas: r8a779g0: Add family fallback for VIN IP Niklas Söderlund
2024-07-02 7:52 ` Geert Uytterhoeven
2024-06-24 14:41 ` [PATCH v4 3/5] media: rcar-vin: Add family compatible for R-Car Gen4 family Niklas Söderlund
2024-07-02 7:57 ` Geert Uytterhoeven
2024-06-24 14:41 ` [PATCH v4 4/5] dt-bindings: media: renesas,vin: Add binding for V4M Niklas Söderlund
2024-06-26 11:39 ` Conor Dooley
2024-07-02 7:58 ` Geert Uytterhoeven
2024-06-24 14:41 ` [PATCH v4 5/5] arm64: dts: renesas: r8a779h0: Add family fallback for VIN IP Niklas Söderlund
2024-07-02 7:58 ` Geert Uytterhoeven
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=20240702090610.GA2984619@ragnatech.se \
--to=niklas.soderlund+renesas@ragnatech.se \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).