Skip to content

Commit a621f95

Browse files
committed
[nrf fromtree] tests: drivers: counter: counter_basic_api: Add cpuppr
Add overlays for PPR core on nrf54h20. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 4d6c059)
1 parent 4a1f438 commit a621f95

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
#include "nrf54h20dk_nrf54h20_common.dtsi"
4+
5+
/* PPR does not have interrupts for fast peripherals. */
6+
&timer120 {
7+
status = "disabled";
8+
};
9+
10+
&timer121 {
11+
status = "disabled";
12+
};
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
3+
&timer130 {
4+
status = "reserved";
5+
interrupt-parent = <&cpuppr_clic>;
6+
};
7+
8+
&timer131 {
9+
status = "reserved";
10+
interrupt-parent = <&cpuppr_clic>;
11+
};
12+
13+
&timer132 {
14+
status = "reserved";
15+
interrupt-parent = <&cpuppr_clic>;
16+
};
17+
18+
&timer133 {
19+
status = "reserved";
20+
interrupt-parent = <&cpuppr_clic>;
21+
};
22+
23+
&timer134 {
24+
status = "reserved";
25+
interrupt-parent = <&cpuppr_clic>;
26+
};
27+
28+
&timer135 {
29+
status = "reserved";
30+
interrupt-parent = <&cpuppr_clic>;
31+
};
32+
33+
&timer136 {
34+
status = "reserved";
35+
interrupt-parent = <&cpuppr_clic>;
36+
};
37+
38+
&timer137 {
39+
status = "reserved";
40+
interrupt-parent = <&cpuppr_clic>;
41+
};
42+
43+
&rtc130 {
44+
status = "reserved";
45+
interrupt-parent = <&cpuppr_clic>;
46+
};
47+
48+
&rtc131 {
49+
status = "reserved";
50+
interrupt-parent = <&cpuppr_clic>;
51+
};

tests/drivers/counter/counter_basic_api/testcase.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,16 @@ tests:
3838
timeout: 400
3939
extra_args:
4040
DTC_OVERLAY_FILE="boards/mimxrt685_evk_rtc_1khz.overlay"
41+
drivers.counter.basic_api.nrf54h20_cpuppr:
42+
tags:
43+
- drivers
44+
- counter
45+
depends_on: counter
46+
platform_allow: nrf54h20dk/nrf54h20/cpuppr
47+
timeout: 600
48+
sysbuild: true
49+
extra_args:
50+
- vpr_launcher_DTC_OVERLAY_FILE="../../../tests/drivers/counter/counter_basic_api/boards/nrf54h20dk_nrf54h20_vpr_launcher.overlay"
51+
- SB_CONFIG_VPR_LAUNCHER=y
52+
# Disable asserts to fit in limited code memory
53+
- CONFIG_ASSERT=n

0 commit comments

Comments
 (0)