-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: drivers: audio: dmic: add from zephyr, support L20
Taken from zephyr with added support for L20. Signed-off-by: Piotr Kosycarz <[email protected]>
- Loading branch information
1 parent
c478fe4
commit ed34c4a
Showing
7 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# | ||
# Copyright (c) 2025 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
project(dmic) | ||
|
||
target_sources(app PRIVATE $ENV{ZEPHYR_BASE}/samples/drivers/audio/dmic/src/main.c) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
This sample extends the same-named Zephyr sample to verify it | ||
with Nordic development kits. | ||
|
||
Source code and basic configuration files can be found in the corresponding folder structure in zephyr/samples/drivers/audio/dmic. |
15 changes: 15 additions & 0 deletions
15
samples/drivers/audio/dmic/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
&pinctrl { | ||
pdm20_default_alt: pdm20_default_alt { | ||
group1 { | ||
psels = <NRF_PSEL(PDM_CLK, 1, 10)>, | ||
<NRF_PSEL(PDM_DIN, 1, 11)>; | ||
}; | ||
}; | ||
}; | ||
|
||
dmic_dev: &pdm20 { | ||
status = "okay"; | ||
pinctrl-0 = <&pdm20_default_alt>; | ||
pinctrl-names = "default"; | ||
clock-source = "PCLK32M"; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CONFIG_AUDIO=y | ||
CONFIG_AUDIO_DMIC=y | ||
|
||
CONFIG_LOG=y |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
sample: | ||
name: DMIC sample | ||
tests: | ||
nrf.extended.sample.drivers.audio.dmic: | ||
tags: | ||
- dmic | ||
- ci_samples_drivers_audio_dmic | ||
filter: dt_nodelabel_enabled("dmic_dev") | ||
integration_platforms: | ||
- nrf54l20pdk/nrf54l20/cpuapp | ||
harness: console | ||
harness_config: | ||
type: multi_line | ||
ordered: true | ||
regex: | ||
- "DMIC sample" | ||
- "Exiting" |
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