linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gpio: Add gpio-latch driver
@ 2022-08-25  9:41 Sascha Hauer
  2022-08-25  9:41 ` [PATCH 1/2] gpio: Add gpio latch driver Sascha Hauer
  2022-08-25  9:41 ` [PATCH 2/2] dt-bindings: gpio: Add gpio-latch binding document Sascha Hauer
  0 siblings, 2 replies; 10+ messages in thread
From: Sascha Hauer @ 2022-08-25  9:41 UTC (permalink / raw)
  To: linux-gpio
  Cc: linux-kernel, Linus Walleij, Bartosz Golaszewski, kernel, Sascha Hauer

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.

The driver is pretty much straight forward. The only thing I wasn't sure
about is in which category in Kconfig the driver should be sorted in. I
decided for "Virtual GPIO drivers" which is not an exact match, but the
best I could find in the existing categories.

Sascha

[1] https://lore.kernel.org/all/CACRpkdaBO=JzokGUF6uXZc7ASVD7LjqBxTLGwX-FShM=A9gw9A@mail.gmail.com/t/

Sascha Hauer (2):
  gpio: Add gpio latch driver
  dt-bindings: gpio: Add gpio-latch binding document

 .../devicetree/bindings/gpio/gpio-latch.yaml  |  83 ++++++++
 drivers/gpio/Kconfig                          |   6 +
 drivers/gpio/Makefile                         |   1 +
 drivers/gpio/gpio-latch.c                     | 188 ++++++++++++++++++
 4 files changed, 278 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-latch.yaml
 create mode 100644 drivers/gpio/gpio-latch.c

-- 
2.30.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-09-01  7:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25  9:41 [PATCH 0/2] gpio: Add gpio-latch driver Sascha Hauer
2022-08-25  9:41 ` [PATCH 1/2] gpio: Add gpio latch driver Sascha Hauer
2022-08-26  5:53   ` Marco Felsch
2022-08-29 14:21     ` Sascha Hauer
2022-08-26 13:41   ` Linus Walleij
2022-08-25  9:41 ` [PATCH 2/2] dt-bindings: gpio: Add gpio-latch binding document Sascha Hauer
2022-08-26 13:37   ` Linus Walleij
2022-08-29 14:40     ` Sascha Hauer
2022-08-31 12:40       ` Linus Walleij
2022-09-01  7:53         ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).