From: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 3/3] media: rcar-csi2: Add support for C-PHY on R-Car V4H
Date: Mon, 13 Feb 2023 17:10:56 +0100 [thread overview]
Message-ID: <Y+phEOUAVMsWadOG@oden.dyn.berto.se> (raw)
In-Reply-To: <CAMuHMdW4A9zx6SMFUZUz9EBCedRpiB3aJsXv+5V2ggx_09NbbQ@mail.gmail.com>
Hi Geert,
Thanks for your feedback.
On 2023-02-13 16:45:18 +0100, Geert Uytterhoeven wrote:
> Hi Niklas,
>
> On Sat, Feb 11, 2023 at 4:06 PM Niklas Söderlund
> <niklas.soderlund+renesas@ragnatech.se> wrote:
> > Add support for C-PHY on R-Car V4H. While the V4H supports both D-PHY
> > and C-PHY this patch only adds support for the C-PHY mode due to lack of
> > documentation and hardware to test on.
> >
> > The V4H is the first Gen4 device that is enabled in the rcar-csi2
> > driver. There is much overlap with the Gen3 driver, the primary
> > difference is in how the receiver is started. The V4H have a much larger
> > register space and some addresses overlap with Gen3.
> >
> > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
>
> Thanks for your patch!
>
> > --- a/drivers/media/platform/renesas/rcar-vin/rcar-csi2.c
> > +++ b/drivers/media/platform/renesas/rcar-vin/rcar-csi2.c
>
> > @@ -1503,6 +1781,12 @@ static const struct rcar_csi2_info rcar_csi2_info_r8a779a0 = {
> > .support_dphy = true,
> > };
> >
> > +static const struct rcar_csi2_info rcar_csi2_info_r8a779g0 = {
> > + .start_receiver = rcsi2_start_receiver_v4h,
>
> The description of "[PATCH 1/3] media: rcar-csi2: Prepare for Gen4
> support" suggests you also need a different procedure for
> .enter_standby()? But perhaps not doing the procedure is just the right
> thing to do?
They are indeed different, but doing nothing in enter_standby() for V4H
is the correct thing.
Maybe the function enter_standby(), could have been better named as
enter_standby_extra() or pre_enter_standby(). As for both on Gen3 and
V4H after enter_standby(), if present, have been called the rest
controller is asserted and the module is powers off.
Only that on Gen3 which have more documentation an extra step to poke
some registers before asserting the reset controller is documented, so
this is what happens in rcsi2_enter_standby_gen3(). I would not be
surprised as we get more documentation for V4H we will add a
rcsi2_enter_standby_gen4() to match updates in the datasheet.
>
> > + .use_isp = true,
> > + .support_cphy = true,
> > +};
> > +
> > static const struct of_device_id rcar_csi2_of_table[] = {
> > {
> > .compatible = "renesas,r8a774a1-csi2",
>
> 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:[~2023-02-13 16:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-11 14:53 [PATCH 0/3] media: rcar-csi2: Add support for V4H Niklas Söderlund
2023-02-11 14:53 ` [PATCH 1/3] media: rcar-csi2: Prepare for Gen4 support Niklas Söderlund
2023-02-13 15:41 ` Geert Uytterhoeven
2023-02-13 16:04 ` Niklas Söderlund
2023-02-11 14:53 ` [PATCH 2/3] media: rcar-csi2: Prepare for C-PHY support Niklas Söderlund
2023-02-11 14:53 ` [PATCH 3/3] media: rcar-csi2: Add support for C-PHY on R-Car V4H Niklas Söderlund
2023-02-13 15:45 ` Geert Uytterhoeven
2023-02-13 16:10 ` Niklas Söderlund [this message]
2023-04-18 6:45 ` [PATCH 0/3] media: rcar-csi2: Add support for V4H Hans Verkuil
2023-04-24 19:03 ` Niklas Söderlund
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=Y+phEOUAVMsWadOG@oden.dyn.berto.se \
--to=niklas.soderlund+renesas@ragnatech.se \
--cc=geert@linux-m68k.org \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox