gpio: Add GPIO support for the ACCES 104-IDI-48
Subsystems (2)
PATCH 1/1 gpio: Add GPIO support for the ACCES 104-IDI-48
The ACCES 104-IDI-48 family of PC/104 utility boards feature 48 individually optically isolated digital inputs. Enabled inputs feature change-of-state detection capability; if change-of-state detection is enabled, an interrupt is fired off if a change of input level (low-to-high or high-to-low) is detected. Change-of-state IRQs are enabled/disabled on 8-bit boundaries, for a total of six boundaries.
This driver provides GPIO and IRQ support for these 48 channels of digital input. The base port address for the device may be configured via the idi_48_base module parameter. The interrupt line number for the device may be configured via the idi_48_irq module parameter.
--- MAINTAINERS | 6 + drivers/gpio/Kconfig | 9 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-104-idi-48.c | 349 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 365 insertions(+) create mode 100644 drivers/gpio/gpio-104-idi-48.c
MAINTAINERS +6 -0
@@ -240,6 +240,12 @@ L: [email protected] S: Maintained F: drivers/hwmon/abituguru3.c +ACCES 104-IDI-48 GPIO DRIVER +M: "William Breathitt Gray" <[email protected]> +L: [email protected] +S: Maintained +F: drivers/gpio/gpio-104-idi-48.c + ACCES 104-IDIO-16 GPIO DRIVER M: "William Breathitt Gray" <[email protected]> L: [email protected]
drivers/gpio/Kconfig +9 -0
@@ -503,6 +503,15 @@ config GPIO_104_IDIO_16 parameter. The interrupt line number for the device may be set via the idio_16_irq module parameter. +config GPIO_104_IDI_48 + tristate "ACCES 104-IDI-48 GPIO support" + select GPIOLIB_IRQCHIP + help + Enables GPIO support for the ACCES 104-IDI-48 family. The base port + address for the device may be configured via the idi_48_base module + parameter. The interrupt line number for the device may be configured + via the idi_48_irq module parameter. + config GPIO_F7188X tristate "F71869, F71869A, F71882FG and F71889F GPIO support" help
drivers/gpio/Makefile +1 -0
@@ -13,6 +13,7 @@ obj-$(CONFIG_GPIO_ACPI) += gpiolib-acpi.o obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o +obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o obj-$(CONFIG_GPIO_74XX_MMIO) += gpio-74xx-mmio.o obj-$(CONFIG_GPIO_ADNP) += gpio-adnp.o
drivers/gpio/gpio-104-idi-48.c new file +349 -0
349 lines not on this page · raw message
Signature · 1 line
2.4.10
Quoted 7 lines · William Breathitt Gray
The ACCES 104-IDI-48 family of PC/104 utility boards feature 48 individually optically isolated digital inputs. Enabled inputs feature change-of-state detection capability; if change-of-state detection is enabled, an interrupt is fired off if a change of input level (low-to-high or high-to-low) is detected. Change-of-state IRQs are enabled/disabled on 8-bit boundaries, for a total of six boundaries.
Quoted 6 lines
This driver provides GPIO and IRQ support for these 48 channels of digital input. The base port address for the device may be configured via the
idi_48_basemodule parameter. The interrupt line number for the device may be configured via theidi_48_irqmodule parameter.Signed-off-by William Breathitt Gray <[email protected]>
This is a very nice and clean written driver.
Patch applied.
Yours,
Linus Walleij
Quoted 6 lines · Linus Walleij
This is a very nice and clean written driver.
Patch applied.
Yours,
Linus Walleij
I submitted a version 2 of this patch with a minor optimization change to the IRQ acknowledgment functionality. Should I resubmit that change as a separate patch based on top of this commit?
- William Breathitt Gray
Quoted 11 lines · William Breathitt Gray
Quoted 6 lines · Linus Walleij
This is a very nice and clean written driver.
Patch applied.
Yours,
Linus WalleijI submitted a version 2 of this patch with a minor optimization change to the IRQ acknowledgment functionality. Should I resubmit that change as a separate patch based on top of this commit?
Yes please. Sorry for the mess, I'm under quite heavy workload and prone to make mistakes and unpredictable delays right now.
Yours,
Linus Walleij