-
Notifications
You must be signed in to change notification settings - Fork 7.5k
driver: dac: add esp32 support #51271
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
driver: dac: add esp32 support #51271
Conversation
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
926b80c
to
e3321b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the addition of this driver.
I think the approach with the vendor-specific additional config parameter to allow configuration of the sine wave generator is not a very clean solution. Instead we should add a new API for wave form generation which can be re-used for other DAC drivers as well.
I suggest to start only with the basic DAC driver for ESP32 in this PR and afterwards we can discuss how an additional API for sine wave, sawtooth wave or triangle wave may look like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits, and I don't feel comfortable about the cw as pointed by @martinjaeger .
otherwise LGTM.
997d1a6
to
dec4c8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dma dts prop doesnt seem to be used in driver. remove it from binding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some concerns and nipicks please have a look.
Happy to resolve them if get bettter understanding.
00115c9
to
2438ac7
Compare
Thanks for the updates. Looks good from my side. Please have a look at the failing build in CI: https://github.com/zephyrproject-rtos/zephyr/actions/runs/3396238497/jobs/5647093859#step:13:698 Looks like some ESP-IDF internal files need to be added to CMake. |
This build issue is due to to unmerged PR which my PR in |
ab63152
to
dfd0135
Compare
@marekmatej can you please check the CI failures and fix them? |
dfd0135
to
853a8ff
Compare
853a8ff
to
7bad259
Compare
@galak please revisit |
Initial DAC driver for the ESP32/ESP32-S2 SOCs Signed-off-by: Marek Matej <[email protected]>
Sample code demonstrate the DAC on ESP32 and ESP32-S2 Signed-off-by: Marek Matej <[email protected]>
Add base DAC test used during CI. Signed-off-by: Marek Matej <[email protected]>
Add latest peripheral support to hal. Signed-off-by: Marek Matej <[email protected]>
e1bdd55
7bad259
to
e1bdd55
Compare
@galak can you please take a look once again? |
The previous comment has been addressed.
Add initial support for the DAC peripheral on ESP32 and ESP32-S2. The basic driver is tested with the
samples/driver/dac
.Add board specific sample application to demonstrate the on-chip cosine wave generator insamples/boards/esp32/dac_cw
.