Skip to content

Commit daa9988

Browse files
pelwellpopcornmix
authored andcommitted
gpio: Add gpio-fsm driver
The gpio-fsm driver implements simple state machines that allow GPIOs to be controlled in response to inputs from other GPIOs - real and soft/virtual - and time delays. It can: + create dummy GPIOs for drivers that demand them, + drive multiple GPIOs from a single input, with optional delays, + add a debounce circuit to an input, + drive pattern sequences onto LEDs etc. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 03d8c93 commit daa9988

4 files changed

Lines changed: 1134 additions & 0 deletions

File tree

‎drivers/gpio/Kconfig‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,15 @@ config HTC_EGPIO
11291129
several HTC phones. It provides basic support for input
11301130
pins, output pins, and irqs.
11311131

1132+
config GPIO_FSM
1133+
tristate "GPIO FSM support"
1134+
help
1135+
The GPIO FSM driver allows the creation of state machines for
1136+
manipulating GPIOs (both real and virtual), with state transitions
1137+
triggered by GPIO edges or delays.
1138+
1139+
If unsure, say N.
1140+
11321141
config GPIO_JANZ_TTL
11331142
tristate "Janz VMOD-TTL Digital IO Module"
11341143
depends on MFD_JANZ_CMODIO

‎drivers/gpio/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o
6060
obj-$(CONFIG_GPIO_EXAR) += gpio-exar.o
6161
obj-$(CONFIG_GPIO_F7188X) += gpio-f7188x.o
6262
obj-$(CONFIG_GPIO_FTGPIO010) += gpio-ftgpio010.o
63+
obj-$(CONFIG_GPIO_FSM) += gpio-fsm.o
6364
obj-$(CONFIG_GPIO_GE_FPGA) += gpio-ge.o
6465
obj-$(CONFIG_GPIO_GPIO_MM) += gpio-gpio-mm.o
6566
obj-$(CONFIG_GPIO_GRGPIO) += gpio-grgpio.o

0 commit comments

Comments
 (0)