samples: psa_level1: add nucleo_l552ze_q_ns to allowed platforms

Add nucleo_l552ze_q_ns boards to the list of platforms
that can build and run the psa_level1 tf-m integration
sample. We add a dts overlay as well.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2021-04-15 11:35:10 +02:00
commit 88ae27fa16
2 changed files with 53 additions and 1 deletions

View file

@ -0,0 +1,52 @@
/*
* Copyright (c) 2020 Linaro Limited.
*
* SPDX-License-Identifier: Apache-2.0
*/
/* This partition table should be used along with TFM configuration:
* - TEST_S=OFF (NO REGRESSION)
*
* In this configuration, TFM binary does not include tests.
* The partition sizes are compatible with TF-M platform flash_layout.h.
*/
/ {
chosen {
zephyr,code-partition = &slot1_partition;
};
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x00013000>;
read-only;
};
/* Secure image primary slot */
slot0_partition: partition@13000 {
label = "image-0";
reg = <0x00013000 0x0002D000>;
};
/* Non-secure image primary slot */
slot1_partition: partition@40000 {
label = "image-1";
reg = <0x00040000 0x00009000>;
};
/*
* The flash starting at 0x7F000 and ending at
* 0x80000 is reserved for the application.
*/
storage_partition: partition@7f000 {
label = "storage";
reg = <0x0007F000 0x00001000>;
};
};
};

View file

@ -6,7 +6,7 @@ tests:
sample.psa_level_1:
tags: introduction tfm
platform_allow: mps2_an521_nonsecure lpcxpresso55s69_ns nrf5340dk_nrf5340_cpuappns
nrf9160dk_nrf9160ns v2m_musca_s1_nonsecure stm32l562e_dk_ns
nrf9160dk_nrf9160ns nucleo_l552ze_q_ns v2m_musca_s1_nonsecure stm32l562e_dk_ns
harness: console
harness_config:
type: multi_line