From d4d39f0a43311385a1ec456bdcda71a9e0518366 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Fri, 8 May 2020 11:33:03 +0100 Subject: [PATCH] dts: stm32: Add the RNG peripheral to the STM32L07{2,3} The STM32L072 and STM32L073 comes with a hardware random number generator. Add this to the device tree. Signed-off-by: Andreas Sandberg --- dts/arm/st/l0/stm32l072.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dts/arm/st/l0/stm32l072.dtsi b/dts/arm/st/l0/stm32l072.dtsi index 86efd865cfb..3fc0d5d8433 100644 --- a/dts/arm/st/l0/stm32l072.dtsi +++ b/dts/arm/st/l0/stm32l072.dtsi @@ -7,6 +7,10 @@ #include / { + chosen { + zephyr,entropy = &rng; + }; + soc { pinctrl: pin-controller@50000000 { @@ -70,6 +74,14 @@ label= "USB"; }; + rng: rng@40025000 { + compatible = "st,stm32-rng"; + reg = <0x40025000 0x400>; + clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x00100000>; + status = "disabled"; + label = "RNG"; + }; + eeprom: eeprom@8080000{ reg = <0x08080000 DT_SIZE_K(6)>; };