linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/3] gpio: Add gpio-delay support
@ 2022-12-14  9:53 Alexander Stein
  2022-12-14  9:53 ` [RFC PATCH v2 1/3] dt-bindings: gpio: Add gpio-delay binding document Alexander Stein
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Alexander Stein @ 2022-12-14  9:53 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski
  Cc: Alexander Stein, linux-gpio, devicetree, Marek Vasut,
	Laurent Pinchart

Hello everyone,

thanks for the feedback I've received. This is the reworked RFC for
adressing a platform specific ramp-up/ramp-down delay on GPIO outputs.
Now the delays are neither specified as gpio-controller nor
consumer-specific properties.

v2 is a different approach than v1 in that it adds a new driver which will
simply forward setting the GPIO output of specified GPIOs in OF node.
The ramp-up/ramp-down delay can now be actually defined on consumer side,
see Patch 1 or 3 for examples.

Thanks a lot to the existing gpio-latch driver where I could learn/copy
from a lot for creating this driver!

Patch 1 is the new binding. I welcome improvements for the description,
if needed.

Patch 2 is the new driver. I'm open for a better name, if the current one
is too ambiguous.

Patch 3 is what I am actually using for testing. It is actually based
on a not-yet-commited patch, but the diff should be enough for
demonstration.

Alexander Stein (3):
  dt-bindings: gpio: Add gpio-delay binding document
  gpio: Add gpio delay driver
  [DNI] arm64: dts: mba8mx: Use gpio-delay for LVDS bridge

 .../devicetree/bindings/gpio/gpio-delay.yaml  |  75 ++++++++
 arch/arm64/boot/dts/freescale/mba8mx.dtsi     |  14 +-
 drivers/gpio/Kconfig                          |   8 +
 drivers/gpio/Makefile                         |   1 +
 drivers/gpio/gpio-delay.c                     | 164 ++++++++++++++++++
 5 files changed, 261 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/gpio/gpio-delay.yaml
 create mode 100644 drivers/gpio/gpio-delay.c

-- 
2.34.1


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

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

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-14  9:53 [RFC PATCH v2 0/3] gpio: Add gpio-delay support Alexander Stein
2022-12-14  9:53 ` [RFC PATCH v2 1/3] dt-bindings: gpio: Add gpio-delay binding document Alexander Stein
2022-12-15  9:11   ` Krzysztof Kozlowski
2022-12-15 13:09     ` Alexander Stein
2022-12-15 13:14   ` Linus Walleij
2022-12-14  9:53 ` [RFC PATCH v2 2/3] gpio: Add gpio delay driver Alexander Stein
2022-12-14  9:53 ` [RFC PATCH v2 3/3] [DNI] arm64: dts: mba8mx: Use gpio-delay for LVDS bridge Alexander Stein
2022-12-15 13:16 ` [RFC PATCH v2 0/3] gpio: Add gpio-delay support Linus Walleij
2022-12-15 18:21   ` Rob Herring
2022-12-15 21:26     ` Laurent Pinchart
2022-12-15 22:44       ` Rob Herring
2022-12-16  7:53         ` Alexander Stein

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).