Skip to content

Commit ad454a2

Browse files
committed
tests/drivers/clock_control: stm32u5: Fix pll_msis_80 test config
PLL input should be between 4 and 16MHz, so when MSI is set to 4MHz fix PLLM can't be higher than 1. Fix PLL1-NQR in consequence. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent dd2ddbb commit ad454a2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121

2222
&pll1 {
2323
div-m = <1>;
24-
mul-n = <40>;
25-
div-q = <1>;
26-
div-r = <1>;
24+
mul-n = <80>;
25+
div-q = <4>;
26+
div-r = <4>;
2727
clocks = <&clk_msis>;
2828
status = "okay";
2929
};
3030

3131
&rcc {
3232
clocks = <&pll1>;
3333
ahb-prescaler = <2>; /* Use AHB prescaler to reduce HCLK */
34-
clock-frequency = <DT_FREQ_M(80)>;
34+
clock-frequency = <DT_FREQ_M(40)>;
3535
apb1-prescaler = <1>;
3636
apb2-prescaler = <1>;
3737
apb3-prescaler = <1>;

tests/drivers/clock_control/stm32_clock_configuration/stm32u5_core/testcase.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ common:
44
tests:
55
drivers.stm32_clock_configuration.u5.sysclksrc_pll_msis_160:
66
extra_args: DTC_OVERLAY_FILE="boards/clear_clocks.overlay;boards/pll_msis_160.overlay"
7-
drivers.stm32_clock_configuration.u5.pll_msis_hab_2_80:
8-
extra_args: DTC_OVERLAY_FILE="boards/clear_clocks.overlay;boards/pll_msis_ahb_2_80.overlay"
7+
drivers.stm32_clock_configuration.u5.pll_msis_hab_2_40:
8+
extra_args: DTC_OVERLAY_FILE="boards/clear_clocks.overlay;boards/pll_msis_ahb_2_40.overlay"
99
drivers.stm32_clock_configuration.u5.sysclksrc_pll_hsi_160:
1010
extra_args: DTC_OVERLAY_FILE="boards/clear_clocks.overlay;boards/pll_hsi_160.overlay"
1111
drivers.stm32_clock_configuration.u5.sysclksrc_pll_hsi_40:

0 commit comments

Comments
 (0)