Skip to content

Commit c5692ed

Browse files
erwangocarlescufi
authored andcommitted
dts: stm32l4: Configure RNG domain clocks
Align RNG domain clock confguration on USB clock configuration. For now we're not able to fully use CLK48 as a mux clock, so this has to be done on both nodes rather than on a centralized fashion. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 8725edc commit c5692ed

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

dts/arm/st/l4/stm32l4.dtsi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@
405405
compatible = "st,stm32-rng";
406406
reg = <0x50060800 0x400>;
407407
interrupts = <80 0>;
408-
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00040000>;
408+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00040000>,
409+
<&rcc STM32_SRC_MSI CLK48_SEL(3)>;
409410
status = "disabled";
410411
};
411412
};

dts/arm/st/l4/stm32l496.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
};
1818
};
1919

20+
rng: rng@50060800 {
21+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00040000>,
22+
<&rcc STM32_SRC_HSI48 CLK48_SEL(0)>;
23+
};
24+
2025
i2c4: i2c@40008400 {
2126
compatible = "st,stm32-i2c-v2";
2227
clock-frequency = <I2C_BITRATE_STANDARD>;

dts/arm/st/l4/stm32l4r5.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
undershoot-prevention;
3636
};
3737

38+
rng: rng@50060800 {
39+
clocks = <&rcc STM32_CLOCK_BUS_AHB2 0x00040000>,
40+
<&rcc STM32_SRC_HSI48 CLK48_SEL(0)>;
41+
};
42+
3843
pinctrl: pin-controller@48000000 {
3944
gpiod: gpio@48000c00 {
4045
compatible = "st,stm32-gpio";

0 commit comments

Comments
 (0)