Skip to content

Commit 44929f7

Browse files
Emil-Juhlkartben
authored andcommitted
dts: arm: st: n6: describe rng block
The stm32n6 features an RNG block. The RNG is a true NIST SP800-90B compliant entropy source according to the stm32n657x0 reference manual[1]. Per Table 3 in the reference manual, the RNG peripheral register boundary address (secure) is 0x54020000 to 0x540203FF. That is, base address 0x54020000 and size 0x400. Per Table 73 in the reference manual, the RNG peripheral has only a single rng_clk option (hsis_osc_ck). Per section 14.10.66 (and more) the RNG peripheral control is performed through AHB3 using bit 0. As such, the `clocks` property contains a single phandle to the RCC AHB3 bit 0 entries. Per Table 135 in the reference manual, the RNG peripheral interrupt is located at position 40 in the NVIC. [1] RM0486 Rev 2: https://www.st.com/resource/en/reference_manual/rm0486-stm32n647657xx-armbased-32bit-mcus-stmicroelectronics.pdf Signed-off-by: Emil Dahl Juhl <[email protected]>
1 parent e63996f commit 44929f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dts/arm/st/n6/stm32n6.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,14 @@
853853
resets = <&rctl STM32_RESET(APB5, 1)>;
854854
status = "disabled";
855855
};
856+
857+
rng: rng@54020000 {
858+
compatible = "st,stm32-rng";
859+
reg = <0x54020000 0x400>;
860+
interrupts = <40 0>;
861+
clocks = <&rcc STM32_CLOCK(AHB3, 0)>;
862+
status = "disabled";
863+
};
856864
};
857865
};
858866

0 commit comments

Comments
 (0)