Skip to content

Commit 5d29096

Browse files
erwangocarlescufi
authored andcommitted
dts/arm: st: Add clocks node on stm32wl series
Add clocks on stm32wl.dtsi. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
1 parent 4978e20 commit 5d29096

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

dts/arm/st/wl/stm32wl.dtsi

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <dt-bindings/clock/stm32_clock.h>
99
#include <dt-bindings/gpio/gpio.h>
1010
#include <dt-bindings/i2c/i2c.h>
11+
#include <freq.h>
1112

1213
/ {
1314
chosen {
@@ -29,6 +30,50 @@
2930
compatible = "mmio-sram";
3031
};
3132

33+
clocks {
34+
clk_hse: clk-hse {
35+
#clock-cells = <0>;
36+
compatible = "st,stm32-hse-clock";
37+
/* Expected clock-frequency on the whole series 32MHz */
38+
clock-frequency = <DT_FREQ_M(32)>;
39+
status = "disabled";
40+
};
41+
42+
clk_hsi: clk-hsi {
43+
#clock-cells = <0>;
44+
compatible = "fixed-clock";
45+
clock-frequency = <DT_FREQ_M(16)>;
46+
status = "disabled";
47+
};
48+
49+
clk_msi: clk-msi {
50+
#clock-cells = <0>;
51+
compatible = "st,stm32-msi-clock";
52+
msi-range = <6>; /* 4MHz (reset value) */
53+
status = "disabled";
54+
};
55+
56+
clk_lse: clk-lse {
57+
#clock-cells = <0>;
58+
compatible = "fixed-clock";
59+
clock-frequency = <32768>;
60+
status = "disabled";
61+
};
62+
63+
clk_lsi: clk-lsi {
64+
#clock-cells = <0>;
65+
compatible = "fixed-clock";
66+
clock-frequency = <DT_FREQ_K(32)>;
67+
status = "disabled";
68+
};
69+
70+
pll: pll {
71+
#clock-cells = <0>;
72+
compatible = "st,stm32wb-pll-clock";
73+
status = "disabled";
74+
};
75+
};
76+
3277
soc {
3378
flash: flash-controller@58004000 {
3479
compatible = "st,stm32-flash-controller", "st,stm32wl-flash-controller";
@@ -49,7 +94,7 @@
4994
};
5095

5196
rcc: rcc@58000000 {
52-
compatible = "st,stm32-rcc";
97+
compatible = "st,stm32wl-rcc";
5398
#clock-cells = <2>;
5499
reg = <0x58000000 0x400>;
55100
label = "STM32_CLK_RCC";

0 commit comments

Comments
 (0)