| From: |
| Sascha Hauer <s.hauer-AT-pengutronix.de> |
| To: |
| linux-gpio-AT-vger.kernel.org |
| Subject: |
| [PATCH v2 0/2] gpio: Add gpio-latch driver |
| Date: |
| Wed, 31 Aug 2022 07:58:09 +0200 |
| Message-ID: |
| <20220831055811.1936613-1-s.hauer@pengutronix.de> |
| Cc: |
| linux-kernel-AT-vger.kernel.org, Geert Uytterhoeven <geert-AT-linux-m68k.org>, Linus Walleij <linus.walleij-AT-linaro.org>, Bartosz Golaszewski <brgl-AT-bgdev.pl>, kernel-AT-pengutronix.de, Sascha Hauer <s.hauer-AT-pengutronix.de> |
| Archive-link: |
| Article |
This adds a gpio-driver which multiplexes existing GPIOs using latches.
Uwe asked [1] if that would be accectable as a new gpio driver, and here
is the result. For a better description what this is all about have a
look at the drawings in the patches.
Sascha
[1] https://lore.kernel.org/all/CACRpkdaBO=JzokGUF6uXZc7ASVD7...
Changes since v1:
- Use gpiod_set_value_cansleep when the underlying GPIOs might sleep
- Move MODULE_DEVICE_TABLE near to the end
- Add license to binding file
- remove trailing whitespaces
Sascha Hauer (2):
gpio: Add gpio latch driver
dt-bindings: gpio: Add gpio-latch binding document
.../devicetree/bindings/gpio/gpio-latch.yaml | 84 ++++++++
drivers/gpio/Kconfig | 6 +
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-latch.c | 190 ++++++++++++++++++
4 files changed, 281 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/gpio-latch.yaml
create mode 100644 drivers/gpio/gpio-latch.c
--
2.30.2