-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
base: main
Are you sure you want to change the base?
drivers: audio: dmic_nrfx: add support for audio clocks on nRF54 #87105
Conversation
70502ad
to
e4095e0
Compare
e4095e0
to
f47587b
Compare
f47587b
to
8d0ea1e
Compare
8d0ea1e
to
4de5124
Compare
@mstasiaknordic please rebase on latest main to fix your ci failures |
@mstasiaknordic please rebase on latest main to fix your ci failures |
b2c9166
to
1ff9eb2
Compare
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>
1ff9eb2
to
febe32a
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.
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; |
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.
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, \ |
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.
Please consider making this target agnostic. Otherwise, future targets with audio PLL would need changes in the driver.
Added support for audio clock for nRF54L20 and AudioPLL for nRF54H20 in DMIC PDM driver.
Depends on #87471