[PATCH v2 00/11] pinctrl: scmi: fixes and GPIO function support

From: Clément Le Goffic

Date: Fri Nov 13 2026 - 08:02:23 EST


Five fixes: the drive strength went out in milliamperes, the schmitt
trigger enable was mapped to the input buffer, the settings Linux
carries without argument went out as disabled, a setting the platform
reports off read as set, and the protocol layer read past a
PINCTRL_LIST_ASSOCIATIONS reply larger than its receive buffer.

Then GPIO function support: report the pin-only and GPIO attributes of
a function, give pin-only functions no groups, mark the GPIO functions,
and select the GPIO function of a pin on a GPIO request.

Tested on R-Car X5H with a v6.18 backport that needed adapting, all but
the schmitt and enable settings, which the platform does not implement.
An LLM was used to review the patches and to set up the tests.

---
Changes in v2:
- patch 4: keep the enables value on get (Sashiko)
- patch 5: error out on a truncated reply (Cristian)
- patch 11: unsigned counts, loop variables in the for (Andy, Cristian)
- patch 11: dev_dbg when no GPIO function is found (Cristian)
- join the lines that fit in 100 columns (Andy)
- collect Reviewed-by tags
- rebase on next-20261112
- Link to v1: https://patch.msgid.link/20261030-clegoffic-pinctrl-scmi-gpio-v1-0-52d92843ad97@xxxxxxxxxxxx

---
Clément Le Goffic (11):
pinctrl: scmi: send the drive strength in microamperes
pinctrl: scmi: map the schmitt trigger enable to its SCMI type
pinctrl: scmi: send the settings without argument as enabled
pinctrl: scmi: report an off setting as not set
firmware: arm_scmi: stop reading past PINCTRL_LIST_ASSOCIATIONS replies
firmware: arm_scmi: report the pin-only and GPIO flags of functions
pinctrl: scmi: give no groups to pin-only functions
pinctrl: scmi: mark the GPIO functions
pinctrl: scmi: report whether a function is GPIO
firmware: arm_scmi: add an operation to set the function of a single pin
pinctrl: scmi: select the GPIO function on GPIO requests

drivers/firmware/arm/scmi/pinctrl.c | 51 ++++++++++--
drivers/pinctrl/pinctrl-scmi.c | 161 +++++++++++++++++++++++++++++++++---
include/linux/scmi_protocol.h | 8 +-
3 files changed, 201 insertions(+), 19 deletions(-)
---
base-commit: 6d582d78fad9d828e575ca0cdcff8ea47a77220b
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
change-id: 20261030-clegoffic-pinctrl-scmi-gpio-48cfe014bb11

Best regards,
--
Clément Le Goffic <clegoffic@xxxxxxxxxxxx>