Skip to content

Commit 7fa23ab

Browse files
mstasiaknordicnordic-piks
authored andcommitted
tests: pm: add nRF54LS05B support
Added support for nRF54LS05B in power management tests. Signed-off-by: Michał Stasiak <[email protected]>
1 parent e3ac2e0 commit 7fa23ab

File tree

5 files changed

+61
-0
lines changed

5 files changed

+61
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/ {
2+
cpuapp_sram@20017000 {
3+
compatible = "zephyr,memory-region", "mmio-sram";
4+
reg = <0x20017000 DT_SIZE_K(4)>;
5+
zephyr,memory-region = "RetainedMem";
6+
status = "okay";
7+
8+
retainedmem0: retainedmem {
9+
compatible = "zephyr,retained-ram";
10+
status = "okay";
11+
};
12+
};
13+
14+
aliases {
15+
retainedmemdevice = &retainedmem0;
16+
};
17+
};
18+
19+
&cpuapp_sram {
20+
/* Shrink SRAM size to avoid overlap with retained memory region:
21+
* 96 - 4 = 92 = 0x17000
22+
*/
23+
reg = <0x20000000 DT_SIZE_K(92)>;
24+
ranges = <0x0 0x20000000 0x17000>;
25+
};

samples/zephyr/boards/nordic/system_off/sample.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ common:
77
tests:
88
nrf.extended.sample.boards.nrf.system_off:
99
integration_platforms:
10+
- nrf54ls05dk/nrf54ls05b/cpuapp
1011
- nrf54lv10dk/nrf54lv10a/cpuapp
1112
platform_allow:
13+
- [email protected]/nrf54ls05b/cpuapp
14+
- nrf54ls05dk/nrf54ls05b/cpuapp
1215
- nrf54lv10dk/nrf54lv10a/cpuapp
1316
- [email protected]/nrf54lv10a/cpuapp
1417
- [email protected]/nrf54lv10a/cpuapp
@@ -22,8 +25,11 @@ tests:
2225
- "Entering system off; press sw0 to restart"
2326
nrf.extended.sample.boards.nrf.system_off.retained_mem:
2427
integration_platforms:
28+
- nrf54ls05dk/nrf54ls05b/cpuapp
2529
- nrf54lv10dk/nrf54lv10a/cpuapp
2630
platform_allow:
31+
- [email protected]/nrf54ls05b/cpuapp
32+
- nrf54ls05dk/nrf54ls05b/cpuapp
2733
- nrf54lv10dk/nrf54lv10a/cpuapp
2834
- [email protected]/nrf54lv10a/cpuapp
2935
- [email protected]/nrf54lv10a/cpuapp
@@ -42,6 +48,8 @@ tests:
4248
- "Entering system off; press sw0 to restart"
4349
nrf.extended.sample.boards.nrf.system_off.grtc_wakeup:
4450
platform_allow:
51+
- [email protected]/nrf54ls05b/cpuapp
52+
- nrf54ls05dk/nrf54ls05b/cpuapp
4553
- nrf54lv10dk/nrf54lv10a/cpuapp
4654
- [email protected]/nrf54lv10a/cpuapp
4755
- [email protected]/nrf54lv10a/cpuapp
@@ -66,6 +74,8 @@ tests:
6674
- "Entering system off; wait 2 seconds to restart"
6775
nrf.extended.sample.boards.nrf.system_off.retained_mem.grtc_wakeup:
6876
platform_allow:
77+
- [email protected]/nrf54ls05b/cpuapp
78+
- nrf54ls05dk/nrf54ls05b/cpuapp
6979
- nrf54lv10dk/nrf54lv10a/cpuapp
7080
- [email protected]/nrf54lv10a/cpuapp
7181
- [email protected]/nrf54lv10a/cpuapp
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_POWEROFF=y
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/ {
2+
cpuapp_sram@20017000 {
3+
compatible = "zephyr,memory-region", "mmio-sram";
4+
reg = <0x20017000 DT_SIZE_K(4)>;
5+
zephyr,memory-region = "RetainedMem";
6+
status = "okay";
7+
8+
retainedmem0: retainedmem {
9+
compatible = "zephyr,retained-ram";
10+
status = "okay";
11+
};
12+
};
13+
14+
aliases {
15+
retainedmemtestdevice = &retainedmem0;
16+
};
17+
};
18+
19+
&cpuapp_sram {
20+
reg = <0x20000000 DT_SIZE_K(92)>;
21+
ranges = <0x0 0x20000000 0x17000>;
22+
};

tests/zephyr/drivers/retained_mem/api/testcase.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
tests:
22
nrf.extended.drivers.retained_mem.api.ram:
33
platform_allow:
4+
- [email protected]/nrf54ls05b/cpuapp
5+
- nrf54ls05dk/nrf54ls05b/cpuapp
46
- nrf54lv10dk/nrf54lv10a/cpuapp
57
- [email protected]/nrf54lv10a/cpuapp
68
- [email protected]/nrf54lv10a/cpuapp
79
integration_platforms:
10+
- nrf54ls05dk/nrf54ls05b/cpuapp
811
- nrf54lv10dk/nrf54lv10a/cpuapp
912
tags:
1013
- drivers

0 commit comments

Comments
 (0)