Skip to content

Commit 9c26df9

Browse files
William Breathitt Graylinusw
authored andcommitted
gpio: Add GPIO support for the WinSystems WS16C48
The WinSystems WS16C48 device provides 48 lines of digital I/O. In addition, the first 24 lines may be used for interrupt-handled edge detection; rising edge detection and falling edge detection are supported. 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 ws16c48_base module parameter. The interrupt line number for the device may be configured via the ws16c48_irq module parameter. Signed-off-by: William Breathitt Gray <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 4332e01 commit 9c26df9

File tree

4 files changed

+452
-0
lines changed

4 files changed

+452
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11871,6 +11871,12 @@ M: David Härdeman <[email protected]>
1187111871
S: Maintained
1187211872
F: drivers/media/rc/winbond-cir.c
1187311873

11874+
WINSYSTEMS WS16C48 GPIO DRIVER
11875+
M: William Breathitt Gray <[email protected]>
11876+
11877+
S: Maintained
11878+
F: drivers/gpio/gpio-ws16c48.c
11879+
1187411880
WIMAX STACK
1187511881
M: Inaky Perez-Gonzalez <[email protected]>
1187611882

drivers/gpio/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,15 @@ config GPIO_TS5500
570570
blocks of the TS-5500: DIO1, DIO2 and the LCD port, and the TS-5600
571571
LCD port.
572572

573+
config GPIO_WS16C48
574+
tristate "WinSystems WS16C48 GPIO support"
575+
select GPIOLIB_IRQCHIP
576+
help
577+
Enables GPIO support for the WinSystems WS16C48. The base port address
578+
for the device may be configured via the ws16c48_base module
579+
parameter. The interrupt line number for the device may be configured
580+
via the ws16c48_irq module parameter.
581+
573582
endmenu
574583

575584
menu "I2C GPIO expanders"

drivers/gpio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ obj-$(CONFIG_GPIO_VX855) += gpio-vx855.o
111111
obj-$(CONFIG_GPIO_WM831X) += gpio-wm831x.o
112112
obj-$(CONFIG_GPIO_WM8350) += gpio-wm8350.o
113113
obj-$(CONFIG_GPIO_WM8994) += gpio-wm8994.o
114+
obj-$(CONFIG_GPIO_WS16C48) += gpio-ws16c48.o
114115
obj-$(CONFIG_GPIO_XGENE) += gpio-xgene.o
115116
obj-$(CONFIG_GPIO_XGENE_SB) += gpio-xgene-sb.o
116117
obj-$(CONFIG_GPIO_XILINX) += gpio-xilinx.o

0 commit comments

Comments
 (0)