Re: [PATCH v4 00/13] media: rcar-fcp, vsp1: Enable on R-Car X5H
From: Geert Uytterhoeven
Date: Wed Dec 02 2026 - 02:55:23 EST
Hi Laurent,
On Wed, 2 Dec 2026 at 03:27, Laurent Pinchart
<laurent.pinchart@xxxxxxxxxxxxxxxx> wrote:
> 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@xxxxxxxxxxxxxxxx>
> >
> > 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.
How can it cause failures if no driver actually manages the
clock(s)? ;-)
This is now purely (unused) hardware description in DTS.
> The situation is similar for VSP.
>
> What's your opinion on this design ?
OK.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
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