Thread (22 messages) 22 messages, 4 authors, 2021-03-02

Re: [PATCH v5 2/2] counter: add IRQ or GPIO based event counter

From: Oleksij Rempel <o.rempel@pengutronix.de>
Date: 2021-02-15 07:59:03
Also in: linux-iio, lkml

On Fri, Feb 12, 2021 at 10:26:39AM +0100, Linus Walleij wrote:
On Mon, Feb 8, 2021 at 2:53 PM Oleksij Rempel [off-list ref] wrote:
quoted
Add simple IRQ or GPIO base event counter. This device is used to measure
rotation speed of some agricultural devices, so no high frequency on the
counter pin is expected.

The maximal measurement frequency depends on the CPU and system load. On
the idle iMX6S I was able to measure up to 20kHz without count drops.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
From GPIO and interrupt point of view this driver looks good to me.
I don't know about the userspace interface etc.
May I have your Reviewed-by?

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help