Re: [RFC] RPMI pin control specification

From: Linus Walleij

Date: Fri Nov 27 2026 - 05:00:36 EST


On Thu, Nov 19, 2026 at 6:04 PM Charles Perry
<charles.perry@xxxxxxxxxxxxx> wrote:

> > Is this spec so similar to another four-letter firmware interface that
> > drivers/pinctrl/pinctrl-scmi.c can be used without changes or perhaps
> > by a simple addition of a compatible string?
>
> No, that is not the case currently. There are semantic differences in the
> protocol, the message format changes, the enums are not the same, the
> underlying transport is not the same, etc.

OK such happens.

> On the topic of SCMI, are you aware of anything that could have been
> improved or should have been done differently in the pin control protocol?

No actually it's a very good role model.

I first provided feedback to the (failed) ACPI pin control specification,
where the big problem was that they defined a set of pin config
properties but no mechanism to extend it the day they needed
something new, and I said this was not going to work. Also
ACPI had the ambition to manage a lot of pin control "behind
the scenes" which led to low power scenarios not working
because the firmware was doing assumptions about the use
cases that were wrong.

For SCMI I had the following requirements, and they took
the input and implemented it:

- Follow the scheme of functions and groups defined as
strings, the firmware should expose and enumerate
the available functions and groups for muxing.

- The most obvious path from pin config to firmware,
just send in/out numbers corresponding configs.

If you look at the SCMI driver you see how lean and clean it
is. I don't mind another clean driver like that :)

Today I would also add:

- DISALLOW CUSTOM EXTENSIONS

Especially using RPMI as some generic transport
mechanism "on the side".

Because what happens otherwise is that people will
use that loophole to cut corners and keep doing things
the way they always did them and then the abstraction
serves no purpose whatsoever.

I.e. make absolutely sure that this does not happen:
https://lore.kernel.org/linux-gpio/20240223071557.2681316-1-peng.fan@xxxxxxxxxxx/

Yours,
Linus Walleij