Skip to content

Commit b10af16

Browse files
kl-cruzrlubos
authored andcommitted
[nrf noup] drivers: entropy: Switch entropy driver in nRF54L20
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]>
1 parent e46d2e6 commit b10af16

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

drivers/entropy/Kconfig.nrf_prng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ config FAKE_ENTROPY_NRF_PRNG
99
bool "A fake nRF entropy driver"
1010
default y
1111
depends on DT_HAS_NORDIC_ENTROPY_PRNG_ENABLED
12-
depends on (SOC_SERIES_NRF54HX || SOC_SERIES_NRF92X)
12+
depends on (SOC_SERIES_NRF54HX || SOC_SERIES_NRF92X || SOC_SERIES_NRF54LX)
1313
select ENTROPY_HAS_DRIVER
1414
help
1515
This is a super simple PRNG driver that can be used on nRF platforms that

dts/arm/nordic/nrf54l20_enga_cpuapp.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ systick: &cpuapp_systick {};
1111
nvic: &cpuapp_nvic {};
1212

1313
/ {
14+
chosen {
15+
zephyr,entropy = &prng;
16+
};
17+
1418
soc {
1519
compatible = "simple-bus";
1620
interrupt-parent = <&cpuapp_nvic>;
@@ -21,6 +25,11 @@ nvic: &cpuapp_nvic {};
2125
compatible = "zephyr,psa-crypto-rng";
2226
status = "disabled";
2327
};
28+
29+
prng: prng {
30+
compatible = "nordic,entropy-prng";
31+
status = "okay";
32+
};
2433
};
2534

2635
&cpuapp_ppb {

0 commit comments

Comments
 (0)