linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Add NVIDIA BlueField-3 GPIO driver and pin controller
@ 2022-10-26 17:28 Asmaa Mnebhi
  2022-10-26 17:28 ` [PATCH v1 1/2] Support NVIDIA BlueField-3 GPIO controller Asmaa Mnebhi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Asmaa Mnebhi @ 2022-10-26 17:28 UTC (permalink / raw)
  To: linus.walleij, linux-gpio, linux-kernel, andy.shevchenko,
	bgolaszewski, linux-acpi
  Cc: Asmaa Mnebhi

This series of patches addresses maintainers' comments from a
previous patch which supported the GPIO driver for BlueField-3 SoC:
"[PATCH v1 1/1] Add driver for Mellanox BlueField-3 GPIO controller"
Instead of creating v2 for that patch, I am creating a new series
starting patch v1 because there are 2 drivers involved.

It was suggested to follow the linux gpio standards, and separate the
pin controller functionality from the gpio functionality.
Instead of creating a followup v2 patch, I am creating a new series
because there are 2 drivers (2 patches) involved now:
1) NVIDIA BlueField-3 GPIO driver as front end
2) NVIDIA BlueField-3 pin controller as back end

Moved the FW_CONTROL_CLEAR/SET code to the pin controller so that
there are 2 GPIO mux selectors:
1) default hardware functionality
2) gpio functionality where software can control the GPIO value when
   the direction is set to output.

Removed support to the GPIO sysfs since its use is deprecated and risky.
Instead, used libgpiod to test this code.

Asmaa Mnebhi (2):
  Support NVIDIA BlueField-3 GPIO controller
  Support NVIDIA BlueField-3 pinctrl driver

 drivers/gpio/Kconfig            |   7 +
 drivers/gpio/Makefile           |   1 +
 drivers/gpio/gpio-mlxbf3.c      | 314 ++++++++++++++++++++++++++++
 drivers/pinctrl/Kconfig         |   9 +
 drivers/pinctrl/Makefile        |   1 +
 drivers/pinctrl/pinctrl-mlxbf.c | 353 ++++++++++++++++++++++++++++++++
 6 files changed, 685 insertions(+)
 create mode 100644 drivers/gpio/gpio-mlxbf3.c
 create mode 100644 drivers/pinctrl/pinctrl-mlxbf.c

-- 
2.30.1


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

end of thread, other threads:[~2022-12-02 20:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-26 17:28 [PATCH v1 0/2] Add NVIDIA BlueField-3 GPIO driver and pin controller Asmaa Mnebhi
2022-10-26 17:28 ` [PATCH v1 1/2] Support NVIDIA BlueField-3 GPIO controller Asmaa Mnebhi
2022-10-30 22:45   ` kernel test robot
2022-10-26 17:28 ` [PATCH v1 2/2] Support NVIDIA BlueField-3 pinctrl driver Asmaa Mnebhi
2022-12-02 20:08 ` [PATCH v1 0/2] Add NVIDIA BlueField-3 GPIO driver and pin controller Asmaa Mnebhi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).