gpio: Add gpio-fsm driver
authorPhil Elwell <phil@raspberrypi.com>
Wed, 30 Sep 2020 11:00:54 +0000 (12:00 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 27 Jan 2021 19:13:21 +0000 (19:13 +0000)
commit9ce8c6e27c43b6d96241b5c1078213859faeb06b
tree26577b298a75e60fc4d4fff8a9d5d21eb3997532
parentf532685277094ec233d215b7fe2d330b0da88e8b
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>
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-fsm.c [new file with mode: 0644]
include/dt-bindings/gpio/gpio-fsm.h [new file with mode: 0644]