Skip to content

Commit 1b06d64

Browse files
William Breathitt Graylinusw
authored andcommitted
gpio: Add GPIO support for the ACCES 104-DIO-48E
The ACCES 104-DIO-48E device provides 48 lines digital I/O via two Programmable Peripheral Interface (PPI) chips of type 82C55. Bit C3 at each 24-bit Group can be used as an external interrupt, triggered by a rising edge. This driver provides GPIO and IRQ support for these 48 channels of digital I/O. The base port address for the device may be configured via the dio_48e_base module parameter. The interrupt line number for the device may be configured via the dio_48e_irq module parameter. Signed-off-by: William Breathitt Gray <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 9c26df9 commit 1b06d64

File tree

4 files changed

+455
-0
lines changed

4 files changed

+455
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@ L: [email protected]
240240
S: Maintained
241241
F: drivers/hwmon/abituguru3.c
242242

243+
ACCES 104-DIO-48E GPIO DRIVER
244+
M: William Breathitt Gray <[email protected]>
245+
246+
S: Maintained
247+
F: drivers/gpio/gpio-104-dio-48e.c
248+
243249
ACCES 104-IDI-48 GPIO DRIVER
244250
M: "William Breathitt Gray" <[email protected]>
245251

drivers/gpio/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,15 @@ endmenu
487487
menu "Port-mapped I/O GPIO drivers"
488488
depends on X86 # Unconditional I/O space access
489489

490+
config GPIO_104_DIO_48E
491+
tristate "ACCES 104-DIO-48E GPIO support"
492+
select GPIOLIB_IRQCHIP
493+
help
494+
Enables GPIO support for the ACCES 104-DIO-48E family. The base port
495+
address for the device may be configured via the dio_48e_base module
496+
parameter. The interrupt line number for the device may be configured
497+
via the dio_48e_irq module parameter.
498+
490499
config GPIO_104_IDIO_16
491500
tristate "ACCES 104-IDIO-16 GPIO support"
492501
select GPIOLIB_IRQCHIP

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ obj-$(CONFIG_GPIO_ACPI) += gpiolib-acpi.o
1212
# Device drivers. Generally keep list sorted alphabetically
1313
obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o
1414

15+
obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o
1516
obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o
1617
obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o
1718
obj-$(CONFIG_GPIO_74X164) += gpio-74x164.o

0 commit comments

Comments
 (0)