public inbox for arm-scmi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] u-boot: add SCMI GPIO/Pinctrl support
@ 2026-02-23 14:33 Dan Carpenter
  2026-02-23 14:33 ` [PATCH 1/4] scmi: pinctrl: add pinctrl message IDs Dan Carpenter
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Dan Carpenter @ 2026-02-23 14:33 UTC (permalink / raw)
  To: Peng Fan
  Cc: Alice Guo, Anis Chali, Arturs Artamonovs, Eoin Dickson,
	Greg Malysa, Ian Roberts, Jacky Bai, Leo Yu-Chi Liang,
	Marek Vasut, Marek Vasut, Nathan Barrett-Morrison, Neil Armstrong,
	Oliver Gaskell, Philip Molloy, Rasmus Villemoes, Tanmay Kathpalia,
	Tom Rini, u-boot, Utsav Agarwal, Valentin Caron,
	Vasileios Bimpikas, Vinh Nguyen, Yao Zi, Ye Li, Vincent Guittot,
	Khaled Ali Ahmed, Michal Simek, arm-scmi, Linus Walleij

There is an existing SCMI pinctrl driver in drivers/pinctrl/nxp/ which
lets you configure the initial state of the pins via device tree.  This
patchset is a more generic version which provides GPIO as well.

I wrote two small cleanup patches to the NXP driver, one which renamed
an enum and another which made some white space changes.

The next patch adds an pinctrl driver which lets you configure the
initial state for the pins.  But the main thing is that we need one
driver to handle the SCMI pinctrl protocol so the pinctrl driver does
this.

The last patch adds GPIO support over SCMI.

I tested this code using the SCP SCMI server on OP-TEE over Qemu.  I
created a custom mock pinctrl device in SCP.

Dan Carpenter (4):
  scmi: pinctrl: add pinctrl message IDs
  scmi: update comments for scmi_pinctrl_config_set_in()
  scmi: pinctrl: add pinctrl driver for SCMI
  gpio: scmi: Add gpio_scmi driver

 drivers/firmware/scmi/Makefile            |   1 +
 drivers/firmware/scmi/pinctrl.c           | 363 +++++++++++++++++++++
 drivers/firmware/scmi/scmi_agent-uclass.c |   4 +-
 drivers/gpio/Kconfig                      |   6 +
 drivers/gpio/Makefile                     |   1 +
 drivers/gpio/gpio_scmi.c                  | 221 +++++++++++++
 drivers/pinctrl/Kconfig                   |   9 +
 drivers/pinctrl/Makefile                  |   1 +
 drivers/pinctrl/nxp/pinctrl-imx-scmi.c    |   2 +-
 drivers/pinctrl/pinctrl-scmi.c            | 357 ++++++++++++++++++++
 include/scmi_agent-uclass.h               |   2 +-
 include/scmi_protocols.h                  | 379 +++++++++++++++++++++-
 12 files changed, 1334 insertions(+), 12 deletions(-)
 create mode 100644 drivers/firmware/scmi/pinctrl.c
 create mode 100644 drivers/gpio/gpio_scmi.c
 create mode 100644 drivers/pinctrl/pinctrl-scmi.c

-- 
2.51.0


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

end of thread, other threads:[~2026-03-12  7:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-23 14:33 [PATCH 0/4] u-boot: add SCMI GPIO/Pinctrl support Dan Carpenter
2026-02-23 14:33 ` [PATCH 1/4] scmi: pinctrl: add pinctrl message IDs Dan Carpenter
2026-02-25 10:52   ` Peng Fan
2026-02-26 22:05   ` Linus Walleij
2026-02-23 14:33 ` [PATCH 2/4] scmi: update comments for scmi_pinctrl_config_set_in() Dan Carpenter
2026-02-25 11:44   ` Peng Fan
2026-02-23 14:33 ` [PATCH 3/4] scmi: pinctrl: add pinctrl driver for SCMI Dan Carpenter
2026-02-25 14:03   ` Peng Fan
2026-02-25 14:34     ` Dan Carpenter
2026-02-23 14:33 ` [PATCH 4/4] gpio: scmi: Add gpio_scmi driver Dan Carpenter
2026-02-24 16:10   ` Michal Simek
2026-03-12  7:32     ` Dan Carpenter
2026-02-24  9:33 ` [PATCH 0/4] u-boot: add SCMI GPIO/Pinctrl support Linus Walleij

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