All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "Paul Elder" <paul.elder+renesas@ideasonboard.com>,
	"Stephen Boyd" <sboyd@kernel.org>,
	"Brian Masney" <bmasney+clk@redhat.com>,
	"Jerome Brunet" <jbrunet+clk@baylibre.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Magnus Damm" <magnus.damm@gmail.com>,
	"Ulf Hansson" <ulfh@kernel.org>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>,
	"Philipp Zabel" <p.zabel@pengutronix.de>,
	"Kieran Bingham" <kieran.bingham+renesas@ideasonboard.com>,
	linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-pm@vger.kernel.org, linux-media@vger.kernel.org,
	"Niklas Söderlund" <niklas.soderlund@ragnatech.se>
Subject: Re: [PATCH DNI v4 13/13] media: rcar-fcp: Check device revision at probe time
Date: Wed, 2 Dec 2026 11:59:19 +0900	[thread overview]
Message-ID: <20261202025919.GD372687@killaraus.ideasonboard.com> (raw)
In-Reply-To: <CAMuHMdVh2RiRhBHmuYupK5H81njgaqNCuFWVUiHjTN17+8a+dQ@mail.gmail.com>

CC'ing Niklas.

On Mon, Nov 09, 2026 at 03:10:41PM +0100, Geert Uytterhoeven wrote:
> On Mon, 9 Nov 2026 at 14:36, Paul Elder wrote:
> > From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> >
> > Verify that the device revision register reports a valid value,
> > otherwise reject the device.
> >
> > Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> > Signed-off-by: Paul Elder <paul.elder+renesas@ideasonboard.com>
> 
> Thanks for the update!
> 
> > ---
> > Changes since v2:
> 
> You missed the changes since v3...
> 
> > --- a/drivers/media/platform/renesas/rcar-fcp.c
> > +++ b/drivers/media/platform/renesas/rcar-fcp.c
> > @@ -14,28 +14,80 @@
> 
> >
> > -#define RCAR_FCP_REG_RST               0x0010
> > -#define RCAR_FCP_REG_RST_SOFTRST       BIT(0)
> > -#define RCAR_FCP_REG_STA               0x0018
> > -#define RCAR_FCP_REG_STA_ACT           BIT(0)
> > +#define RCAR_FCP_REG_VCR                       0x0000
> > +#define RCAR_FCP_REG_VCR_CATEGORY              (1 << 8)
> > +#define RCAR_FCP_REG_VCR_REVISION_H3_ES1       (1 << 0)
> > +#define RCAR_FCP_REG_VCR_REVISION_M3W          (2 << 0)
> > +#define RCAR_FCP_REG_VCR_REVISION_V3M          (3 << 0)
> > +#define RCAR_FCP_REG_VCR_REVISION_H3           (4 << 0)
> > +#define RCAR_FCP_REG_VCR_REVISION_D3           (5 << 0)
> > +#define RCAR_FCP_REG_VCR_REVISION_M3N          (6 << 0)
> > +#define RCAR_FCP_REG_VCR_REVISION_V3H          (7 << 0)
> > +#define RCAR_FCP_REG_VCR_REVISION_E3           (8 << 0)
> 
> For R-Car V3U, the revision number is 9 (according to the documentation,
> I haven't boot-verified this), which is missing.

Niklas, do you still have a Falkon board ? Would you be able to read the
value of the RCAR_FCP_REG_VCR register ?

> > +#define RCAR_FCP_REG_VCR_REVISION_V4H          (10 << 0)
> > +#define RCAR_FCP_REG_VCR_REVISION_V4M          (11 << 0)
> > +#define RCAR_FCP_REG_VCR_REVISION_X5H_V1       (12 << 0)
> 
> "git grep -l renesas,fcp -- arch/arm64/boot/dts/renesas/*dtsi"
> shows a few more SoCs having FCP blocks.
> 
> Interestingly, the documentation for all of the recent RZ parts (G2UL,
> G2L, V2L, G3L, G3E, V2N, V2H, T2H, N2H) claims they use 9, just like
> R-Car V3U.

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2026-12-02  2:59 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-09 13:34 [PATCH v4 00/13] media: rcar-fcp, vsp1: Enable on R-Car X5H Paul Elder
2026-11-09 13:34 ` [PATCH v4 01/13] dt-bindings: clock: renesas,r8a78000-cpg: Add CPG_SGDn_VIO_DP_{TX,OTHER} Paul Elder
2026-11-10  9:30   ` Krzysztof Kozlowski
2026-11-11  9:14     ` Paul Elder
2026-11-11  9:16       ` Krzysztof Kozlowski
2026-11-11 11:09         ` Geert Uytterhoeven
2026-11-11  9:16   ` Krzysztof Kozlowski
2026-11-09 13:34 ` [PATCH v4 02/13] pmdomain: renesas: r8a78000: Add SCMI maps for VIO Paul Elder
2026-11-12 14:14   ` Geert Uytterhoeven
2026-11-09 13:34 ` [PATCH v4 03/13] arm64: renesas: r8a78000: Add FCPV[BI] nodes Paul Elder
2026-11-12 14:46   ` Geert Uytterhoeven
2026-12-02  2:32     ` Laurent Pinchart
2026-11-09 13:34 ` [PATCH v4 04/13] arm64: renesas: r8a78000: Add VSP[BI] nodes Paul Elder
2026-11-12 14:50   ` Geert Uytterhoeven
2026-12-02  2:35     ` Laurent Pinchart
2026-11-09 13:34 ` [PATCH v4 05/13] arm64: renesas: r8a78000: Add FCPVD and VSPD nodes Paul Elder
2026-11-12 14:57   ` Geert Uytterhoeven
2026-11-09 13:34 ` [PATCH v4 06/13] media: vsp1: Support full VSPB on R-Car M3-W, M3-N and E3 Paul Elder
2026-11-09 13:34 ` [PATCH v4 07/13] media: vsp1: Add device info entries for VSPD on X5H Paul Elder
2026-11-09 13:34 ` [PATCH v4 08/13] media: rcar-fcp: Handle resets Paul Elder
2026-11-09 13:34 ` [PATCH v4 09/13] media: vsp1: Fix access to reserved registers Paul Elder
2026-11-09 13:34 ` [PATCH v4 10/13] media: vsp1: Fix du_complete race condition issue Paul Elder
2026-11-09 13:34 ` [PATCH v4 11/13] dt-bindings: Increase Renesas X5H MDLC PD specifier bit width Paul Elder
2026-11-12 15:09   ` Geert Uytterhoeven
2026-11-09 13:34 ` [PATCH v4 12/13] media: vsp1: Complete buffers as queued in start_streaming error path Paul Elder
2026-11-09 13:34 ` [PATCH DNI v4 13/13] media: rcar-fcp: Check device revision at probe time Paul Elder
2026-11-09 14:10   ` Geert Uytterhoeven
2026-12-02  2:59     ` Laurent Pinchart [this message]
2026-11-12 13:37 ` [PATCH v4 00/13] media: rcar-fcp, vsp1: Enable on R-Car X5H Geert Uytterhoeven
2026-12-02  2:26   ` Laurent Pinchart
2026-12-02  1:33 ` 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=20261202025919.GD372687@killaraus.ideasonboard.com \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=bmasney+clk@redhat.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=jbrunet+clk@baylibre.com \
    --cc=kieran.bingham+renesas@ideasonboard.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=niklas.soderlund@ragnatech.se \
    --cc=p.zabel@pengutronix.de \
    --cc=paul.elder+renesas@ideasonboard.com \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=ulfh@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 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.