The file:
is copyright The Mbed TLS Contributors, and is distributed under the license normally used by Mbed TLS: a dual Apache 2.0 or GPLv2-or-later license.
The file tfm_mbedcrypto_config_profile_medium.h was derived from the file tfm_mbedcrypto_config_profile_medium.h taken from the TF-M source code here:
It was derived according to the Mbed TLS configuration file split that occurred as part of the Mbed TLS repository split, see https://github.com/Mbed-TLS/mbedtls/blob/development/docs/proposed/config-split.md.
In TF-M, the original file is distributed under a 3-Clause BSD license, as noted at the top of the file.
In Mbed TLS, with permission from the TF-M project, tfm_mbedcrypto_config_profile_medium.h is distributed under a dual Apache-2.0 OR GPL-2.0-or-later license, with copyright assigned to The Mbed TLS Contributors.