public inbox for linux-gpio@vger.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@oss.nxp.com>
To: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Peng Fan <peng.fan@nxp.com>,
	AKASHI Takahiro <akashi.tkhro@gmail.com>,
	Alice Guo <alice.guo@nxp.com>, Anis Chali <chalianis1@gmail.com>,
	Arturs Artamonovs <arturs.artamonovs@analog.com>,
	Eoin Dickson <eoin.dickson@microchip.com>,
	Greg Malysa <malysagreg@gmail.com>,
	Ian Roberts <ian.roberts@timesys.com>,
	Jacky Bai <ping.bai@nxp.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Marek Vasut <marex@denx.de>,
	Michael Trimarchi <michael@amarulasolutions.com>,
	Nathan Barrett-Morrison <nathan.morrison@timesys.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Oliver Gaskell <Oliver.Gaskell@analog.com>,
	Paul Barker <paul.barker.ct@bp.renesas.com>,
	Philip Molloy <philip.molloy@analog.com>,
	Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>,
	Tanmay Kathpalia <tanmay.kathpalia@altera.com>,
	Tom Rini <trini@konsulko.com>,
	u-boot@lists.denx.de, Utsav Agarwal <utsav.agarwal@analog.com>,
	Valentin Caron <valentin.caron@foss.st.com>,
	Vasileios Bimpikas <vasileios.bimpikas@analog.com>,
	Vinh Nguyen <vinh.nguyen.xz@renesas.com>, Yao Zi <me@ziyao.cc>,
	Yegor Yefremov <yegorslists@googlemail.com>,
	Ye Li <ye.li@nxp.com>,
	Andy Shevchenko <andriy.shevchenko@intel.com>,
	Linus Walleij <linusw@kernel.org>,
	Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>,
	arm-scmi@vger.kernel.org, linux-gpio@vger.kernel.org,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Khaled Ali Ahmed <Khaled.AliAhmed@arm.com>,
	Michal Simek <michal.simek@amd.com>
Subject: Re: [PATCH v2 0/4] u-boot: add SCMI GPIO/Pinctrl support
Date: Mon, 23 Mar 2026 14:20:24 +0800	[thread overview]
Message-ID: <acDbqCbCSulKNELd@nxa18884-linux.ap.freescale.net> (raw)
In-Reply-To: <cover.1773256350.git.dan.carpenter@linaro.org>

Hi Dan,

On Wed, Mar 11, 2026 at 10:39:30PM +0300, Dan Carpenter wrote:
>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.
>
>Changes since v1:
>Address Peng Fang's review comments.
>Use the standard gpio-ranges to describe the pins instead of
>inventing a custom format.
>
>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

I picked up the above three patches.

Thanks,
Peng

>  gpio: scmi: Add gpio_scmi driver
>
> drivers/firmware/scmi/Makefile            |   1 +
> drivers/firmware/scmi/pinctrl.c           | 365 +++++++++++++++++++++
> drivers/firmware/scmi/scmi_agent-uclass.c |   4 +-
> drivers/gpio/Kconfig                      |   6 +
> drivers/gpio/Makefile                     |   1 +
> drivers/gpio/gpio_scmi.c                  | 248 ++++++++++++++
> drivers/pinctrl/Kconfig                   |   9 +
> drivers/pinctrl/Makefile                  |   1 +
> drivers/pinctrl/nxp/pinctrl-imx-scmi.c    |   2 +-
> drivers/pinctrl/pinctrl-scmi.c            | 365 +++++++++++++++++++++
> include/scmi_agent-uclass.h               |   2 +-
> include/scmi_protocols.h                  | 379 +++++++++++++++++++++-
> 12 files changed, 1371 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
>
>

      parent reply	other threads:[~2026-03-23  5:04 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-11 19:39 [PATCH v2 0/4] u-boot: add SCMI GPIO/Pinctrl support Dan Carpenter
2026-03-11 19:41 ` [PATCH v2 3/4] scmi: pinctrl: add pinctrl driver for SCMI Dan Carpenter
2026-03-12  9:23   ` Peng Fan
2026-03-24 13:19   ` Linus Walleij
2026-03-24 15:07     ` Dan Carpenter
2026-03-26  9:30     ` Dan Carpenter
2026-03-11 19:41 ` [PATCH v2 4/4] gpio: scmi: Add gpio_scmi driver Dan Carpenter
2026-03-17  9:05   ` Peng Fan
2026-03-23  3:41   ` Peng Fan
2026-03-23  8:02     ` Andy Shevchenko
2026-03-24 11:40       ` Dan Carpenter
2026-03-24 11:53         ` Andy Shevchenko
2026-03-23  6:20 ` Peng Fan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=acDbqCbCSulKNELd@nxa18884-linux.ap.freescale.net \
    --to=peng.fan@oss.nxp.com \
    --cc=Khaled.AliAhmed@arm.com \
    --cc=Oliver.Gaskell@analog.com \
    --cc=Ranjani.Vaidyanathan@nxp.com \
    --cc=akashi.tkhro@gmail.com \
    --cc=alice.guo@nxp.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=arm-scmi@vger.kernel.org \
    --cc=arturs.artamonovs@analog.com \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=chalianis1@gmail.com \
    --cc=dan.carpenter@linaro.org \
    --cc=eoin.dickson@microchip.com \
    --cc=ian.roberts@timesys.com \
    --cc=linusw@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=malysagreg@gmail.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=marex@denx.de \
    --cc=me@ziyao.cc \
    --cc=michael@amarulasolutions.com \
    --cc=michal.simek@amd.com \
    --cc=nathan.morrison@timesys.com \
    --cc=neil.armstrong@linaro.org \
    --cc=paul.barker.ct@bp.renesas.com \
    --cc=peng.fan@nxp.com \
    --cc=philip.molloy@analog.com \
    --cc=ping.bai@nxp.com \
    --cc=tanmay.kathpalia@altera.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=utsav.agarwal@analog.com \
    --cc=valentin.caron@foss.st.com \
    --cc=vasileios.bimpikas@analog.com \
    --cc=vincent.guittot@linaro.org \
    --cc=vinh.nguyen.xz@renesas.com \
    --cc=ye.li@nxp.com \
    --cc=yegorslists@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox