[PATCH v2 0/1] gpio: add driver for Mellanox BlueField 2 GPIO controller

From: Asmaa Mnebhi
Date: Tue Feb 25 2020 - 11:33:04 EST


This patch adds support for the GPIO controller used by Mellanox BlueFIeld
2 SOCs.
This patch addresses the following issues:
1) Split in one gpio_chip per instance (there are 3 instances)
2) Use bgpio_init() for set/clear/get gpio values
3) The direction settings need some special HW lock/unlock to happen and it also uses 2 registers to set the direction instead of one.
So direction_input and direction_output are overriden.

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 | 345 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 353 insertions(+)
create mode 100644 drivers/gpio/gpio-mlxbf2.c

--
2.1.2