Commit eb3f718b authored by Nathan Olff's avatar Nathan Olff Committed by Carles Cufi
Browse files

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: default avatarNathan Olff <nathan@kickmaker.net>
parent 7a094e37
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2024 Kickmaker
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/*
 * Warning: This overlay performs configuration from clean sheet.
 * It is assumed that it is applied after clear_clocks.overlay file.
 */

&clk_hsi {
	hsi-div = <1>;		/* HSI RC: 64MHz, hsi_clk = 64MHz */
	status = "okay";
};

&pll {
	div-m = <4>;
	mul-n = <34>;
	div-p = <1>;
	div-q = <4>;
	div-r = <2>;
	clocks = <&clk_hsi>;
	fracn = <3072>;
	status = "okay";
};

&rcc {
	clocks = <&pll>;
	clock-frequency = <DT_FREQ_M(550)>;
	d1cpre = <1>;
	hpre = <2>;
	d1ppre = <2>;
	d2ppre1 = <2>;
	d2ppre2 = <2>;
	d3ppre = <2>;
};
+7 −0
Original line number Diff line number Diff line
@@ -46,3 +46,10 @@ tests:
      - stm32h735g_disco
    integration_platforms:
      - nucleo_h723zg
  drivers.clock.stm32_clock_configuration.h7_core.sysclksrc_pll_hsi_fracn_550:
    extra_args: DTC_OVERLAY_FILE="boards/clear_clocks.overlay;boards/pll_hsi_fracn_550.overlay"
    platform_allow:
      - nucleo_h723zg
      - stm32h735g_disco
    integration_platforms:
      - nucleo_h723zg