Skip to content

Commit 28380aa

Browse files
nordic-seglnordicjm
authored andcommitted
samples: zephyr: drivers: audio: dmic: Run on nRF54LM20A PDK
Add overlay that defines correct loopback to run the sample on nRF54LM20A PDK. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent a5de2aa commit 28380aa

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

samples/zephyr/drivers/audio/dmic/boards/nrf54lm20apdk_nrf54lm20a_cpuapp.overlay

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7+
/* Test requires loopback between P1.18 and P1.24.
8+
* For best performance, PDM_CLK shall be on 'Clock pin'.
9+
*/
10+
711
&pinctrl {
812
pdm20_default_alt: pdm20_default_alt {
913
group1 {
10-
psels = <NRF_PSEL(PDM_CLK, 1, 10)>,
11-
<NRF_PSEL(PDM_DIN, 1, 11)>;
14+
psels = <NRF_PSEL(PDM_CLK, 1, 18)>,
15+
<NRF_PSEL(PDM_DIN, 1, 24)>;
1216
};
1317
};
1418
};
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/* Test requires loopback between P1.10 and P1.11 */
8+
9+
&pinctrl {
10+
pdm20_default_alt: pdm20_default_alt {
11+
group1 {
12+
psels = <NRF_PSEL(PDM_CLK, 1, 10)>,
13+
<NRF_PSEL(PDM_DIN, 1, 11)>;
14+
};
15+
};
16+
};
17+
18+
dmic_dev: &pdm20 {
19+
status = "okay";
20+
pinctrl-0 = <&pdm20_default_alt>;
21+
pinctrl-names = "default";
22+
clock-source = "PCLK32M";
23+
};

samples/zephyr/drivers/audio/dmic/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ tests:
1515
- "Exiting"
1616
platform_allow:
1717
- nrf54lm20apdk/nrf54lm20a/cpuapp
18+
- [email protected]/nrf54lm20a/cpuapp
1819
integration_platforms:
1920
- nrf54lm20apdk/nrf54lm20a/cpuapp
21+
- [email protected]/nrf54lm20a/cpuapp

0 commit comments

Comments
 (0)