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: audio: dmic_nrfx_pdm: Add multi-instance PDM and support for prescaler #79177

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mstasiaknordic
Copy link

@mstasiaknordic mstasiaknordic commented Sep 30, 2024

New nRF targets include multiple instances of PDM peripheral. Thus, both nrfx and Zephyr drivers had to be adjusted to support it. Moreover, enumerated PDM frequency is replaced by prescaler value, which is used in functions responsible for finding suitable clock.

This PR also adds missing nrfx_config files for nRF54L15dk, which used pdk files. The only difference is inclusion of PDM20 and PDM21.

Added support for nRF54L15dk in audio dmic sample.

This PR can be merged after one updating nrfx to 3.7 - #78631

@zephyrbot
Copy link
Collaborator

zephyrbot commented Sep 30, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_nordic zephyrproject-rtos/hal_nordic@6d4acb8 (master) zephyrproject-rtos/hal_nordic#223 zephyrproject-rtos/hal_nordic#223/files

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_nordic DNM This PR should not be merged (Do Not Merge) labels Sep 30, 2024
Copy link
Member

@gmarull gmarull left a comment

Choose a reason for hiding this comment

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

HAL update happening here: #78631

Added dedicated nrfx configuration files for
nRF54L15 FP1, which differ from ENGA variant with
inclusion of PDM. Updated NRFX version to 3.7 in
configuratuon files to enable the use of new API.

Signed-off-by: Michał Stasiak <[email protected]>
New PDM, some present on nRF54L15 FP1, instances have
been added. Modified condfiguration file for nRF5340,
which now requires PDM0 instance.

Signed-off-by: Michał Stasiak <[email protected]>
Driver now uses multi-instance PDM nrfx API and
defines PDM device based on available instances.
It also introduces calculating PDM frequency using
prescaler, present on nRF54L15 FP1.

Signed-off-by: Michał Stasiak <[email protected]>
nRF54L15 FP1 can now be used in dmic audio sample.

Signed-off-by: Michał Stasiak <[email protected]>
Signed-off-by: Michał Stasiak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Audio area: Samples Samples DNM This PR should not be merged (Do Not Merge) manifest manifest-hal_nordic platform: nRF Nordic nRFx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants