gpio: add driver for Mellanox BlueField 2 GPIO controller
v4 cover gpio: add driver for Mellanox BlueField 2 GPIO controller
This patch adds support for the GPIO controller used by Mellanox BlueFIeld 2 SOCs.
This patch addresses the following issues:
1) Make mlxbf2_gpio_lock_acquire and mlxbf2_gpio_lock_release symmetrical
2) renamed mlxbf2_gpio_state to mlxbf2_gpio_context
3) removed unnecessary informational message.
Asmaa Mnebhi (1):
gpio: add driver for Mellanox BlueField 2 GPIO controller
drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf2.c | 335 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 343 insertions(+) create mode 100644 drivers/gpio/gpio-mlxbf2.c
Signature · 1 line
2.1.2
PATCH v4 1/1 gpio: add driver for Mellanox BlueField 2 GPIO controller
This patch adds support for the GPIO controller used by Mellanox BlueField 2 SOCs.
--- drivers/gpio/Kconfig | 7 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-mlxbf2.c | 335 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 343 insertions(+) create mode 100644 drivers/gpio/gpio-mlxbf2.c
drivers/gpio/Kconfig +7 -0
@@ -1399,6 +1399,13 @@ config GPIO_MLXBF help Say Y here if you want GPIO support on Mellanox BlueField SoC. +config GPIO_MLXBF2 + tristate "Mellanox BlueField 2 SoC GPIO" + depends on (MELLANOX_PLATFORM && ARM64 && ACPI) || (64BIT && COMPILE_TEST) + select GPIO_GENERIC + help + Say Y here if you want GPIO support on Mellanox BlueField 2 SoC. + config GPIO_ML_IOH tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support" depends on X86 || COMPILE_TEST
drivers/gpio/Makefile +1 -0
@@ -93,6 +93,7 @@ obj-$(CONFIG_GPIO_MENZ127) += gpio-menz127.o obj-$(CONFIG_GPIO_MERRIFIELD) += gpio-merrifield.o obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o obj-$(CONFIG_GPIO_MLXBF) += gpio-mlxbf.o +obj-$(CONFIG_GPIO_MLXBF2) += gpio-mlxbf2.o obj-$(CONFIG_GPIO_MM_LANTIQ) += gpio-mm-lantiq.o obj-$(CONFIG_GPIO_MOCKUP) += gpio-mockup.o obj-$(CONFIG_GPIO_MOXTET) += gpio-moxtet.o
drivers/gpio/gpio-mlxbf2.c new file +335 -0
335 lines not on this page · raw message
Signature · 1 line
2.1.2
Quoted 4 lines · Asmaa Mnebhi
This patch adds support for the GPIO controller used by Mellanox BlueField 2 SOCs.
Signed-off-by Asmaa Mnebhi <[email protected]>
This is now a very nice driver!
Patch applied.
Yours,
Linus Walleij
Thanks Linus! 😊
-----Original Message-----
From: Linus Walleij <[email protected]>
Sent: Monday, March 9, 2020 4:49 AM
To: Asmaa Mnebhi <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>; [email protected]
Subject: Re: [PATCH v4 1/1] gpio: add driver for Mellanox BlueField 2 GPIO controller
Quoted 4 lines · Asmaa Mnebhi
This patch adds support for the GPIO controller used by Mellanox BlueField 2 SOCs.
Signed-off-by Asmaa Mnebhi <[email protected]>
This is now a very nice driver!
Patch applied.
Yours,
Linus Walleij