Skip to contentSkip to conversation

gpio: Add GPIO support for the ACCES 104-IDI-48

PATCH In review William Breathitt Gray 2 participants 2 messages Nov 29, 2015 – Dec 10, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 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.

---
Changes in v2:
- Reimplement irq_ack callback as a NOOP since status register read in idi_48_irq_handler clears all pending interrupts.

 MAINTAINERS                    |   6 +
 drivers/gpio/Kconfig           |   9 ++
 drivers/gpio/Makefile          |   1 +
 drivers/gpio/gpio-104-idi-48.c | 340 +++++++++++++++++++++++++++++++++++++++++
 4 files changed, 356 insertions(+)
 create mode 100644 drivers/gpio/gpio-104-idi-48.c
MAINTAINERS +6 -0
index 629727e..f04fb49 100644
@@ -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
index 18e1aa0..30d8bd3 100644
@@ -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
index 986dbd8..548e9b5 100644
@@ -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 +340 -0

340 lines not on this page · raw message

Signature · 1 line
2.4.10
#1 lore raw
Quoted 12 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.

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.

Quoted 5 lines

---
Changes in v2:
- Reimplement irq_ack callback as a NOOP since status register read in idi_48_irq_handler clears all pending interrupts.

Sorry I seem to have already applied an earlier version of the driver to my tree.

Can you make an incremental patch fixing up what is on my "devel" branch to what was in v2 instead?
https://git.kernel.org/cgit/linux/kernel/git/linusw/linux-gpio.git/log/?h=devel

Yours,
Linus Walleij