[PATCH v5 00/15] R-Car X5H Ironhide CPG/MDLC SCMI remapping support

Laurent Pinchart laurent.pinchart at ideasonboard.com
Thu Nov 19 15:47:59 PST 2026


On Thu, Nov 19, 2026 at 03:47:15PM +0100, Clément Le Goffic wrote:
> On 11/18/26 8:44 PM, Geert Uytterhoeven wrote:
> > 	Hi all,
> > 
> > TL;DR:
> > 
> >     Describe hardware in DT, and perform mapping to abstractions offered
> >     by SCMI in Linux.
> 
> A question on the approach
> An SCMI variant DT could mark the CPG and MDLC status = "reserved" and point the consumers at arm,scmi, while the U-Boot IPL keeps the hardware DT.
> Since v4, the series assumes the SCMI ids are stable:
> 
> >   - Remove dependencies by making assumptions and dropping disputed
> >     items, to move this series forward:
> >       - Assume all SCMI IDs are stable.
> 
> If they are, why not using them in the DT directly?

As far as I understand, the assumption impacts the mdlc and cpg drivers
only, not their DT bindings. If (or rather, let's face it, when) a
firmware revision later breaks the assumption, we will be able to handle
it in those drivers without affecting DT.

I don't like this remapping driver much, in the sense that I wish it
wouldn't be needed, but it seems to me to be the best possible
compromise given the instability introduced by SCMI.

> On partitioning, the cover letter says:
> 
> >   - The clock, reset, and power domain IDs are not stable by design,
> >     causing DT incompatibilities.
> >     SCMI requires that the ID space exposed to an agent (i.e. Linux)
> >     starts at zero and is contiguous.  Hence any change in system
> >     partitioning (Application CPU core vs. Realtime CPU core,
> >     virtualization, ...) may mean a renumbering of all SCMI IDs,
> >     implying a massive change to the DT.
> 
> SCMI do not mandate that renumbering. The ids start at zero and are sequential, but nothing requires them to cover only the resources of one agent.
> The firmware can keep a single id space for all agents and restrict per agent what each one may use, the rest returning DENIED (SCMI 4.0, section 3.2.1).
> For virtualization, the spec has the hypervisor grant each VM its resources this way. A new VM then changes permissions, not ids.
> 
> With a single id space, a software configuration only changes which nodes are enabled, so one DT per software configuration, a base DT plus an overlay, is enough.
> If managing many configurations ever becomes a nightmare, tools exist for it, such as Lopper from devicetree-org [1], which generate one DT per execution domain from a single system DT.
> 
> That leaves the missing clock domain, which is a gap in SCMI itself.
> 
> [1] https://github.com/devicetree-org/lopper

-- 
Regards,

Laurent Pinchart



More information about the linux-arm-kernel mailing list