Skip to content

Commit 369390e

Browse files
committed
dts: arm: st: c0: Add clk-hsi48 for stm32c071 SOC
Allow to use internal HSI to clock the USB bus if HSE is not available. Signed-off-by: Tomáš Juřena <jurenatomas@gmail.com>
1 parent 8965a73 commit 369390e

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

boards/st/nucleo_c071rb/nucleo_c071rb.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
status = "okay";
7979
};
8080

81+
&clk_hsi48 {
82+
status = "okay";
83+
crs-usb-sof;
84+
};
85+
8186
&rcc {
8287
clocks = <&clk_hse>;
8388
clock-frequency = <DT_FREQ_M(48)>;

dts/arm/st/c0/stm32c071.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@
77
#include <st/c0/stm32c031.dtsi>
88

99
/ {
10+
11+
clocks {
12+
clk_hsi48: clk-hsi48 {
13+
#clock-cells = <0>;
14+
compatible = "st,stm32-hsi48-clock";
15+
clock-frequency = <DT_FREQ_M(48)>;
16+
status = "disabled";
17+
};
18+
};
19+
1020
soc {
1121
compatible = "st,stm32c071", "st,stm32c0", "simple-bus";
1222

@@ -77,6 +87,7 @@
7787
dmamux1: dmamux@40020800 {
7888
dma-channels = <5>;
7989
};
90+
8091
};
8192

8293
usb_fs_phy: usbphy {

0 commit comments

Comments
 (0)