Skip to content

Conversation

tiennguyenzg
Copy link
Contributor

Add support system timer for Renesas RZ/V2L, RZ/A3UL:

  • Update drivers/counter/renesas_rz_gtm_timer.c to using common source code for Renesas RZ devices
  • Add device tree for Renesas RZ/V2L, A3UL
  • Test: support tests/kernel/tickles/tickless_concept test

Need: zephyrproject-rtos/hal_renesas#130

Copy link

github-actions bot commented Sep 15, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@@ -51,28 +51,37 @@ static uint32_t cyc_per_tick;
#define CYC_PER_TICK cyc_per_tick

static void ostm_irq_handler(timer_callback_args_t *arg);
void gtm_int_isr(void);
void gtm_int_isr(void *irq);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please correct me if I am wrong, but this prototype does not appear to match the prototype in pull/130

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the RZA and RZV series define this prototype differently:

Therefore, this prototype change is intended to unify the implementation and allow using a common source for both series.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had expected that the HAL would have standardized around void gtm_int_isr(IRQn_Type const irq); and ignore the unused parameter for the rzg and rzv cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your suggestion. Would you consider this a blocker? It's like a callback function which is usually defined with a void* argument to accept any type of data, making it less dependent on the HAL driver.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose it would be a blocker to me. I can pretty much guarantee that if we don't address this now, we are going to have to address it later when any of the following occur ...

  1. Someone else notices the mismatch and raises an issue.
  2. A software quality tool flags the mismatch leading to a raised issue.
  3. A linker from another toolchain decides to raise a warning or even an error about it.

It is better in my mind to fix it now instead of later.

@tiennguyenzg tiennguyenzg force-pushed the rz_support_system_timer branch from 291f150 to 0137ecb Compare September 16, 2025 06:28
@github-actions github-actions bot removed the DNM (manifest) This PR should not be merged (controlled by action-manifest) label Sep 16, 2025
Hoang Nguyen added 4 commits September 16, 2025 15:32
Add system timer driver support for RZ/V2L, RZ/A3UL

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Tien Nguyen <[email protected]>
Add gtm, os_timer nodes to Renesas RZ/V2L, RZ/A3UL

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Tien Nguyen <[email protected]>
Select ARM_ARCH_TIMER when RZ_OS_TIMER is not selected

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Tien Nguyen <[email protected]>
Add tickless concept test support for RZ/V2L-SMARC, RZ/A3UL-SMARC

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Tien Nguyen <[email protected]>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants