Skip to content

Commit

Permalink
tests: drivers: flash: Support test common for RA6, RA4
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
khoa-nguyen-18 committed Dec 27, 2024
1 parent a69fdf0 commit 988105e
Show file tree
Hide file tree
Showing 11 changed files with 220 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/ek_ra4e2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@10000 {
label = "storage";
reg = <0x10000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/ek_ra4m2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@70000 {
label = "storage";
reg = <0x70000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/ek_ra4m3.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@f0000 {
label = "storage";
reg = <0xf0000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/ek_ra6e2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@30000 {
label = "storage";
reg = <0x30000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/ek_ra6m1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@70000 {
label = "storage";
reg = <0x70000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/ek_ra6m2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@F0000 {
label = "storage";
reg = <0xF0000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/ek_ra6m3.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@1F0000 {
label = "storage";
reg = <0x1F0000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/ek_ra6m4.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@F0000 {
label = "storage";
reg = <0xF0000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/ek_ra6m5.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@1F0000 {
label = "storage";
reg = <0x1F0000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/fpb_ra6e1.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@F0000 {
label = "storage";
reg = <0xF0000 DT_SIZE_K(64)>;
};
};
};
20 changes: 20 additions & 0 deletions tests/drivers/flash/common/boards/fpb_ra6e2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2024 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/

/delete-node/ &storage_partition;

&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;

/* Set 2 last blocks of the code flash as storage partition */
storage_partition: partition@30000 {
label = "storage";
reg = <0x30000 DT_SIZE_K(64)>;
};
};
};

0 comments on commit 988105e

Please sign in to comment.