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: add support for audio clocks on nRF54 #87105

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

Conversation

mstasiaknordic
Copy link
Contributor

@mstasiaknordic mstasiaknordic commented Mar 14, 2025

Added support for audio clock for nRF54L20 and AudioPLL for nRF54H20 in DMIC PDM driver.

Depends on #87471

@mstasiaknordic mstasiaknordic marked this pull request as ready for review March 14, 2025 13:59
@mstasiaknordic mstasiaknordic changed the title drivers: audio: dmic_nrfx: allow use of ACLK for nRF54L20 drivers: audio: dmic_nrfx: add support for audio clocks on nRF54 Apr 1, 2025
@kartben
Copy link
Collaborator

kartben commented Apr 1, 2025

@mstasiaknordic please rebase on latest main to fix your ci failures

@kartben
Copy link
Collaborator

kartben commented Apr 1, 2025

@mstasiaknordic please rebase on latest main to fix your ci failures

@mstasiaknordic mstasiaknordic force-pushed the nrfx_pdm_aclk branch 6 times, most recently from b2c9166 to 1ff9eb2 Compare April 2, 2025 12:48
Added binding and node for audio clock on nRF54L20
with fixed frequency of 24 MHz.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
Added support for audio clock for nRF54L20 and AudioPLL
for nRF54H20 in DMIC PDM driver.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
Copy link
Collaborator

@nordic-krch nordic-krch left a comment

Choose a reason for hiding this comment

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

Looks good, one minor thing. auxpll_dev ideally should be in config structure.

struct onoff_manager *clk_mgr;
#elif CONFIG_CLOCK_CONTROL_NRF2_AUDIOPLL
const struct device *audiopll_dev;
Copy link
Collaborator

Choose a reason for hiding this comment

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

it would be better to have this in config structure as it can be initialized at compile time (contrary to clk_mgr).

#else
#define DMIC_NRFX_CLOCK_FREQ MHZ(32)
#define DMIC_NRFX_CLOCK_FACTOR 4096
#define DMIC_NRFX_AUDIO_CLOCK_FREQ \
COND_CODE_1(CONFIG_SOC_NRF54L20, \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please consider making this target agnostic. Otherwise, future targets with audio PLL would need changes in the driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants