From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.167.242.64 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796178420; b=O61amDa8UcqS+Youx6/wD0qSzXjxBqOrZ7CwhezhlF3qAQCf310qGpiWZxXqcqUQtAKw hmdl8roNggftw5+CmtUIuMMadsJrN/yAyCYwSE99+7UjsX5dDwokaVO4AMFjqvVhDdu9r 9Yf+qbDJKYduj54rRV35tep2mP2CUnL21dBRjI0JBLlChqElmY93amWY/AH8TJ4Kyi3uT HGtX65Gt3m5bSEkoI3b+ADB//FlxBPiCnkPWsShxGH67/OmCP1kTCteBsWBEhowoyW7gt 8J8G00ZZ1W4YTKRpc0vzGexu7Cv1xazE8goldVmQlUyZgkFjLqYj3Dy452noiK/pPxg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796178420; h=DMARC-Filter:Received:DKIM-Signature:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=Ab8DKjtO06fFbzDNvJdC6pIpViJnFwB483qAxPJeuIk=; b=TRJnV3et8gJHntDeRq42nDjmN08tFmPbPmOYAMwNMXFjdh2uF6ymXx7w4AKuMmRiUk6p g7QcVM6ADFdI9zlb7rzkHXf3KkvukgTGrzoUSWQVet7g2DNby5THGS7v6WZDuChyK5z20 n91zZbqUqunZGPVpsyzkeplS9rgYYA4XXQ44rly2fT8c0gVDKgH7D3I+rNrDHFYbpyXtb zogGNwn+MvVb8NKxieUlGefbsuNKi3MfhYESCn2cQMuGfvOAfSXoLcSS+vsC5b9oe82ux mBgCws+xHdX6TN9FZrDZqfGydna5+px+7VVv9I8j1zj2jjHu4Z7Ez/wMTWJIwPx7tTA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass header.d=ideasonboard.com header.i=@ideasonboard.com header.a=rsa-sha256 header.s=mail header.b=sG49d4fG; arc=none smtp.remote-ip=213.167.242.64 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6CA6606A31A; Wed, 2 Dec 2026 02:26:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E6CA6606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.a=rsa-sha256 header.s=mail header.b=sG49d4fG Received: from killaraus.ideasonboard.com (M106072015001.v4.enabler.ne.jp [106.72.15.1]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 0E606C13; Wed, 2 Dec 2026 03:24:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1796178258; bh=Atxbboq+usR8L+zv6IARSkRgHIbARp6EB4eVG+GuD/I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sG49d4fGmZ38gZffp7/7KBqSxHxJyOGUDlynjjmwq9ZM1xLMw8VA8N9ExWfGVfoRt qORU5mT0VN0TuSiF6PlSrK0BPcAuHPGm0zE+DMiOf1idivvoa3Hg+eOTM2wrhgjLBu wjv61aMMLi6U5wr2az2MhEfKCdsr7zi72nzpNChM= Date: Wed, 2 Dec 2026 11:26:52 +0900 From: Laurent Pinchart To: Geert Uytterhoeven Cc: Paul Elder , Stephen Boyd , Brian Masney , Jerome Brunet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Magnus Damm , Ulf Hansson , Mauro Carvalho Chehab , Philipp Zabel , Kieran Bingham , 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 , Krzysztof Kozlowski Subject: Re: [PATCH v4 00/13] media: rcar-fcp, vsp1: Enable on R-Car X5H Message-ID: <20261202022652.GA372687@killaraus.ideasonboard.com> References: <20261109-epaul-v7-3-rc1-x5h-vsp-fcp-v4-0-1b2072e8c37e@ideasonboard.com> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 > > 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