From: <Dharma.B@microchip.com>
To: <csokas.bence@prolan.hu>, <linux-arm-kernel@lists.infradead.org>,
<linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <kamel.bouhara@bootlin.com>, <wbg@kernel.org>
Subject: Re: [PATCH v3 0/2] microchip-tcb-capture: Add Capture, Compare, Overflow etc. events
Date: Thu, 6 Feb 2025 17:32:39 +0000 [thread overview]
Message-ID: <498d31c3-1756-4274-906e-ada5135e4e54@microchip.com> (raw)
In-Reply-To: <20250205104957.95236-2-csokas.bence@prolan.hu>
Hi Bence,
Thanks for your patch.
On 05/02/25 4:20 pm, Bence Csókás wrote:
> The TCB has three R/W-able "general purpose" hardware registers:
> RA, RB and RC. The hardware is capable of:
> * sampling Counter Value Register (CV) to RA/RB on a trigger edge
> * sending an interrupt of this change
> * sending an interrupt on CV change due to trigger
> * triggering an interrupt on CV compare to RC
> * stop counting after sampling to RB
>
> To enable using these features in user-space, an interrupt handler
> was added, generating the necessary counter events. On top, RA/B/C
> registers are added as Count Extensions.
I did a quick test on the SAMA5D4 Xplained board and observed that the
interrupt count increments on overflow.
By the way, I came across William's response to your question, and from
that discussion, I gather that you're working on a SAMA5D2 board. Are
you seeing the count value increase after writing this:
echo increase > /sys/bus/counter/devices/counter0/count0/function
cat /sys/bus/counter/devices/counter0/count0/count
>
> Bence Csókás (2):
> counter: microchip-tcb-capture: Add IRQ handling
> counter: microchip-tcb-capture: Add capture extensions for registers
> RA-RC
>
> drivers/counter/microchip-tcb-capture.c | 125 ++++++++++++++++++++++++
> 1 file changed, 125 insertions(+)
>
--
With Best Regards,
Dharma B.
next prev parent reply other threads:[~2025-02-06 17:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20250205104957.95236-1-csokas.bence@prolan.hu>
2025-02-05 10:49 ` [PATCH v3 1/2] counter: microchip-tcb-capture: Add IRQ handling Bence Csókás
2025-02-05 10:50 ` [PATCH v3 0/2] microchip-tcb-capture: Add Capture, Compare, Overflow etc. events Bence Csókás
2025-02-06 17:32 ` Dharma.B [this message]
2025-02-07 8:12 ` [PATCH v3 1/2] counter: microchip-tcb-capture: Add IRQ handling Dharma.B
2025-02-10 9:49 ` Csókás Bence
2025-02-05 10:49 ` [PATCH v3 2/2] counter: microchip-tcb-capture: Add capture extensions for registers RA-RC Bence Csókás
2025-02-07 8:19 ` Dharma.B
2025-02-10 9:56 ` Csókás Bence
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=498d31c3-1756-4274-906e-ada5135e4e54@microchip.com \
--to=dharma.b@microchip.com \
--cc=csokas.bence@prolan.hu \
--cc=kamel.bouhara@bootlin.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wbg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.