diff --git a/dts/arm/st/f4/stm32f405.dtsi b/dts/arm/st/f4/stm32f405.dtsi index 76f2e25711..925630afb8 100644 --- a/dts/arm/st/f4/stm32f405.dtsi +++ b/dts/arm/st/f4/stm32f405.dtsi @@ -210,6 +210,13 @@ phase-seg2 = <6>; }; + rng: rng@50060800 { + compatible = "st,stm32-rng"; + reg = <0x50060800 0x400>; + clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000040>; + status = "disabled"; + label = "RNG"; + }; }; otghs_fs_phy: otghs_fs_phy { diff --git a/dts/arm/st/f4/stm32f412.dtsi b/dts/arm/st/f4/stm32f412.dtsi index fe3c956421..27ff3068aa 100644 --- a/dts/arm/st/f4/stm32f412.dtsi +++ b/dts/arm/st/f4/stm32f412.dtsi @@ -135,6 +135,14 @@ }; }; + rng: rng@50060800 { + compatible = "st,stm32-rng"; + reg = <0x50060800 0x400>; + clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000040>; + status = "disabled"; + label = "RNG"; + }; + usbotg_fs: usb@50000000 { num-bidir-endpoints = <6>; }; diff --git a/dts/arm/st/f7/stm32f7.dtsi b/dts/arm/st/f7/stm32f7.dtsi index a0d83a363d..00a1105c00 100644 --- a/dts/arm/st/f7/stm32f7.dtsi +++ b/dts/arm/st/f7/stm32f7.dtsi @@ -639,6 +639,14 @@ status = "disabled"; label = "DMA_2"; }; + + rng: rng@50060800 { + compatible = "st,stm32-rng"; + reg = <0x50060800 0x400>; + clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00000040>; + status = "disabled"; + label = "RNG"; + }; }; otghs_fs_phy: otghs_fs_phy { diff --git a/dts/arm/st/g4/stm32g4.dtsi b/dts/arm/st/g4/stm32g4.dtsi index 921c1dd8a7..d5bcf1eea4 100644 --- a/dts/arm/st/g4/stm32g4.dtsi +++ b/dts/arm/st/g4/stm32g4.dtsi @@ -425,6 +425,14 @@ label = "RTC_0"; }; + rng: rng@50060800 { + compatible = "st,stm32-rng"; + reg = <0x50060800 0x400>; + clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x04000000>; + status = "disabled"; + label = "RNG"; + }; + usb: usb@40005c00 { compatible = "st,stm32-usb"; reg = <0x40005c00 0x400>; diff --git a/dts/arm/st/l4/stm32l4.dtsi b/dts/arm/st/l4/stm32l4.dtsi index c871c41a0f..0cdd376a59 100644 --- a/dts/arm/st/l4/stm32l4.dtsi +++ b/dts/arm/st/l4/stm32l4.dtsi @@ -341,6 +341,14 @@ status = "disabled"; label = "LPTIM_1"; }; + + rng: rng@50060800 { + compatible = "st,stm32-rng"; + reg = <0x50060800 0x400>; + clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00040000>; + status = "disabled"; + label = "RNG"; + }; }; }; diff --git a/dts/bindings/rng/st,stm32-rng.yaml b/dts/bindings/rng/st,stm32-rng.yaml new file mode 100644 index 0000000000..a73621b6cf --- /dev/null +++ b/dts/bindings/rng/st,stm32-rng.yaml @@ -0,0 +1,18 @@ +# Copyright (c) 2020, Linaro Limited +# SPDX-License-Identifier: Apache-2.0 + +description: STM32 Random Number Generator + +compatible: "st,stm32-rng" + +include: base.yaml + +properties: + reg: + required: true + + label: + required: true + + clocks: + required: true