Skip to content

Commit b3647ac

Browse files
congnguyenhuunordic-segl
authored andcommitted
[nrf fromtree] tests: enable flash tests for s32z board
Enable flash tests for s32z board Signed-off-by: Cong Nguyen Huu <[email protected]> Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit c4d1c55)
1 parent a7fe239 commit b3647ac

File tree

16 files changed

+234
-1
lines changed

16 files changed

+234
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &storage_partition;
8+
9+
&s26hs512t {
10+
partitions {
11+
small_partition: partition@0 {
12+
label = "small";
13+
reg = <0x00000000 0x00010000>;
14+
};
15+
medium_partition: partition@10000 {
16+
label = "medium";
17+
reg = <0x00010000 0x000F0000>;
18+
};
19+
large_partition: partition@100000 {
20+
label = "large";
21+
reg = <0x00100000 0x00300000>;
22+
};
23+
};
24+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &storage_partition;
8+
9+
&s26hs512t {
10+
partitions {
11+
small_partition: partition@0 {
12+
label = "small";
13+
reg = <0x00000000 0x00010000>;
14+
};
15+
medium_partition: partition@10000 {
16+
label = "medium";
17+
reg = <0x00010000 0x000F0000>;
18+
};
19+
large_partition: partition@100000 {
20+
label = "large";
21+
reg = <0x00100000 0x00300000>;
22+
};
23+
};
24+
};

tests/subsys/fs/littlefs/testcase.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ common:
1515
tests:
1616
filesystem.littlefs.default:
1717
timeout: 60
18-
platform_allow: nrf54l15dk/nrf54l15/cpuapp
18+
platform_allow:
19+
- nrf54l15dk/nrf54l15/cpuapp
20+
- s32z2xxdc2/s32z270/rtu0
21+
- s32z2xxdc2/s32z270/rtu1
22+
- s32z2xxdc2@D/s32z270/rtu0
23+
- s32z2xxdc2@D/s32z270/rtu1
1924
filesystem.littlefs.custom:
2025
timeout: 180
2126
extra_configs:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &storage_partition;
8+
9+
/ {
10+
fstab {
11+
compatible = "zephyr,fstab";
12+
lfs1: lfs1 {
13+
compatible = "zephyr,fstab,littlefs";
14+
mount-point = "/lfs1";
15+
partition = <&lfs1_part>;
16+
read-size = <16>;
17+
prog-size = <16>;
18+
cache-size = <64>;
19+
lookahead-size = <32>;
20+
block-cycles = <512>;
21+
};
22+
};
23+
};
24+
25+
&s26hs512t {
26+
partitions {
27+
compatible = "fixed-partitions";
28+
#address-cells = <1>;
29+
#size-cells = <1>;
30+
lfs1_part: partition@0 {
31+
label = "storage";
32+
reg = <0x00000000 0x00010000>;
33+
};
34+
};
35+
};
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &storage_partition;
8+
9+
/ {
10+
fstab {
11+
compatible = "zephyr,fstab";
12+
lfs1: lfs1 {
13+
compatible = "zephyr,fstab,littlefs";
14+
mount-point = "/lfs1";
15+
partition = <&lfs1_part>;
16+
read-size = <16>;
17+
prog-size = <16>;
18+
cache-size = <64>;
19+
lookahead-size = <32>;
20+
block-cycles = <512>;
21+
};
22+
};
23+
};
24+
25+
&s26hs512t {
26+
partitions {
27+
compatible = "fixed-partitions";
28+
#address-cells = <1>;
29+
#size-cells = <1>;
30+
lfs1_part: partition@0 {
31+
label = "storage";
32+
reg = <0x00000000 0x00010000>;
33+
};
34+
};
35+
};

tests/subsys/logging/log_backend_fs/testcase.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ common:
1212
- native_sim/native/64
1313
- nrf52840dk/nrf52840
1414
- mr_canhubk3
15+
- s32z2xxdc2/s32z270/rtu0
16+
- s32z2xxdc2/s32z270/rtu1
17+
- s32z2xxdc2@D/s32z270/rtu0
18+
- s32z2xxdc2@D/s32z270/rtu1
1519
integration_platforms:
1620
- native_sim
1721
tests:

tests/subsys/settings/fcb/testcase.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ tests:
66
- native_sim
77
- native_sim/native/64
88
- mr_canhubk3
9+
- s32z2xxdc2/s32z270/rtu0
10+
- s32z2xxdc2/s32z270/rtu1
11+
- s32z2xxdc2@D/s32z270/rtu0
12+
- s32z2xxdc2@D/s32z270/rtu1
913
integration_platforms:
1014
- nrf52840dk/nrf52840
1115
- native_sim
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &storage_partition;
8+
9+
&s26hs512t {
10+
partitions {
11+
settings_file_partition: partition@0 {
12+
label = "settings_file_partition";
13+
reg = <0x00000000 0x00010000>;
14+
};
15+
};
16+
};
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright 2024 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/delete-node/ &storage_partition;
8+
9+
&s26hs512t {
10+
partitions {
11+
settings_file_partition: partition@0 {
12+
label = "settings_file_partition";
13+
reg = <0x00000000 0x00010000>;
14+
};
15+
};
16+
};

tests/subsys/settings/file/testcase.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ tests:
88
- native_sim
99
- native_sim/native/64
1010
- mr_canhubk3
11+
- s32z2xxdc2/s32z270/rtu0
12+
- s32z2xxdc2/s32z270/rtu1
13+
- s32z2xxdc2@D/s32z270/rtu0
14+
- s32z2xxdc2@D/s32z270/rtu1
1115
integration_platforms:
1216
- nrf52840dk/nrf52840
1317
tags:

0 commit comments

Comments
 (0)