Skip to content

Commit cda01f8

Browse files
e-rkjukkar
authored andcommitted
[nrf noup] entropy: Add fake entropy nRF PRNG driver
This adds temporary entropy driver simulation for nRF54l09 device since final entropy source is not available yet. TODO: Remove this commit when proper solution will be available. Signed-off-by: Rafał Kuźnia <[email protected]> (cherry picked from commit 3d02dc6) (cherry picked from commit a0d1032)
1 parent 9a95a22 commit cda01f8

File tree

1 file changed

+142
-0
lines changed

1 file changed

+142
-0
lines changed
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <nordic/nrf54l09.dtsi>
8+
9+
cpu: &cpuapp {};
10+
systick: &cpuapp_systick {};
11+
nvic: &cpuapp_nvic {};
12+
13+
/delete-node/ &cpuflpr;
14+
/delete-node/ &cpuflpr_rram;
15+
/delete-node/ &cpuflpr_sram;
16+
/delete-node/ &cpuflpr_clic;
17+
18+
/ {
19+
chosen {
20+
zephyr,bt-hci = &bt_hci_controller;
21+
zephyr,entropy = &prng;
22+
};
23+
24+
soc {
25+
compatible = "simple-bus";
26+
interrupt-parent = <&cpuapp_nvic>;
27+
ranges;
28+
};
29+
30+
psa_rng: psa-rng {
31+
compatible = "zephyr,psa-crypto-rng";
32+
status = "disabled";
33+
};
34+
35+
prng: prng {
36+
compatible = "nordic,entropy-prng";
37+
status = "okay";
38+
};
39+
};
40+
41+
&bt_hci_controller {
42+
status = "okay";
43+
};
44+
45+
&cpuflpr_vpr {
46+
cpuapp_vevif_rx: mailbox@1 {
47+
compatible = "nordic,nrf-vevif-event-rx";
48+
reg = <0x1 0x1000>;
49+
status = "disabled";
50+
interrupts = <76 NRF_DEFAULT_IRQ_PRIORITY>;
51+
#mbox-cells = <1>;
52+
nordic,events = <1>;
53+
nordic,events-mask = <0x00100000>;
54+
};
55+
56+
cpuapp_vevif_tx: mailbox@0 {
57+
compatible = "nordic,nrf-vevif-task-tx";
58+
reg = <0x0 0x1000>;
59+
#mbox-cells = <1>;
60+
nordic,tasks = <7>;
61+
nordic,tasks-mask = <0x007f0000>;
62+
status = "disabled";
63+
};
64+
};
65+
66+
&cpuapp_ppb {
67+
compatible = "simple-bus";
68+
ranges;
69+
};
70+
71+
&grtc {
72+
#ifdef USE_NON_SECURE_ADDRESS_MAP
73+
interrupts = <227 NRF_DEFAULT_IRQ_PRIORITY>,
74+
#else
75+
interrupts = <228 NRF_DEFAULT_IRQ_PRIORITY>,
76+
#endif
77+
<229 NRF_DEFAULT_IRQ_PRIORITY>; /* reserved for Zero Latency IRQs */
78+
};
79+
80+
&gpiote20 {
81+
#ifdef USE_NON_SECURE_ADDRESS_MAP
82+
interrupts = <218 NRF_DEFAULT_IRQ_PRIORITY>;
83+
#else
84+
interrupts = <219 NRF_DEFAULT_IRQ_PRIORITY>;
85+
#endif
86+
};
87+
88+
&gpiote30 {
89+
#ifdef USE_NON_SECURE_ADDRESS_MAP
90+
interrupts = <268 NRF_DEFAULT_IRQ_PRIORITY>;
91+
#else
92+
interrupts = <269 NRF_DEFAULT_IRQ_PRIORITY>;
93+
#endif
94+
};
95+
96+
&dppic00 {
97+
status = "okay";
98+
};
99+
100+
&dppic10 {
101+
status = "okay";
102+
};
103+
104+
&dppic20 {
105+
status = "okay";
106+
};
107+
108+
&dppic30 {
109+
status = "okay";
110+
};
111+
112+
&ppib00 {
113+
status = "okay";
114+
};
115+
116+
&ppib01 {
117+
status = "okay";
118+
};
119+
120+
&ppib10 {
121+
status = "okay";
122+
};
123+
124+
&ppib11 {
125+
status = "okay";
126+
};
127+
128+
&ppib20 {
129+
status = "okay";
130+
};
131+
132+
&ppib21 {
133+
status = "okay";
134+
};
135+
136+
&ppib22 {
137+
status = "okay";
138+
};
139+
140+
&ppib30 {
141+
status = "okay";
142+
};

0 commit comments

Comments
 (0)