Skip to content

Commit a61484f

Browse files
thaoluonguwhenrikbrixandersen
authored andcommitted
drivers: counter: Add AGT counter driver support for Renesas RA8
- boards: renesas: Add support for agt. - drivers: counter: Add support for counter driver use agt - dts: arm: Add support for agt. - dts: bindings: Add support for agt counter driver. - soc: renesas: Add support for agt counter driver. - samples: drivers: counter: alarm: Add support for RA8 This is initial support with only basic functionality for counter operation on Zephyr using AGT hardware, current support for count source is limited to LOCO and PCLKB, other count source like underflow signal external pin or AGTIO from another AGT channel will be added in later support Signed-off-by: Ha Nguyen <[email protected]> Signed-off-by: Thao Luong <[email protected]> Signed-off-by: Duy Phuong Hoang. Nguyen <[email protected]> Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 55bcc4a commit a61484f

File tree

15 files changed

+756
-0
lines changed

15 files changed

+756
-0
lines changed

boards/renesas/ek_ra8d1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ The below features are currently supported on Zephyr OS for EK-RA8D1 board:
106106
+--------------+------------+------------------+
107107
| PWM | on-chip | pwm |
108108
+--------------+------------+------------------+
109+
| COUNTER | on-chip | counter |
110+
+--------------+------------+------------------+
109111

110112
Other hardware features are currently not supported by the port.
111113

boards/renesas/ek_ra8m1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ The below features are currently supported on Zephyr OS for EK-RA8M1 board:
108108
+-----------+------------+----------------------+
109109
| PWM | on-chip | pwm |
110110
+-----------+------------+----------------------+
111+
| COUNTER | on-chip | counter |
112+
+-----------+------------+----------------------+
111113

112114
Other hardware features are currently not supported by the port.
113115

boards/renesas/mck_ra8t1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ The below features are currently supported on Zephyr OS for MCB-RA8T1 board:
104104
+--------------+------------+----------------------+
105105
| PWM | on-chip | pwm |
106106
+--------------+------------+----------------------+
107+
| COUNTER | on-chip | counter |
108+
+--------------+------------+----------------------+
107109

108110
Other hardware features are currently not supported by the port.
109111

drivers/counter/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ zephyr_library_sources_ifdef(CONFIG_COUNTER_SHELL counter_timer_sh
5151
zephyr_library_sources_ifdef(CONFIG_COUNTER_TIMER_RPI_PICO counter_rpi_pico_timer.c)
5252
zephyr_library_sources_ifdef(CONFIG_COUNTER_TIMER_MAX32 counter_max32_timer.c)
5353
zephyr_library_sources_ifdef(CONFIG_COUNTER_NXP_MRT counter_nxp_mrt.c)
54+
zephyr_library_sources_ifdef(CONFIG_COUNTER_RA_AGT counter_renesas_ra_agt.c)

drivers/counter/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,6 @@ source "drivers/counter/Kconfig.max32_timer"
100100

101101
source "drivers/counter/Kconfig.nxp_mrt"
102102

103+
source "drivers/counter/Kconfig.renesas_ra"
104+
103105
endif # COUNTER

drivers/counter/Kconfig.renesas_ra

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Renesas RA Family
2+
3+
# Copyright (c) 2024 Renesas Electronics Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config COUNTER_RA_AGT
7+
bool "Renesas RA AGT driver"
8+
default y
9+
depends on DT_HAS_RENESAS_RA_AGT_COUNTER_ENABLED
10+
help
11+
Enable support for Renesas Low Power Asynchronous General Purpose Timer (AGT) driver.

0 commit comments

Comments
 (0)