Skip to content

Commit 5aa020e

Browse files
nordic-babu57300
authored andcommitted
[nrf fromtree] tests: adc_accuracy: Add overlay for nrf52840dk.
Add overlay and enable test for nrf52840dk. Signed-off-by: Bartlomiej Buczek <[email protected]> (cherry picked from commit dc9a9dc)
1 parent 962b473 commit 5aa020e

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2024 Nordic Semiconductor ASA
5+
*/
6+
7+
8+
/ {
9+
zephyr,user {
10+
io-channels = <&adc 0>;
11+
reference_mv = <3000>;
12+
};
13+
};
14+
15+
&adc {
16+
#address-cells = <1>;
17+
#size-cells = <0>;
18+
19+
channel@0 {
20+
reg = <0>;
21+
zephyr,gain = "ADC_GAIN_1_6";
22+
zephyr,reference = "ADC_REF_INTERNAL";
23+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
24+
zephyr,input-positive = <NRF_SAADC_AIN1>; /* P0.03 */
25+
zephyr,resolution = <14>;
26+
};
27+
28+
};

tests/drivers/adc/adc_accuracy_test/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ tests:
2020
- frdm_kl25z
2121
- ek_ra8m1
2222
- frdm_mcxc242
23+
- nrf52840dk/nrf52840

0 commit comments

Comments
 (0)