boards: stm32: Enable USB domain clock when required

For boards configuring USB device, enable or configure matching domain
clock when not done already.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2022-12-20 17:09:44 +01:00 committed by Fabio Baltieri
commit 93ff35f69f
2 changed files with 11 additions and 0 deletions

View file

@ -25,6 +25,11 @@
};
};
&clk_hsi48 {
/* HSI48 required for USB */
status = "okay";
};
&rcc {
d1cpre = <1>;
hpre = <1>;

View file

@ -90,6 +90,12 @@
status = "okay";
};
&clk_msi {
status = "okay";
msi-pll-mode;
msi-range = <11>; /* 48MHz USB bus clk */
};
&pll {
div-m = <1>;
mul-n = <20>;