All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: Geert Uytterhoeven <geert@kernel.org>
Cc: "Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Stephen Boyd" <sboyd@kernel.org>,
	"Brian Masney" <bmasney+clk@redhat.com>,
	"Jerome Brunet" <jbrunet+clk@baylibre.com>,
	"Ulf Hansson" <ulfh@kernel.org>,
	"Philipp Zabel" <p.zabel@pengutronix.de>,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	"Marek Vasut" <marek.vasut+renesas@mailbox.org>,
	"Bartosz Golaszewski" <bartosz.golaszewski@oss.qualcomm.com>,
	"Konrad Dybcio" <konrad.dybcio@oss.qualcomm.com>,
	"Kevin Hilman" <khilman@baylibre.com>,
	"Vinod Koul" <vkoul@kernel.org>,
	"Kuninori Morimoto" <kuninori.morimoto.gx@renesas.com>,
	"Laurent Pinchart" <laurent.pinchart+renesas@ideasonboard.com>,
	"Paul Elder" <paul.elder+renesas@ideasonboard.com>,
	"Clément Le Goffic" <clegoffic@baylibre.com>,
	"Sudeep Holla" <sudeep.holla@kernel.org>,
	"Cristian Marussi" <cristian.marussi@arm.com>,
	devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	"Geert Uytterhoeven" <geert+renesas@glider.be>
Subject: Re: [PATCH v7 13/14] pmdomain: renesas: r8a78000: Add SCMI remapping support
Date: Wed, 2 Dec 2026 11:57:09 +0100	[thread overview]
Message-ID: <aw_5hSNi7koCuann@ninjato> (raw)
In-Reply-To: <080405b489d4fc780ad319cd09692ca33e039260.1796043912.git.geert+renesas@glider.be>

On Mon, Nov 30, 2026 at 02:12:44PM +0100, Geert Uytterhoeven wrote:
> From: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Extend the Module Controller driver for R-Car X5H with SCMI support, to
> remap hardware power domain, module, and reset IDs to abstractions
> (power domains, clocks, and resets) offered by the SCMI firmware when
> running on a system with SCMI, and SCMI support is enabled.  Take into
> account some peculiarities of the current SCMI firmware implementations,
> like missing handling of gateable functional clock parents.
> Support for power domains, and module clocks and resets used by serial,
> I2C, and SPI devices is included.
> 
> Note that SCMI clocks representing hardware modules expose access to
> Module Standby control: they are fake clocks, with a zero clock rate,
> that can just be enabled and disabled.  Hence they are controlled from
> the clock domain's start/stop callbacks, together with gateable
> functional clock parents.
> 
> This lets us avoid putting SCMI IDs in DT, and allows us to use the same
> hardware description in SoC DTS for systems with and without SCMI
> firmware.
> 
> For now, it is assumed SCMI power domain, clock, and reset IDs are
> stable, and match SCP FW SDKv4.31.0 and later.
> 
> Suggested-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

I haven't reviewed everything in detail but I use it for weeks now while
enabling IP cores on that SoC. It follows the same pattern we use for
handling the clocks and that I reviewed in more detail and the pattern
works well for us. I discussed some parts of this patch with Geert while
using it, so to sum it up:

Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>


  reply	other threads:[~2026-12-02 10:57 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 13:12 [PATCH v7 00/14] R-Car X5H Ironhide CPG/MDLC SCMI remapping support Geert Uytterhoeven
2026-11-30 13:12 ` [PATCH v7 01/14] clk: renesas: r8a78000: Merge debug prints in r8a78000_clk_get() Geert Uytterhoeven
2026-12-02  9:25   ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 02/14] clk: renesas: r8a78000: Replace sentinel by explicit ID map size Geert Uytterhoeven
2026-12-02  9:29   ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 03/14] clk: renesas: r8a78000: Shrink IDs to 16 bits Geert Uytterhoeven
2026-12-02  9:30   ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 04/14] clk: renesas: r8a78000: Add clk_hw to clk_map Geert Uytterhoeven
2026-12-02  9:38   ` Wolfram Sang
2026-12-02 10:05     ` Geert Uytterhoeven
2026-12-02 10:08       ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 05/14] clk: renesas: r8a78000: Add SCMI remapping support Geert Uytterhoeven
2026-12-02  9:46   ` Wolfram Sang
2026-12-02  9:59     ` Geert Uytterhoeven
2026-12-02 10:11       ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 06/14] reset: Extract __reset_control_get_from_provider() Geert Uytterhoeven
2026-11-30 13:12 ` [PATCH v7 07/14] reset: Add reset_control_get_from_provider_exclusive() Geert Uytterhoeven
2026-11-30 13:12 ` [PATCH v7 08/14] pmdomain: Make genpd_get_from_provider() return -EPROBE_DEFER Geert Uytterhoeven
2026-12-02  9:54   ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 09/14] pmdomain: Make genpd_get_from_provider() public Geert Uytterhoeven
2026-12-02 10:12   ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 10/14] pmdomain: renesas: r8a78000: Drop MDLC name comment Geert Uytterhoeven
2026-12-02 10:16   ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 11/14] pmdomain: renesas: r8a78000: Replace sentinel by explicit ID map size Geert Uytterhoeven
2026-12-02 10:19   ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 12/14] pmdomain: renesas: r8a78000: Shrink IDs to 16 bits Geert Uytterhoeven
2026-12-02 10:20   ` Wolfram Sang
2026-11-30 13:12 ` [PATCH v7 13/14] pmdomain: renesas: r8a78000: Add SCMI remapping support Geert Uytterhoeven
2026-12-02 10:57   ` Wolfram Sang [this message]
2026-11-30 13:12 ` [PATCH v7 14/14] arm64: dts: renesas: ironhide: Enable SCMI devpd, sys, clock, and reset Geert Uytterhoeven
2026-11-30 13:17 ` [PATCH v7 00/14] R-Car X5H Ironhide CPG/MDLC SCMI remapping support Geert Uytterhoeven
2026-12-02 10:39 ` Geert Uytterhoeven
2026-12-02 10:58   ` Wolfram Sang

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=aw_5hSNi7koCuann@ninjato \
    --to=wsa+renesas@sang-engineering.com \
    --cc=arm-scmi@vger.kernel.org \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=bmasney+clk@redhat.com \
    --cc=clegoffic@baylibre.com \
    --cc=conor+dt@kernel.org \
    --cc=cristian.marussi@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=geert@kernel.org \
    --cc=jbrunet+clk@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=konrad.dybcio@oss.qualcomm.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=p.zabel@pengutronix.de \
    --cc=paul.elder+renesas@ideasonboard.com \
    --cc=rafael@kernel.org \
    --cc=robh@kernel.org \
    --cc=sboyd@kernel.org \
    --cc=sudeep.holla@kernel.org \
    --cc=ulfh@kernel.org \
    --cc=vkoul@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.