test: drivers: entropy: add overlay for PSA Crypto Random entropy
This adds an overlay DT & config to enable the PSA Crypto Random entropy driver to get random bytes from TFM. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
parent
3b407a1987
commit
7266f82141
3 changed files with 24 additions and 0 deletions
4
tests/drivers/entropy/api/entropy_psa_crypto.conf
Normal file
4
tests/drivers/entropy/api/entropy_psa_crypto.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
CONFIG_TFM_PARTITION_CRYPTO=y
|
||||
CONFIG_TFM_CRYPTO_RNG_MODULE_ENABLED=y
|
||||
CONFIG_ENTROPY_PSA_CRYPTO_RNG=y
|
||||
CONFIG_HARDWARE_DEVICE_CS_GENERATOR=y
|
16
tests/drivers/entropy/api/entropy_psa_crypto.overlay
Normal file
16
tests/drivers/entropy/api/entropy_psa_crypto.overlay
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2022 Nordic Semiconductor ASA
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,entropy = &rng_psa;
|
||||
};
|
||||
|
||||
rng_psa: entropy_psa_crypto {
|
||||
compatible = "zephyr,psa-crypto-rng";
|
||||
status = "okay";
|
||||
};
|
||||
};
|
|
@ -6,3 +6,7 @@ tests:
|
|||
platform_allow: nrf52_bsim
|
||||
extra_args: DTC_OVERLAY_FILE=./entropy_bt_hci.overlay OVERLAY_CONFIG=./entropy_bt_hci.conf
|
||||
tags: driver entropy bluetooth
|
||||
drivers.entropy.psa_crypto:
|
||||
filter: CONFIG_BUILD_WITH_TFM
|
||||
extra_args: DTC_OVERLAY_FILE=./entropy_psa_crypto.overlay OVERLAY_CONFIG=./entropy_psa_crypto.conf
|
||||
tags: driver entropy psa-crypto
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue