tests: enable flash tests for mr_canhubk3 board

Various tests enabled to use the on-board QSPI memory.

Signed-off-by: Manuel Argüelles <manuel.arguelles@nxp.com>
This commit is contained in:
Manuel Argüelles 2023-07-07 13:32:28 -03:00 committed by Carles Cufí
parent 87e40d8b6d
commit 23259aecdd
15 changed files with 130 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# Copyright 2023 NXP
# SPDX-License-Identifier: Apache-2.0
CONFIG_MAIN_STACK_SIZE=1100

View file

@ -76,3 +76,7 @@ tests:
- DTC_OVERLAY_FILE=boards/nrf52840dk_mx25r_high_perf.overlay
integration_platforms:
- nrf52840dk_nrf52840
drivers.flash.common.mr_canhubk3_sfdp_runtime:
platform_allow: mr_canhubk3
extra_configs:
- CONFIG_FLASH_NXP_S32_QSPI_NOR_SFDP_RUNTIME=y

View file

@ -0,0 +1,16 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Currently there's no support for mcuboot, so create a partition for this test.
*/
&mx25l6433f {
partitions {
slot1_partition: partition@100000 {
reg = <0x100000 0x100000>;
};
};
};

View file

@ -6,6 +6,7 @@ tests:
- nrf51dk_nrf51422
- native_posix
- native_posix_64
- mr_canhubk3
tags: flash_circural_buffer
integration_platforms:
- nrf52840dk_nrf52840

View file

@ -0,0 +1,24 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/delete-node/ &storage_partition;
&mx25l6433f {
partitions {
small_partition: partition@0 {
label = "small";
reg = <0x00000000 0x00010000>;
};
medium_partition: partition@10000 {
label = "medium";
reg = <0x00010000 0x000F0000>;
};
large_partition: partition@100000 {
label = "large";
reg = <0x00100000 0x00300000>;
};
};
};

View file

@ -5,6 +5,7 @@ common:
- native_posix
- native_posix_64
- mimxrt1060_evk
- mr_canhubk3
integration_platforms:
- nrf52840dk_nrf52840
modules:

View file

@ -0,0 +1,35 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/delete-node/ &storage_partition;
/ {
fstab {
compatible = "zephyr,fstab";
lfs1: lfs1 {
compatible = "zephyr,fstab,littlefs";
mount-point = "/lfs1";
partition = <&lfs1_part>;
read-size = <16>;
prog-size = <16>;
cache-size = <64>;
lookahead-size = <32>;
block-cycles = <512>;
};
};
};
&mx25l6433f {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
lfs1_part: partition@fc000 {
label = "storage";
reg = <0x000fc000 0x00010000>;
};
};
};

View file

@ -12,6 +12,7 @@ tests:
- native_posix
- native_posix_64
- nrf52840dk_nrf52840
- mr_canhubk3
integration_platforms:
- native_posix
logging.log_backend_fs.manualmounted.native_posix:
@ -29,3 +30,6 @@ tests:
extra_args: DTC_OVERLAY_FILE="./boards/nrf52840dk_nrf52840.overlay;./boards/automount.overlay"
integration_platforms:
- nrf52840dk_nrf52840
logging.log_backend_fs.manualmounted.mr_canhubk3:
platform_allow: mr_canhubk3
extra_args: DTC_OVERLAY_FILE="./boards/mr_canhubk3.overlay;./boards/automount.overlay"

View file

@ -5,6 +5,7 @@ tests:
- nrf52dk_nrf52832
- native_posix
- native_posix_64
- mr_canhubk3
integration_platforms:
- nrf52840dk_nrf52840
- native_posix

View file

@ -0,0 +1,16 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
/delete-node/ &storage_partition;
&mx25l6433f {
partitions {
settings_file_partition: partition@0 {
label = "settings_file_partition";
reg = <0x00000000 0x00010000>;
};
};
};

View file

@ -7,6 +7,7 @@ tests:
- nrf52840dk_nrf52840
- native_posix
- native_posix_64
- mr_canhubk3
tags:
- settings_file
- settings_file_littlefs

View file

@ -5,6 +5,7 @@ tests:
- nrf52dk_nrf52832
- native_posix
- native_posix_64
- mr_canhubk3
integration_platforms:
- nrf52840dk_nrf52840
tags: settings_fcb
@ -13,6 +14,7 @@ tests:
platform_allow:
- native_posix
- native_posix_64
- mr_canhubk3
integration_platforms:
- native_posix
tags: settings_fcb

View file

@ -5,6 +5,7 @@ tests:
- nrf52dk_nrf52832
- native_posix
- native_posix_64
- mr_canhubk3
integration_platforms:
- native_posix
tags: settings_file

View file

@ -0,0 +1,18 @@
/*
* Copyright 2023 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "../app.overlay"
/*
* Currently there's no support for mcuboot, so create a partition for this test.
*/
&mx25l6433f {
partitions {
slot1_partition: partition@100000 {
reg = <0x100000 0x100000>;
};
};
};

View file

@ -5,6 +5,7 @@ tests:
- qemu_x86
- native_posix
- native_posix_64
- mr_canhubk3
tags: flash_map
integration_platforms:
- native_posix
@ -26,6 +27,7 @@ tests:
- qemu_x86
- native_posix
- native_posix_64
- mr_canhubk3
tags: flash_map
integration_platforms:
- native_posix