Skip to content

gpio: introduce a GPIO driver for SCMI

Dan Carpenter arm-scmi linux-arm-kernel linux-devicetree linux-gpio lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest7 patches 6 repliesIn review
  2. v57 patches 5 repliesSuperseded
  3. v47 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v37 patches16 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7pinctrl: introduce pinctrl_gpio_get_config()drivers/pinctrl/core.c drivers/pinctrl/pinconf.h include/linux/pinctrl/consumer.h+46 -00 replies
2/7pinctrl: scmi: Add SCMI_PIN_INPUT_VALUEdrivers/pinctrl/pinctrl-scmi.c+26 -70 replies
3/7pinctrl: scmi: Delete PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS supportdrivers/pinctrl/pinctrl-scmi.c+0 -30 replies
4/7pinctrl: scmi: ignore PIN_CONFIG_PERSIST_STATEdrivers/pinctrl/pinctrl-scmi.c+8 -40 replies
5/7firmware: arm_scmi: Allow PINCTRL_REQUEST to return EOPNOTSUPPdrivers/firmware/arm_scmi/pinctrl.c+2 -00 replies
6/7gpio: dt-bindings: Add GPIO on top of generic pin controlDocumentation/devicetree/bindings/gpio/pin-control-gpio.yaml+59 -00 replies
7/7gpio: gpio-by-pinctrl: add pinctrl based generic GPIO driverdrivers/gpio/Kconfig drivers/gpio/Makefile drivers/gpio/gpio-by-pinctrl.c+115 -04 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchLinus WalleijAndy ShevchenkoSudeep HollaKrzysztof KozlowskiBartosz Golaszewski
1/7R-b R-b
2/7R-b A-b
3/7R-b
4/7R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/7] gpio: introduce a GPIO driver for SCMI

This basically abandons my earlier attempts and goes back to Takahiro Akashi's driver. Here is the link to Takahiro's patchset:

https://lore.kernel.org/all/[email protected]/

v6: Fix a build error when CONFIG_PINCONF is disabled
Fix the dt-binding subject and my email address Use pinconf_to_config_packed() instead of PIN_CONF_PACKED()

v5: Addresses Andy's cleanups to the driver.
Adrresses Krzysztof's comments about the dt spec file. And almost all the subsystem prefixes were wrong.

v4: Addressed Andy's comments about kernel-doc
Addressed Rob's comments on the spec file

v3: Forward ported Takahiro's patches and added some fixes ups to make
it work on current kernels.

AKASHI Takahiro (3):
pinctrl: introduce pinctrl_gpio_get_config()
gpio: dt-bindings: Add GPIO on top of generic pin control
gpio: gpio-by-pinctrl: add pinctrl based generic GPIO driver

Dan Carpenter (4):
pinctrl: scmi: Add SCMI_PIN_INPUT_VALUE
pinctrl: scmi: Delete PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS support
pinctrl: scmi: ignore PIN_CONFIG_PERSIST_STATE
firmware: arm_scmi: Allow PINCTRL_REQUEST to return EOPNOTSUPP

 .../bindings/gpio/pin-control-gpio.yaml       |  59 ++++++++++
 drivers/firmware/arm_scmi/pinctrl.c           |   2 +
 drivers/gpio/Kconfig                          |  13 +++
 drivers/gpio/Makefile                         |   1 +
 drivers/gpio/gpio-by-pinctrl.c                | 101 ++++++++++++++++++
 drivers/pinctrl/core.c                        |  31 ++++++
 drivers/pinctrl/pinconf.h                     |   6 ++
 drivers/pinctrl/pinctrl-scmi.c                |  46 +++++---
 include/linux/pinctrl/consumer.h              |   9 ++
 9 files changed, 255 insertions(+), 13 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/gpio/pin-control-gpio.yaml
 create mode 100644 drivers/gpio/gpio-by-pinctrl.c
Signature · 1 line
2.53.0