diff --git a/boards/st/stm32mp135f_dk/stm32mp135f_dk.dts b/boards/st/stm32mp135f_dk/stm32mp135f_dk.dts index 3c853de2831..b5814fca00a 100644 --- a/boards/st/stm32mp135f_dk/stm32mp135f_dk.dts +++ b/boards/st/stm32mp135f_dk/stm32mp135f_dk.dts @@ -85,7 +85,7 @@ div-m = <2>; mul-n = <83>; div-p = <1>; - frac-v = <2730>; + fracn = <2730>; status = "okay"; }; diff --git a/drivers/clock_control/clock_stm32_ll_mp13.c b/drivers/clock_control/clock_stm32_ll_mp13.c index 09f7fed1abc..e3c6411b735 100644 --- a/drivers/clock_control/clock_stm32_ll_mp13.c +++ b/drivers/clock_control/clock_stm32_ll_mp13.c @@ -173,7 +173,7 @@ static int stm32_clock_control_init(const struct device *dev) uint32_t pll1_n = DT_PROP(DT_NODELABEL(pll1), mul_n); uint32_t pll1_m = DT_PROP(DT_NODELABEL(pll1), div_m); uint32_t pll1_p = DT_PROP(DT_NODELABEL(pll1), div_p); - uint32_t pll1_v = DT_PROP(DT_NODELABEL(pll1), frac_v); + uint32_t pll1_fracn = DT_PROP(DT_NODELABEL(pll1), fracn); LL_RCC_PLL1_SetN(pll1_n); while (LL_RCC_PLL1_GetN() != pll1_n) { @@ -184,8 +184,8 @@ static int stm32_clock_control_init(const struct device *dev) LL_RCC_PLL1_SetP(pll1_p); while (LL_RCC_PLL1_GetP() != pll1_p) { } - LL_RCC_PLL1_SetFRACV(pll1_v); - while (LL_RCC_PLL1_GetFRACV() != pll1_v) { + LL_RCC_PLL1_SetFRACV(pll1_fracn); + while (LL_RCC_PLL1_GetFRACV() != pll1_fracn) { } LL_RCC_PLL1_Enable(); diff --git a/dts/bindings/clock/st,stm32mp13-pll-clock.yaml b/dts/bindings/clock/st,stm32mp13-pll-clock.yaml index c8bacc6d453..3ac441d662b 100644 --- a/dts/bindings/clock/st,stm32mp13-pll-clock.yaml +++ b/dts/bindings/clock/st,stm32mp13-pll-clock.yaml @@ -80,8 +80,8 @@ properties: PLLx_R division factor (aka DIVR + 1) Valid range: 1 - 128 - frac-v: + fracn: type: int description: | PLLx FRACV fractional latch - Valid range: 1 - 8192 + Valid range: 0 - 8191