All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] add support for GPIO based counter
@ 2021-01-22 11:24 Oleksij Rempel
  2021-01-22 11:24 ` [PATCH v3 1/2] dt-bindings: counter: add gpio-pulse-counter binding Oleksij Rempel
  2021-01-22 11:24 ` [PATCH v3 2/2] counter: add GPIO based pulse counters Oleksij Rempel
  0 siblings, 2 replies; 8+ messages in thread
From: Oleksij Rempel @ 2021-01-22 11:24 UTC (permalink / raw)
  To: Rob Herring, William Breathitt Gray
  Cc: Oleksij Rempel, devicetree, linux-kernel,
	Pengutronix Kernel Team, David Jander, Robin van der Gracht,
	linux-iio

changes v3:
- convert counter to atomic_t

changes v2:
- add commas
- avoid possible unhandled interrupts in the enable path
- do not use of_ specific gpio functions

Add support for GPIO based pulse counter. For now it can only count
pulses. With counter char device support, we will be able to attach
timestamps and measure actual pulse frequency.

Never the less, it is better to mainline this driver now (before chardev
patches go mainline), to provide developers additional use case for the counter
framework with chardev support.

Oleksij Rempel (2):
  dt-bindings: counter: add gpio-pulse-counter binding
  counter: add GPIO based pulse counters

 .../bindings/counter/gpio-pulse-counter.yaml  |  39 +++
 drivers/counter/Kconfig                       |   9 +
 drivers/counter/Makefile                      |   1 +
 drivers/counter/gpio-pulse-cnt.c              | 244 ++++++++++++++++++
 4 files changed, 293 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/counter/gpio-pulse-counter.yaml
 create mode 100644 drivers/counter/gpio-pulse-cnt.c

-- 
2.30.0


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

end of thread, other threads:[~2021-01-31 15:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22 11:24 [PATCH v2 0/2] add support for GPIO based counter Oleksij Rempel
2021-01-22 11:24 ` [PATCH v3 1/2] dt-bindings: counter: add gpio-pulse-counter binding Oleksij Rempel
2021-01-24 14:34   ` Jonathan Cameron
2021-01-22 11:24 ` [PATCH v3 2/2] counter: add GPIO based pulse counters Oleksij Rempel
2021-01-22 11:50   ` Ahmad Fatoum
2021-01-24 14:47   ` Jonathan Cameron
2021-01-26  8:07     ` Oleksij Rempel
2021-01-31 12:06       ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.