Skip to content

Conversation

nhutnguyenkc
Copy link
Collaborator

Add HAL FSP DMA files to support DMA driver for RZ/A, V, T, N series

@KhiemNguyenT
Copy link
Collaborator

@khoa-nguyen-18 please take a look.

Comment on lines 91 to 104

* Use r_transfer_api.h of rzv-fsp to support the callbackSet member of the transfer_api_t struct
Impacted files:
drivers/rz/fsp/inc/api/r_transfer_api.h

* Change the cast type from uint32_t to uintptr_t when assigning an address to a register in the
DMAC FSP driver of the RZ/A3UL to avoid build warnings
Impacted files:
drivers/rz/fsp/src/rza/r_dmac/r_dmac.c

* Disable the BSP_FEATURE_BSP_HAS_MMU_SUPPORT configuration of the RZ/A3UL to avoid using
FSP MMU functions
Impacted files:
drivers/rz/fsp/src/rza/bsp/mcu/rza3ul/bsp_feature.h
Copy link
Contributor

Choose a reason for hiding this comment

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

Please separate these updates into other commits to make them easier to track

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Already, please help me check those commits. There are 4 commits for each

Copy link
Contributor

Choose a reason for hiding this comment

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

On the RA side, we separate any changes that modify the original FSP source into a different commit, separate from the commit that adds support.

My suggestion is that, in addition to the 4 commits where you add support, please create other commits specifically for these change

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We have split these changes into separate commits. Please help me check again.

#define BSP_FEATURE_BSP_SUPPORT_PLL5_CONFIG (0U)
#define BSP_FEATURE_BSP_SUPPORT_OCTAL_MEMORY (1U)
#define BSP_FEATURE_BSP_HAS_MMU_SUPPORT (1)
#define BSP_FEATURE_BSP_HAS_MMU_SUPPORT (0U)
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please explain the reason for changing this value?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The reason is to let Zephyr handle MMU functionality. Therefore, the BSP_FEATURE_BSP_HAS_MMU_SUPPORT configuration is disabled to avoid porting r_mmu module from FSP.

Copy link
Contributor

@khoa-nguyen-18 khoa-nguyen-18 left a comment

Choose a reason for hiding this comment

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

The PR looks good to me

@KhiemNguyenT
Copy link
Collaborator

@nhutnguyenkc please help to rebase this.

Hieu Nguyen added 6 commits October 14, 2025 11:09
Add HAL FSP DMAC_B files to support DMA for RZ/V series

Signed-off-by: Hieu Nguyen <[email protected]>
Signed-off-by: Nhut Nguyen <[email protected]>
Add HAL FSP DMAC files to support DMA for RZ/A series

Signed-off-by: Hieu Nguyen <[email protected]>
Signed-off-by: Nhut Nguyen <[email protected]>
Disable the BSP_FEATURE_BSP_HAS_MMU_SUPPORT configuration of the RZ/A3UL
to let Zephyr handle MMU

Signed-off-by: Hieu Nguyen <[email protected]>
Signed-off-by: Nhut Nguyen <[email protected]>
Change the cast type from uint32_t to uintptr_t when assigning
an address to a register in the DMAC FSP driver of the RZ/A3UL
to avoid build warnings

Signed-off-by: Hieu Nguyen <[email protected]>
Signed-off-by: Nhut Nguyen <[email protected]>
Add HAL FSP DMAC files to support DMA for RZ/T series

Signed-off-by: Hieu Nguyen <[email protected]>
Signed-off-by: Nhut Nguyen <[email protected]>
Add HAL FSP DMAC files to support DMA for RZ/N series

Signed-off-by: Hieu Nguyen <[email protected]>
Signed-off-by: Nhut Nguyen <[email protected]>
@nhutnguyenkc nhutnguyenkc force-pushed the support_renesas_rz_dma branch from bd874a3 to 612c1ba Compare October 14, 2025 04:11
@nhutnguyenkc
Copy link
Collaborator Author

Hi @KhiemNguyenT , I have already rebased to resolve conflicts. Please help me check and merge it. Thanks

@KhiemNguyenT KhiemNguyenT merged commit 362e776 into zephyrproject-rtos:main Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants