Skip to content

Add minimal support for Renesas RZ/A2M EVK #88888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 25, 2025

Conversation

binhnguyen2434
Copy link
Collaborator

@binhnguyen2434 binhnguyen2434 commented Apr 22, 2025

Add minimal support for RZ/A2M EVK as following:

Interface Controller Driver/Component
GPIO on-chip gpio
OSTM on-chip timer
Pinctrl on-chip pinctrl
UART on-chip serial

Document: https://builds.zephyrproject.io/zephyr/pr/88888/docs/boards/renesas/rza2m_evk/doc/index.html

This SoC does not utilize the FSP driver in hal_renesas because it is not supported; instead, the driver is developed directly within the Zephyr tree.

@binhnguyen2434 binhnguyen2434 force-pushed the rza2m_minimal_support branch from 64f10b7 to 5e726e8 Compare April 22, 2025 10:18
Comment on lines 6 to 7
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 66000000
Copy link
Collaborator

Choose a reason for hiding this comment

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

needs to come from dts property

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@nordicjm Thanks for reviewing.
Updated to get clock freq from dts.

Comment on lines 30 to 31
/* Value must be set by board */
clock-frequency = <0>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

so why is this here? If it needs to be set, omit it so it throws an error if a board does not have it set

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed redundant clock freq.

Copy link
Collaborator

Choose a reason for hiding this comment

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

still here, remove from original commit

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@nordicjm
Thanks, I removed it from original commit.

Comment on lines 8 to 9
supported:

Copy link
Collaborator

Choose a reason for hiding this comment

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

??

Comment on lines 8 to 9
supported:

- uart
Copy link
Collaborator

Choose a reason for hiding this comment

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

so omit this empty part in the original commit and add the whole part in the commit adding UART

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I moved this change to board's commit.

Hoang Nguyen added 2 commits April 23, 2025 19:11
Add support for Renesas RZ/A2M

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Binh Nguyen <[email protected]>
Add minimal support for Renesas RZ/A2M EVK

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Binh Nguyen <[email protected]>
Hoang Nguyen and others added 6 commits April 23, 2025 19:12
Add clock control support for RZ/A2M

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Binh Nguyen <[email protected]>
Add timer support for RZ/A2M

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Binh Nguyen <[email protected]>
Add pinctrl support for RZ/A2M

Signed-off-by: Hieu Nguyen <[email protected]>
Signed-off-by: Binh Nguyen <[email protected]>
Signed-off-by: Hoang Nguyen <[email protected]>
Add serial support for RZ/A2M

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Binh Nguyen <[email protected]>
Add gpio support for RZ/A2M

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Binh Nguyen <[email protected]>
RZ/A2M requires MMU enabled. This sample disables MMU, so exclude the
platform.

Signed-off-by: Hoang Nguyen <[email protected]>
Signed-off-by: Binh Nguyen <[email protected]>
@binhnguyen2434 binhnguyen2434 force-pushed the rza2m_minimal_support branch from 723d0da to ddbebc3 Compare April 23, 2025 12:15
@binhnguyen2434 binhnguyen2434 added this to the v4.2.0 milestone Apr 25, 2025
@kartben kartben merged commit dda00a8 into zephyrproject-rtos:main Apr 25, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants