Skip to content

Commit 3c9368b

Browse files
nordic-seglcfriedt
authored andcommitted
samples: drivers: adc: adc_sequence: Enable sample on nrf54lm20dk
Add overlay required to run the sample on nrf54lm20dk/nrf54lm20a/cpuapp. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 8892550 commit 3c9368b

File tree

2 files changed

+54
-2
lines changed

2 files changed

+54
-2
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
aliases {
9+
adc0 = &adc;
10+
};
11+
};
12+
13+
&adc {
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
status = "okay";
17+
18+
channel@0 {
19+
reg = <0>;
20+
zephyr,gain = "ADC_GAIN_1";
21+
zephyr,reference = "ADC_REF_INTERNAL";
22+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
23+
zephyr,input-positive = <NRF_SAADC_AIN4>; /* P1.06 */
24+
};
25+
26+
channel@1 {
27+
reg = <1>;
28+
zephyr,gain = "ADC_GAIN_1";
29+
zephyr,reference = "ADC_REF_INTERNAL";
30+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
31+
zephyr,input-positive = <NRF_SAADC_AIN2>; /* P1.30 */
32+
};
33+
34+
channel@2 {
35+
reg = <2>;
36+
zephyr,gain = "ADC_GAIN_1";
37+
zephyr,reference = "ADC_REF_INTERNAL";
38+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
39+
zephyr,input-positive = <NRF_SAADC_DVDD>; /* 0.9 V internal */
40+
};
41+
42+
channel@7 {
43+
reg = <7>;
44+
zephyr,gain = "ADC_GAIN_1";
45+
zephyr,reference = "ADC_REF_INTERNAL";
46+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
47+
zephyr,input-positive = <NRF_SAADC_AIN6>; /* P1.04 */
48+
zephyr,input-negative = <NRF_SAADC_AIN7>; /* P1.03 */
49+
};
50+
};

samples/drivers/adc/adc_sequence/sample.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ tests:
1818
- cy8cproto_063_ble
1919
- cy8cproto_062_4343w
2020
- nrf52840dk/nrf52840
21-
- nrf54l15dk/nrf54l15/cpuapp
2221
- nrf54h20dk/nrf54h20/cpuapp
22+
- nrf54l15dk/nrf54l15/cpuapp
23+
- nrf54lm20dk/nrf54lm20a/cpuapp
2324
- ophelia4ev/nrf54l15/cpuapp
2425
- raytac_an54l15q_db/nrf54l15/cpuapp
2526
- ucans32k1sic
@@ -30,8 +31,9 @@ tests:
3031
- nrf52840dk/nrf52840
3132
sample.drivers.adc.adc_sequence.8bit:
3233
platform_allow:
33-
- nrf54l15dk/nrf54l15/cpuapp
3434
- nrf54h20dk/nrf54h20/cpuapp
35+
- nrf54l15dk/nrf54l15/cpuapp
36+
- nrf54lm20dk/nrf54lm20a/cpuapp
3537
integration_platforms:
3638
- nrf54l15dk/nrf54l15/cpuapp
3739
extra_configs:

0 commit comments

Comments
 (0)