Skip to content

Commit 68d1418

Browse files
committed
tests: drivers: add fracn test for stm32h7 clock configuration tests
add overlay to use fracn with HSI in clock configuration tests for stm32h7 Signed-off-by: Nathan Olff <[email protected]>
1 parent 00474a6 commit 68d1418

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) 2024 Kickmaker
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* Warning: This overlay performs configuration from clean sheet.
9+
* It is assumed that it is applied after clear_clocks.overlay file.
10+
*/
11+
12+
&clk_hsi {
13+
hsi-div = <1>; /* HSI RC: 64MHz, hsi_clk = 64MHz */
14+
status = "okay";
15+
};
16+
17+
&pll {
18+
div-m = <4>;
19+
mul-n = <34>;
20+
div-p = <1>;
21+
div-q = <4>;
22+
div-r = <2>;
23+
clocks = <&clk_hsi>;
24+
fracn = <3072>;
25+
status = "okay";
26+
};
27+
28+
&rcc {
29+
clocks = <&pll>;
30+
clock-frequency = <DT_FREQ_M(550)>;
31+
d1cpre = <1>;
32+
hpre = <2>;
33+
d1ppre = <2>;
34+
d2ppre1 = <2>;
35+
d2ppre2 = <2>;
36+
d3ppre = <2>;
37+
};

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,10 @@ tests:
4646
- stm32h735g_disco
4747
integration_platforms:
4848
- nucleo_h723zg
49+
drivers.clock.stm32_clock_configuration.h7_core.sysclksrc_pll_hsi_fracn_550:
50+
extra_args: DTC_OVERLAY_FILE="boards/clear_clocks.overlay;boards/pll_hsi_fracn_550.overlay"
51+
platform_allow:
52+
- nucleo_h723zg
53+
- stm32h735g_disco
54+
integration_platforms:
55+
- nucleo_h723zg

0 commit comments

Comments
 (0)