mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 00/11] pinctrl: scmi: fixes and GPIO function support
@ 2026-11-13 11:05 Clément Le Goffic
  2026-11-13 11:05 ` [PATCH v2 01/11] pinctrl: scmi: send the drive strength in microamperes Clément Le Goffic
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Clément Le Goffic @ 2026-11-13 11:05 UTC (permalink / raw)
  To: Sudeep Holla, Cristian Marussi, Linus Walleij, Peng Fan,
	Oleksii Moisieiev, Andy Shevchenko, Dhruva Gole,
	Bartosz Golaszewski
  Cc: arm-scmi, linux-arm-kernel, linux-gpio, linux-kernel,
	Clément Le Goffic, Bartosz Golaszewski

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@baylibre.com

---
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@baylibre.com>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-11-18 14:56 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 11:05 [PATCH v2 00/11] pinctrl: scmi: fixes and GPIO function support Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 01/11] pinctrl: scmi: send the drive strength in microamperes Clément Le Goffic
2026-11-17 14:35   ` Geert Uytterhoeven
2026-11-18 14:56     ` Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 02/11] pinctrl: scmi: map the schmitt trigger enable to its SCMI type Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 03/11] pinctrl: scmi: send the settings without argument as enabled Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 04/11] pinctrl: scmi: report an off setting as not set Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 05/11] firmware: arm_scmi: stop reading past PINCTRL_LIST_ASSOCIATIONS replies Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 06/11] firmware: arm_scmi: report the pin-only and GPIO flags of functions Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 07/11] pinctrl: scmi: give no groups to pin-only functions Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 08/11] pinctrl: scmi: mark the GPIO functions Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 09/11] pinctrl: scmi: report whether a function is GPIO Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 10/11] firmware: arm_scmi: add an operation to set the function of a single pin Clément Le Goffic
2026-11-13 11:05 ` [PATCH v2 11/11] pinctrl: scmi: select the GPIO function on GPIO requests Clément Le Goffic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®