From baa4ee7ebd5d885119d6d196d62c1ca1e6af5841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B8e?= Date: Tue, 27 Feb 2024 12:46:31 +0100 Subject: [PATCH] [nrf noup] dts: choose a crypto accelerator for entropy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit squash! [nrf noup] dts: choose cryptocell for entropy when available This is a long-term noup patch because crypto driver support is NCS-only for both cryptocell and CRACEN. Set HAS_HW_NRF_CC3XX to be defined in NS build when cryptocell is accessed through the PSA API. We need to know which CC3XX features are available. Set PSA as the entropy source for 54L. PSA is the only NCS-supported interface to CRACEN. Signed-off-by: Georgios Vasilakis Signed-off-by: Joakim Andersson (cherry picked from commit c76cf8776d7bcbb7eef8023191a941f8e9410cb4) (cherry picked from commit 214533fa69601f52933977a39fff855d955c886f) (cherry picked from commit 3819c4ae701f0b4265bbd3409e37e5bba5c4abcb) (cherry picked from commit 910bb5fe9e14e8afcf0c8b65c846e294821d693e) Signed-off-by: Dominik Ermel Signed-off-by: Sebastian Bøe --- dts/arm/nordic/nrf54l_common.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dts/arm/nordic/nrf54l_common.dtsi b/dts/arm/nordic/nrf54l_common.dtsi index 415f2471174..3214daeac84 100644 --- a/dts/arm/nordic/nrf54l_common.dtsi +++ b/dts/arm/nordic/nrf54l_common.dtsi @@ -25,6 +25,12 @@ chosen { zephyr,flash-controller = &rram_controller; + zephyr,entropy = &psa_rng; + }; + + psa_rng: psa-rng { + compatible = "zephyr,psa-crypto-rng"; + status = "okay"; }; sw_pwm: sw-pwm {