Skip to content

Commit db42d54

Browse files
committed
[nrf fromtree] tests: drivers: adc: Add overlay for nRF54H20 board
Adds configuration for making tests work. Signed-off-by: Karol Lasończyk <[email protected]> (cherry picked from commit ba30517)
1 parent 6ab35c9 commit db42d54

File tree

1 file changed

+34
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)