Skip to content

Commit a9ded9f

Browse files
erwangotpambor
authored andcommitted
tests: clock_control: stm32l0: Fix dts build due to missing hsi-div
Following introduction of hsi-div on L0, upate hsi description on l0. Since this description is not compatible with l1 series anymore add a dedicated l0 test variant and matching overlay. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 06c3d7a commit a9ded9f

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
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>;
14+
status = "okay";
15+
};
16+
17+
&pll {
18+
div = <2>;
19+
mul = <4>;
20+
clocks = <&clk_hsi>;
21+
status = "okay";
22+
};
23+
24+
&rcc {
25+
clocks = <&pll>;
26+
clock-frequency = <DT_FREQ_M(32)>;
27+
};

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,16 @@ tests:
133133
- nucleo_l073rz
134134
integration_platforms:
135135
- nucleo_l152re
136-
drivers.clock.stm32_clock_configuration.common_core.l0_l1.sysclksrc_pll_32_hsi_16:
136+
drivers.clock.stm32_clock_configuration.common_core.l0.sysclksrc_pll_32_hsi_16:
137+
extra_args: DTC_OVERLAY_FILE="boards/clear_clocks.overlay;boards/l0_pll_32_hsi_16.overlay"
138+
platform_allow:
139+
- nucleo_l073rz
140+
integration_platforms:
141+
- nucleo_l073rz
142+
drivers.clock.stm32_clock_configuration.common_core.l1.sysclksrc_pll_32_hsi_16:
137143
extra_args: DTC_OVERLAY_FILE="boards/clear_clocks.overlay;boards/pll_32_hsi_16.overlay"
138144
platform_allow:
139145
- nucleo_l152re
140-
- nucleo_l073rz
141146
integration_platforms:
142147
- nucleo_l152re
143148
drivers.clock.stm32_clock_configuration.common_core.l0_l1.sysclksrc_msi_range6:

0 commit comments

Comments
 (0)