Skip to content

Commit b987a8b

Browse files
nrf: boards: nordic: nrf7120pdk: Enable prng for zephyr,entropy
Add nRF7120 to FAKE_ENTROPY_NRF_PRNG config Enabled prng for zephyr,entropy on nRF7120 Signed-off-by: Robert Robinson <[email protected]>
1 parent fe3b5ad commit b987a8b

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

boards/nordic/nrf7120pdk/nrf7120pdk_nrf7120_cpuapp.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,11 @@
1414

1515
chosen {
1616
zephyr,sram = &cpuapp_sram;
17+
zephyr,entropy = &prng;
18+
};
19+
20+
prng: prng {
21+
compatible = "nordic,entropy-prng";
22+
status = "okay";
1723
};
1824
};

boards/nordic/nrf7120pdk/nrf7120pdk_nrf7120_cpuapp_emu.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
zephyr,sram = &cpuapp_sram;
1818
zephyr,console = &uart00;
1919
zephyr,shell-uart = &uart00;
20+
zephyr,entropy = &prng;
21+
};
22+
23+
prng: prng {
24+
compatible = "nordic,entropy-prng";
25+
status = "okay";
2026
};
2127
};
2228

drivers/entropy/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#
55
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
66

7+
rsource "Kconfig.nrf_prng"
8+
79
config ENTROPY_CC3XX
810
bool "Arm CC3XX RNG driver for Nordic devices"
911
depends on HAS_HW_NRF_CC3XX && !BUILD_WITH_TFM

drivers/entropy/Kconfig.nrf_prng

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# nRF fake entropy prng generator driver configuration
2+
#
3+
# Copyright (c) 2025 Nordic Semiconductor ASA
4+
#
5+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
6+
7+
if ENTROPY_GENERATOR
8+
9+
config FAKE_ENTROPY_NRF_PRNG
10+
bool "A fake nRF entropy driver"
11+
default y
12+
depends on DT_HAS_NORDIC_ENTROPY_PRNG_ENABLED
13+
depends on (SOC_SERIES_NRF54HX || SOC_SERIES_NRF92X || SOC_SERIES_NRF54LX || SOC_SERIES_NRF71X)
14+
select ENTROPY_HAS_DRIVER
15+
help
16+
This is a super simple PRNG driver that can be used on nRF platforms that
17+
do not have an entropy source.
18+
This is NOT SAFE to use for cryptographic operations!
19+
20+
endif

0 commit comments

Comments
 (0)