From: Dharma Balasubiramani <dharma.b@microchip.com>
To: Kamel Bouhara <kamel.bouhara@bootlin.com>,
William Breathitt Gray <wbg@kernel.org>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>
Cc: <linux-arm-kernel@lists.infradead.org>,
<linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Dharma Balasubiramani <dharma.b@microchip.com>
Subject: [PATCH 0/2] TCB: Add DMA support to read the capture register AB
Date: Wed, 28 May 2025 11:43:03 +0530 [thread overview]
Message-ID: <20250528-mchp-tcb-dma-v1-0-083a41fb7b51@microchip.com> (raw)
This patch series adds support to enable the DMA support for TCB.
When DMA is used, the Register AB (TC_RAB) address must be configured as
source address of the transfer. TC_RAB provides the next unread value from
TC_RA and TC_RB. It may be read by the DMA after a request has been
triggered upon loading TC_RA or TC_RB.
-----------------------------------
This is tested on sam9x60 curiosity
root@sam9x60-curiosity-sd:~# cat /sys/bus/counter/devices/counter0/count0/capture0
258428554
root@sam9x60-curiosity-sd:~# devmem2 0xf800800c
/dev/mem opened.
Memory mapped at address 0xb6f78000.
Read at address 0xF800800C (0xb6f7800c): 0x0F674E8A
Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
---
Dharma Balasubiramani (2):
counter: microchip-tcb-capture: Retrieve and map parent base address
counter: microchip-tcb-capture: Add DMA support for TC_RAB register reads
drivers/counter/microchip-tcb-capture.c | 128 +++++++++++++++++++++++++++++++-
include/soc/at91/atmel_tcb.h | 1 +
2 files changed, 126 insertions(+), 3 deletions(-)
---
base-commit: fefff2755f2aa4125dce2a1edfe7e545c7c621f2
change-id: 20250528-mchp-tcb-dma-5a29148fe6e6
Best regards,
--
Dharma Balasubiramani <dharma.b@microchip.com>
next reply other threads:[~2025-05-28 6:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-28 6:13 Dharma Balasubiramani [this message]
2025-05-28 6:13 ` [PATCH 1/2] counter: microchip-tcb-capture: Retrieve and map parent base address Dharma Balasubiramani
2025-05-28 6:13 ` [PATCH 2/2] counter: microchip-tcb-capture: Add DMA support for TC_RAB register reads Dharma Balasubiramani
2025-05-29 9:21 ` kernel test robot
2025-05-29 15:33 ` David Lechner
2025-06-04 6:15 ` Dharma.B
2025-06-04 13:21 ` David Lechner
2025-05-29 15:26 ` [PATCH 0/2] TCB: Add DMA support to read the capture register AB David Lechner
2025-06-04 6:17 ` Dharma.B
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=20250528-mchp-tcb-dma-v1-0-083a41fb7b51@microchip.com \
--to=dharma.b@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@tuxon.dev \
--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=nicolas.ferre@microchip.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®