Skip to content
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

drivers: dac: Add support DAC for Renesas RA4 #86695

Merged
merged 5 commits into from
Mar 25, 2025

Conversation

khoa-nguyen-18
Copy link
Contributor

@khoa-nguyen-18 khoa-nguyen-18 commented Mar 6, 2025

Add support DAC for Renesas:

@zephyrbot zephyrbot added area: DAC Digital-to-Analog Converter area: Samples Samples platform: Renesas RA Renesas Electronics Corporation, RA labels Mar 6, 2025
@khoa-nguyen-18 khoa-nguyen-18 marked this pull request as draft March 6, 2025 06:33
@khoa-nguyen-18 khoa-nguyen-18 force-pushed the support_renesas_ra4_dac branch from 38c32ee to 67a3487 Compare March 6, 2025 07:06
@khoa-nguyen-18 khoa-nguyen-18 marked this pull request as ready for review March 6, 2025 07:07
@khoa-nguyen-18 khoa-nguyen-18 force-pushed the support_renesas_ra4_dac branch from 67a3487 to c52a99e Compare March 6, 2025 08:49
@khoa-nguyen-18
Copy link
Contributor Author

khoa-nguyen-18 commented Mar 6, 2025

Apologies for the multiple force pushes to correct the PR. It's now ready for review.

.buffered = true
.channel_id = DAC_CHANNEL_ID,
.resolution = DAC_RESOLUTION,
#if defined(CONFIG_BOARD_EK_RA4L1) || defined(CONFIG_BOARD_EK_RA4M1) || \
Copy link
Member

Choose a reason for hiding this comment

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

I think this situation may occur on other boards as well.
It seems better to add config to Kconfig.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank for your suggestion, I have updated it

defined(CONFIG_BOARD_EK_RA4W1)
.buffered = false,
#else
.buffered = true,
Copy link
Member

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, I have updated it

@khoa-nguyen-18 khoa-nguyen-18 force-pushed the support_renesas_ra4_dac branch 2 times, most recently from 95c58f8 to da1d271 Compare March 12, 2025 09:20
@khoa-nguyen-18 khoa-nguyen-18 requested a review from soburi March 13, 2025 01:16
soburi
soburi previously approved these changes Mar 13, 2025
Copy link
Member

@soburi soburi left a comment

Choose a reason for hiding this comment

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

LGTM

thaoluonguw
thaoluonguw previously approved these changes Mar 20, 2025
Update Renesas DAC driver to support DAC for RA4

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add support DAC for Renesas ra4-cm4 (RA4M1, RA4W1),
RA4E1, RA4L1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add support DAC for Renesas ek_ra4m1, ek_ra4w1, fpb_ra4e1,
voice_ra4e1, ek_ra4l1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add support test app dac_api, dac_loopback for Renesas
ek_ra4l1, ek_ra4w1, ek_ra4m1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
Add support DAC for ek_ra4m1, ek_ra4w1, fpb_ra4e1,
voice_ra4e1, ek_ra4l1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
@khoa-nguyen-18 khoa-nguyen-18 dismissed stale reviews from thaoluonguw and soburi via 3173273 March 21, 2025 09:23
@khoa-nguyen-18 khoa-nguyen-18 force-pushed the support_renesas_ra4_dac branch from da1d271 to 3173273 Compare March 21, 2025 09:23
@khoa-nguyen-18
Copy link
Contributor Author

rebase to solve the conflicts

@khoa-nguyen-18
Copy link
Contributor Author

hi @martinjaeger, can you please take a look at this PR?

@@ -10,16 +10,24 @@ include: [base.yaml]
properties:
has-internal-output:
type: boolean
description: True if the SoC supports the internal output feature in the DAC HWIP
description: |
True if the SoC supports the "internal output" feature in the DAC HWIP.
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: using "True..." terminology is a bit ackward given this can't really be false.

Suggested change
True if the SoC supports the "internal output" feature in the DAC HWIP.
Set if the SoC supports the "internal output" feature in the DAC HWIP.

ditto for others

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you, I will update this in future DAC PR

@kartben kartben assigned soburi and KhiemNguyenT and unassigned martinjaeger Mar 25, 2025
@kartben kartben merged commit c875ce7 into zephyrproject-rtos:main Mar 25, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DAC Digital-to-Analog Converter area: Samples Samples platform: Renesas RA Renesas Electronics Corporation, RA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants