Skip to content

Commit 8cc7c81

Browse files
committed
[nrf fromlist] samples: drivers: adc: adc_sequence: Enable sample on nrf54lm20dk
Add overlay required to run the sample on nrf54lm20dk/nrf54lm20a/cpuapp. Upstream PR #: 92432 Signed-off-by: Sebastian Głąb <[email protected]>
1 parent de615f9 commit 8cc7c81

File tree

2 files changed

+66
-2
lines changed

2 files changed

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

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
@@ -29,8 +30,9 @@ tests:
2930
- nrf52840dk/nrf52840
3031
sample.drivers.adc.adc_sequence.8bit:
3132
platform_allow:
32-
- nrf54l15dk/nrf54l15/cpuapp
3333
- nrf54h20dk/nrf54h20/cpuapp
34+
- nrf54l15dk/nrf54l15/cpuapp
35+
- nrf54lm20dk/nrf54lm20a/cpuapp
3436
integration_platforms:
3537
- nrf54l15dk/nrf54l15/cpuapp
3638
extra_configs:

0 commit comments

Comments
 (0)