Skip to content

Commit

Permalink
dts: stm32f4: rng is available on stm32f410
Browse files Browse the repository at this point in the history
Add rng definition to f410.
Though, don't inherit directly in f412 as it's integrated
in a different way.

Signed-off-by: Erwan Gouriou <[email protected]>
  • Loading branch information
erwango authored and carlescufi committed Jan 12, 2023
1 parent 0050ad8 commit 92b8fb4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 11 additions & 0 deletions dts/arm/st/f4/stm32f410.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include <st/f4/stm32f4.dtsi>

/ {
chosen {
zephyr,entropy = &rng;
};

soc {
spi2: spi@40003800 {
compatible = "st,stm32-spi";
Expand Down Expand Up @@ -91,6 +95,13 @@
#io-channel-cells = <1>;
};

rng: rng@40080000 {
compatible = "st,stm32-rng";
reg = <0x40080000 0x400>;
interrupts = <80 0>;
clocks = <&rcc STM32_CLOCK_BUS_AHB1 0x80000000>;
status = "disabled";
};
};

die_temp: dietemp {
Expand Down
6 changes: 2 additions & 4 deletions dts/arm/st/f4/stm32f412.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
#include <st/f4/stm32f410.dtsi>

/delete-node/ &dac1;
/ {
chosen {
zephyr,entropy = &rng;
};
/delete-node/ &rng;

/ {
soc {
pinctrl: pin-controller@40020000 {
reg = <0x40020000 0x1c00>;
Expand Down

0 comments on commit 92b8fb4

Please sign in to comment.