introduce MEN 16Z127 GPIO controller driver
PATCH v2 1/1 introduce MEN 16Z127 GPIO controller driver
This patch adds the MEN 16Z127 GPIO Controller driver, which is 32bit wide and located within a MCB FPGA.
changes in v2:
- ported driver to use the generic MMIO library
- added open drain support
- added debounce support
Andreas Werner (1):
gpio: add driver for MEN 16Z127 GPIO controller
drivers/gpio/Kconfig | 7 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-menz127.c | 200 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 208 insertions(+) create mode 100644 drivers/gpio/gpio-menz127.c
Signature · 1 line
2.6.2
PATCH v2 1/1 gpio: add driver for MEN 16Z127 GPIO controller
The 16Z127 is a 32bit GPIO controller on a MCB FPGA. Every single line can be configured as input and output.
Push pull and open drain are supported as well as setting a debounce value for the input lines.
--- drivers/gpio/Kconfig | 7 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-menz127.c | 200 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 208 insertions(+) create mode 100644 drivers/gpio/gpio-menz127.c
drivers/gpio/Kconfig +7 -0
@@ -270,6 +270,13 @@ config GPIO_MB86S7X help Say yes here to support the GPIO controller in Fujitsu MB86S70 SoCs. +config GPIO_MENZ127 + tristate "MEN 16Z127 GPIO support" + depends on MCB + select GPIO_GENERIC + help + Say yes here to support the MEN 16Z127 GPIO Controller + config GPIO_MM_LANTIQ bool "Lantiq Memory mapped GPIOs" depends on LANTIQ && SOC_XWAY
drivers/gpio/Makefile +1 -0
@@ -59,6 +59,7 @@ obj-$(CONFIG_GPIO_MAX7300) += gpio-max7300.o obj-$(CONFIG_GPIO_MAX7301) += gpio-max7301.o obj-$(CONFIG_GPIO_MAX732X) += gpio-max732x.o obj-$(CONFIG_GPIO_MB86S7X) += gpio-mb86s7x.o +obj-$(CONFIG_GPIO_MENZ127) += gpio-menz127.o obj-$(CONFIG_GPIO_MC33880) += gpio-mc33880.o obj-$(CONFIG_GPIO_MC9S08DZ60) += gpio-mc9s08dz60.o obj-$(CONFIG_GPIO_MCP23S08) += gpio-mcp23s08.o
drivers/gpio/gpio-menz127.c new file +200 -0
200 lines not on this page · raw message
Signature · 1 line
2.6.2
Re: [PATCH v2] gpio: add driver for MEN 16Z127 GPIO controller
Quoted 7 lines · Andreas Werner
The 16Z127 is a 32bit GPIO controller on a MCB FPGA. Every single line can be configured as input and output.
Push pull and open drain are supported as well as setting a debounce value for the input lines.
Signed-off-by Andreas Werner <[email protected]>
Looks good.
Patch applied!
Yours,
Linus Walleij