Skip to content

Commit a1d60a3

Browse files
committed
boards: enables support for s32z270 hse crypto
Enable test for s32z270 hash crypto. Enable samples for cipher cryptoEndable samples for EBC, CBC, CTR mode of cipher crypto. Signed-off-by: Ha Duong Quang <[email protected]>
1 parent 938e78f commit a1d60a3

File tree

11 files changed

+58
-0
lines changed

11 files changed

+58
-0
lines changed

boards/nxp/s32z2xxdc2/doc/index.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,19 @@ External Flash
136136
The on-board S26HS512T 512M-bit HyperFlash memory is connected to the QSPI controller
137137
port A1. This board configuration selects it as the default flash controller.
138138

139+
CRYPTO
140+
======
141+
142+
The Hardware Security Engine (HSE) supports cryptographic operations, including hashing and
143+
symmetric ciphers, with capabilities for ECB, CBC, and CTR modes using RAM-based key catalogs
144+
with 128-bit or 256-bit key lengths.
145+
146+
.. note::
147+
The driver assumes that the HSE Firmware has been installed and configured (i.e the key catalogs
148+
has been formatted, used MU instances has been activated, etc). HSE Firmware installation and
149+
configuration phase documented in HSE Firmware User Manual. Please contact NXP sales person or
150+
NXP distributor in order to have access to that document.
151+
139152
Programming and Debugging
140153
*************************
141154

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ supported:
2222
- pwm
2323
- sent
2424
- psi5
25+
- crypto
2526
vendor: nxp

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu0_D.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ supported:
2222
- pwm
2323
- sent
2424
- psi5
25+
- crypto
2526
vendor: nxp

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ supported:
2222
- pwm
2323
- sent
2424
- psi5
25+
- crypto
2526
vendor: nxp

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu1_D.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ supported:
2222
- pwm
2323
- sent
2424
- psi5
25+
- crypto
2526
vendor: nxp
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&mub0 {
8+
status = "okay";
9+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&mub2 {
8+
status = "okay";
9+
};

samples/drivers/crypto/src/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2016 Intel Corporation.
3+
* Copyright 2025 NXP
34
*
45
* SPDX-License-Identifier: Apache-2.0
56
*/
@@ -24,6 +25,8 @@ LOG_MODULE_REGISTER(main);
2425
#define CRYPTO_DEV_COMPAT st_stm32_aes
2526
#elif DT_HAS_COMPAT_STATUS_OKAY(nxp_mcux_dcp)
2627
#define CRYPTO_DEV_COMPAT nxp_mcux_dcp
28+
#elif DT_HAS_COMPAT_STATUS_OKAY(nxp_s32_crypto_hse_mu)
29+
#define CRYPTO_DEV_COMPAT nxp_s32_crypto_hse_mu
2730
#elif CONFIG_CRYPTO_NRF_ECB
2831
#define CRYPTO_DEV_COMPAT nordic_nrf_ecb
2932
#elif DT_HAS_COMPAT_STATUS_OKAY(renesas_smartbond_crypto)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&mub0 {
8+
status = "okay";
9+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright 2025 NXP
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&mub2 {
8+
status = "okay";
9+
};

0 commit comments

Comments
 (0)