Skip to content

Commit 5acf8a2

Browse files
khoa-nguyen-18henrikbrixandersen
authored andcommitted
tests: drivers: flash: Support test common for RA6, RA4
Add overlay to support test flash/commone for: ek_ra6m1, ek_ra6m2, ek_ra6m3, ek_ra6m4, ek_ra6m5, ek_ra6e2, fpb_ra6e1, fpb_ra6e2, ek_ra4m2, ek_ra4m3, ek_ra4e2 Signed-off-by: Khoa Nguyen <[email protected]> Signed-off-by: Phi Tran <[email protected]>
1 parent 606bfc6 commit 5acf8a2

25 files changed

+234
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TEST_DRIVER_FLASH_SIZE=131072
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/delete-node/ &storage_partition;
7+
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
/* Set 2 last blocks of the code flash as storage partition */
15+
storage_partition: partition@10000 {
16+
label = "storage";
17+
reg = <0x10000 DT_SIZE_K(64)>;
18+
};
19+
};
20+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TEST_DRIVER_FLASH_SIZE=524288
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/delete-node/ &storage_partition;
7+
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
/* Set 2 last blocks of the code flash as storage partition */
15+
storage_partition: partition@70000 {
16+
label = "storage";
17+
reg = <0x70000 DT_SIZE_K(64)>;
18+
};
19+
};
20+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TEST_DRIVER_FLASH_SIZE=1048576
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/delete-node/ &storage_partition;
7+
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
/* Set 2 last blocks of the code flash as storage partition */
15+
storage_partition: partition@f0000 {
16+
label = "storage";
17+
reg = <0xf0000 DT_SIZE_K(64)>;
18+
};
19+
};
20+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TEST_DRIVER_FLASH_SIZE=262144
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/delete-node/ &storage_partition;
7+
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
/* Set 2 last blocks of the code flash as storage partition */
15+
storage_partition: partition@30000 {
16+
label = "storage";
17+
reg = <0x30000 DT_SIZE_K(64)>;
18+
};
19+
};
20+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_TEST_DRIVER_FLASH_SIZE=524288
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Copyright (c) 2024 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/delete-node/ &storage_partition;
7+
8+
&flash0 {
9+
partitions {
10+
compatible = "fixed-partitions";
11+
#address-cells = <1>;
12+
#size-cells = <1>;
13+
14+
/* Set 2 last blocks of the code flash as storage partition */
15+
storage_partition: partition@70000 {
16+
label = "storage";
17+
reg = <0x70000 DT_SIZE_K(64)>;
18+
};
19+
};
20+
};

0 commit comments

Comments
 (0)