Skip to content

Commit 1cfcdcb

Browse files
kbidanikartben
authored andcommitted
dts: arm: stm32u3: add entropy node as Random Number Generator
Add the true Random Number Generator (RNG) node for stm32u3 socs. Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
1 parent 2ac66bc commit 1cfcdcb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dts/arm/st/u3/stm32u3.dtsi

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

1515
/ {
1616
chosen {
17+
zephyr,entropy = &rng;
1718
zephyr,flash-controller = &flash;
1819
};
1920

@@ -273,6 +274,14 @@
273274
#io-channel-cells = <1>;
274275
status = "disabled";
275276
};
277+
278+
rng: rng@420c0800 {
279+
compatible = "st,stm32-rng";
280+
reg = <0x420c0800 0x400>;
281+
clocks = <&rcc STM32_CLOCK(AHB2, 18)>;
282+
interrupts = <94 0>;
283+
status = "disabled";
284+
};
276285
};
277286
};
278287

0 commit comments

Comments
 (0)