-
Notifications
You must be signed in to change notification settings - Fork 7k
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
STM32N6: add ADC support #85587
Merged
Merged
STM32N6: add ADC support #85587
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test result of
|
4c54d0a
to
c233148
Compare
djiatsaf-st
previously approved these changes
Feb 12, 2025
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.
LGTM
c233148
to
f216c08
Compare
Rebased to fix conflicts |
djiatsaf-st
previously approved these changes
Feb 13, 2025
marwaiehm-st
previously approved these changes
Feb 13, 2025
STM32N6 ADC doesn't have an integrated prescaler, so these properties have to be removed. Though the F1 compatible also removes these two same properties, grouping the N6 with the F1 would not be convenient since there are lots of differences between the two. Signed-off-by: Guillaume Gautier <[email protected]>
Add support for STM32N6 ADC in the STM32 ADC driver. Signed-off-by: Guillaume Gautier <[email protected]>
Move code to enable the analog supply in a dedicated function. Signed-off-by: Guillaume Gautier <[email protected]>
On STM32N6, the register holding the data is 32 bits and DMA must operate in word transfer to work properly. So we change the type of the buffer in which we store the ADC data from uint16_t to uint32_t for N6. Signed-off-by: Guillaume Gautier <[email protected]>
Add ADC1 and ADC2 to STM32N6 device tree. Signed-off-by: Guillaume Gautier <[email protected]>
Enable ADC for STM32N6570-DK and Nucleo N657X0 boards. Signed-off-by: Guillaume Gautier <[email protected]>
STM32N6 needs to have a buffer of 32-bit data instead of 16-bit. Adds a Kconfig to select whether the test shall use a 32-bit buffer. Signed-off-by: Guillaume Gautier <[email protected]>
Add dts and conf overlay for nucleo_n657x0 and stm32n6570_dk boards. Signed-off-by: Guillaume Gautier <[email protected]>
f9caaba
f216c08
to
f9caaba
Compare
Rebase round 2 |
anangl
approved these changes
Feb 14, 2025
djiatsaf-st
approved these changes
Feb 14, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add ADC support for STM32N6. Enable ADC on STM32N6570-DK and Nucleo N657X0, and add ADC test overlays for these two boards.