Skip to content

Commit 40ebaa9

Browse files
nordic-krchkartben
authored andcommitted
tests: drivers: adc: adc_accuracy_test: Add nrf54h20dk_nrf54h20_cpuppr
Add overlays for nrf54h20dk_nrf54h20_cpuppr. Moved common configuration for nrf54h20dk to nrf54h20dk_nrf54h20_common.dtsi. Add configuration for vpr_launcher on nrf54h20dk_nrf54h20_cpuapp. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 76f9fac commit 40ebaa9

File tree

5 files changed

+51
-21
lines changed

5 files changed

+51
-21
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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>;
10+
reference-mv = <1800>;
11+
expected-accuracy = <64>;
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_2";
22+
zephyr,reference = "ADC_REF_INTERNAL";
23+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
24+
zephyr,input-positive = <NRF_SAADC_AIN4>;
25+
zephyr,resolution = <14>;
26+
};
27+
};

tests/drivers/adc/adc_accuracy_test/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,4 @@
44
* Copyright (c) 2024 Nordic Semiconductor ASA
55
*/
66

7-
/ {
8-
zephyr,user {
9-
io-channels = <&adc 0>;
10-
reference-mv = <1800>;
11-
expected-accuracy = <64>;
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_2";
22-
zephyr,reference = "ADC_REF_INTERNAL";
23-
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
24-
zephyr,input-positive = <NRF_SAADC_AIN4>;
25-
zephyr,resolution = <14>;
26-
};
27-
};
7+
#include "nrf54h20dk_nrf54h20_common.dtsi"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* SPDX-License-Identifier: Apache-2.0
3+
*
4+
* Copyright (c) 2024 Nordic Semiconductor ASA
5+
*/
6+
7+
#include "nrf54h20dk_nrf54h20_common.dtsi"
8+
9+
&adc {
10+
status = "okay";
11+
};
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
#include "../../../boards/nrf54h20dk_nrf54h20_common.dtsi"
7+
8+
&adc {
9+
status = "reserved";
10+
interrupt-parent = <&cpuppr_clic>;
11+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# nothing here

0 commit comments

Comments
 (0)