Skip to contentSkip to conversation

gpio: add driver for Mellanox BlueField GPIO

PATCH Applied Shravan Kumar Ramani 2 participants 3 messages Mar 26, 2019 GPIO

lore
Share & tools
lore
#0 lore raw

v6 cover gpio: add driver for Mellanox BlueField GPIO

Changes since v5:
Use devm_platform_ioremap_resource().

Shravan Kumar Ramani (1):
gpio: add driver for Mellanox BlueField GPIO controller

 drivers/gpio/Kconfig      |   7 +++
 drivers/gpio/Makefile     |   1 +
 drivers/gpio/gpio-mlxbf.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 161 insertions(+)
 create mode 100644 drivers/gpio/gpio-mlxbf.c
Signature · 1 line
2.1.2
#1 lore raw

PATCH v6 1/1 gpio: add driver for Mellanox BlueField GPIO controller

This patch adds support for the GPIO controller used by Mellanox BlueField SOCs.

---
 drivers/gpio/Kconfig      |   7 +++
 drivers/gpio/Makefile     |   1 +
 drivers/gpio/gpio-mlxbf.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 161 insertions(+)
 create mode 100644 drivers/gpio/gpio-mlxbf.c
drivers/gpio/Kconfig +7 -0
index 3f50526..0d9ddff 100644
@@ -1316,6 +1316,13 @@ config GPIO_MERRIFIELD
 	help
 	  Say Y here to support Intel Merrifield GPIO.
 
+config GPIO_MLXBF
+	tristate "Mellanox BlueField SoC GPIO"
+	depends on (MELLANOX_PLATFORM && ARM64 && ACPI) || COMPILE_TEST
+	select GPIO_GENERIC
+	help
+	  Say Y here if you want GPIO support on Mellanox BlueField SoC.
+
 config GPIO_ML_IOH
 	tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
 	depends on X86 || COMPILE_TEST
drivers/gpio/Makefile +1 -0
index 54d5527..db8d854 100644
@@ -85,6 +85,7 @@ obj-$(CONFIG_GPIO_MENZ127)	+= gpio-menz127.o
 obj-$(CONFIG_GPIO_MERRIFIELD)	+= gpio-merrifield.o
 obj-$(CONFIG_GPIO_MC33880)	+= gpio-mc33880.o
 obj-$(CONFIG_GPIO_MC9S08DZ60)	+= gpio-mc9s08dz60.o
+obj-$(CONFIG_GPIO_MLXBF)	+= gpio-mlxbf.o
 obj-$(CONFIG_GPIO_ML_IOH)	+= gpio-ml-ioh.o
 obj-$(CONFIG_GPIO_MM_LANTIQ)	+= gpio-mm-lantiq.o
 obj-$(CONFIG_GPIO_MOCKUP)      += gpio-mockup.o
drivers/gpio/gpio-mlxbf.c new file +153 -0

153 lines not on this page · raw message

Signature · 1 line
2.1.2
#2 lore raw
In reply to Shravan Kumar Ramani

wt., 26 mar 2019 o 15:43 Shravan Kumar Ramani <[email protected]> napisał(a):

Quoted 7 lines

Changes since v5:
Use devm_platform_ioremap_resource().

Shravan Kumar Ramani (1):
gpio: add driver for Mellanox BlueField GPIO controller

Quoted 9 lines
 drivers/gpio/Kconfig      |   7 +++
 drivers/gpio/Makefile     |   1 +
 drivers/gpio/gpio-mlxbf.c | 153 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 161 insertions(+)
 create mode 100644 drivers/gpio/gpio-mlxbf.c

--
2.1.2

Applied, thanks!

Bart