Skip to content

Commit

Permalink
[nrf noup] drivers: entropy: Switch entropy driver in nRF54L20
Browse files Browse the repository at this point in the history
nrf-squash! [nrf noup] entropy: Add fake entropy nRF PRNG driver

Change psa driver to nordic entropy. nRF54L20 needs it as well
as nRF54H20.

Signed-off-by: Karol Lasończyk <[email protected]>
  • Loading branch information
kl-cruz authored and rlubos committed Oct 17, 2024
1 parent e46d2e6 commit b10af16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/entropy/Kconfig.nrf_prng
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config FAKE_ENTROPY_NRF_PRNG
bool "A fake nRF entropy driver"
default y
depends on DT_HAS_NORDIC_ENTROPY_PRNG_ENABLED
depends on (SOC_SERIES_NRF54HX || SOC_SERIES_NRF92X)
depends on (SOC_SERIES_NRF54HX || SOC_SERIES_NRF92X || SOC_SERIES_NRF54LX)
select ENTROPY_HAS_DRIVER
help
This is a super simple PRNG driver that can be used on nRF platforms that
Expand Down
9 changes: 9 additions & 0 deletions dts/arm/nordic/nrf54l20_enga_cpuapp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ systick: &cpuapp_systick {};
nvic: &cpuapp_nvic {};

/ {
chosen {
zephyr,entropy = &prng;
};

soc {
compatible = "simple-bus";
interrupt-parent = <&cpuapp_nvic>;
Expand All @@ -21,6 +25,11 @@ nvic: &cpuapp_nvic {};
compatible = "zephyr,psa-crypto-rng";
status = "disabled";
};

prng: prng {
compatible = "nordic,entropy-prng";
status = "okay";
};
};

&cpuapp_ppb {
Expand Down

0 comments on commit b10af16

Please sign in to comment.