The Linux Kernel Mailing List
 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,
	Phong Hoang <phong.hoang.wz@renesas.com>,
	Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Subject: Re: [PATCH v4 00/13] media: rcar-fcp, vsp1: Enable on R-Car X5H
Date: Wed, 2 Dec 2026 11:26:52 +0900	[thread overview]
Message-ID: <20261202022652.GA372687@killaraus.ideasonboard.com> (raw)
In-Reply-To: <CAMuHMdVeX=6DCLv5GZo1UFU2Nn1Y4zGxCMovxyQGefO+JpuZ8w@mail.gmail.com>

On Thu, Nov 12, 2026 at 02:37:46PM +0100, Geert Uytterhoeven wrote:
> On Mon, 9 Nov 2026 at 14:34, Paul Elder wrote:
> > This series is based on Geert's
> > "topic/rcar-x5h-ironhide-scmi-cpg-mdlc-remapping-v4-rebased" branch [0].
> > A branch including this series is available here [1].
> >
> > This series enables the FCPV{B,I,D} and the VSP{B,I,D} blocks on the Renesas
> > R-Car X5H SoC.
> >
> > This has been tested on an Ironhide with the vsp-tests test suite [2].
> >
> > Full summary:
> > /dev/media0 (VSP2-D (a)): 114 tests: 99 passed, 0 failed, 15 skipped
> > /dev/media1 (VSP2-D (a)): 114 tests: 99 passed, 0 failed, 15 skipped
> > /dev/media10 (VSP2-I): 157 tests: 150 passed, 0 failed, 7 skipped
> > /dev/media11 (VSP2-I): 157 tests: 150 passed, 0 failed, 7 skipped
> > /dev/media12 (VSP2-I): 157 tests: 150 passed, 0 failed, 7 skipped
> > /dev/media13 (VSP2-I): 157 tests: 150 passed, 0 failed, 7 skipped
> > /dev/media14 (VSP2-B): 127 tests: 116 passed, 0 failed, 11 skipped
> > /dev/media15 (VSP2-B): 127 tests: 116 passed, 0 failed, 11 skipped
> > /dev/media16 (VSP2-B): 127 tests: 116 passed, 0 failed, 11 skipped
> > /dev/media17 (VSP2-B): 127 tests: 116 passed, 0 failed, 11 skipped
> > /dev/media18 (VSP2-B): 127 tests: 116 passed, 0 failed, 11 skipped
> > /dev/media2 (VSP2-D (a)): 114 tests: 99 passed, 0 failed, 15 skipped
> > /dev/media3 (VSP2-D (a)): 114 tests: 99 passed, 0 failed, 15 skipped
> > /dev/media4 (VSP2-D (a)): 114 tests: 99 passed, 0 failed, 15 skipped
> > /dev/media5 (VSP2-D (b)): 114 tests: 99 passed, 0 failed, 15 skipped
> > /dev/media6 (VSP2-D (b)): 114 tests: 99 passed, 0 failed, 15 skipped
> > /dev/media7 (VSP2-D (b)): 114 tests: 99 passed, 0 failed, 15 skipped
> > /dev/media8 (VSP2-D (b)): 114 tests: 99 passed, 0 failed, 15 skipped
> > /dev/media9 (VSP2-D (b)): 114 tests: 99 passed, 0 failed, 15 skipped
> >
> > The last patch checks the device revision and prints it, which is useful
> > for debugging but is unnecessary processing for driver operation so it
> > is marked as DNI as well.
> >
> > In v3, most of the patches have become DNI because they depend on wip
> > cpg and mdlc driver work. The non-DNI patches are targets for immediate
> > upstreaming though.
> >
> > In v4, thanks to Geert's new rebased branch, all the clocks and power
> > domains that were in DNI limbo have now graduated from DNI status.
> >
> > [0] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/log/?h=topic/rcar-x5h-ironhide-scmi-cpg-mdlc-remapping-v4-rebased
> > [1] https://git.ideasonboard.com/epaul/linux/src/branch/epaul/v7.4-rc1/x5h/vsp/fcp
> > [2] https://git.ideasonboard.com/renesas/vsp-tests/src/branch/epaul/fix
> >
> > Signed-off-by: Paul Elder <paul.elder+renesas@ideasonboard.com>
> 
> Thanks for the update!
> 
> > Changes in v4:
> > - Change the clocks in the dt nodes to use SGD1 instead of SGD4. (see
> >   patch 1 for details)
> > - Removed "clk: renesas: r8a78000: Add clock for FCPV and VSP for SCP FW SDKv4.36"
> 
> And it still works without providing these clocks because the fcpv
> and vsp2 drivers do not manage clocks, right?

That patch added the SGD4 clocks as fixed clocks. 

On X5H, the FCPV uses both the SGD1 and SGD4 clocks. The documentation
doesn't tell what each clock is used for, but the FCPC documentation
indicates that SGD1 is the AXI clock and SGD2 (FCPC uses SGD2 while FCPV
uses SGD4) the APB clock. I assume SGD1 is the AXI clock for FCPV as
well, and SGD4 the APB clock (for register acceess).

On previous generations, we only listed the MSTP clock in DT, as
documentation didn't mention any other clock. It may be that the
functional clock was used for both AXI and APB, but it may also be that
the APB interface used a different clock that can't be gated separately
from the AXI clock.

So for X5H, we decided to keep a single clock in DT, and list the SGD1
(AXI) clock there. SGD1 and SGD4 can't be controlled separately, so
listing both SGD1 and SGD4 would create complexity for no gain (as far
as I can tell). It would also cause failures with current SCP firmware,
which reference-counts those clocks separately. The SGD4 clock is
therefore not used in DT any more.

The situation is similar for VSP.

What's your opinion on this design ?

-- 
Regards,

Laurent Pinchart

  reply	other threads:[~2026-12-02  2:26 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
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 [this message]
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=20261202022652.GA372687@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=krzysztof.kozlowski@oss.qualcomm.com \
    --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=p.zabel@pengutronix.de \
    --cc=paul.elder+renesas@ideasonboard.com \
    --cc=phong.hoang.wz@renesas.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox