Skip to content

Commit f8d5644

Browse files
author
Alain Volmat
committed
drivers: clock: stm32mp13: rename frac-v binding into fracn
Rename the frac-v PLL binding into fracn in order to make it consistent with other STM32 PLL bindings. This commit also correct the range which should be 0 - 8191. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
1 parent 68d5095 commit f8d5644

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

boards/st/stm32mp135f_dk/stm32mp135f_dk.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
div-m = <2>;
8686
mul-n = <83>;
8787
div-p = <1>;
88-
frac-v = <2730>;
88+
fracn = <2730>;
8989
status = "okay";
9090
};
9191

drivers/clock_control/clock_stm32_ll_mp13.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static int stm32_clock_control_init(const struct device *dev)
173173
uint32_t pll1_n = DT_PROP(DT_NODELABEL(pll1), mul_n);
174174
uint32_t pll1_m = DT_PROP(DT_NODELABEL(pll1), div_m);
175175
uint32_t pll1_p = DT_PROP(DT_NODELABEL(pll1), div_p);
176-
uint32_t pll1_v = DT_PROP(DT_NODELABEL(pll1), frac_v);
176+
uint32_t pll1_fracn = DT_PROP(DT_NODELABEL(pll1), fracn);
177177

178178
LL_RCC_PLL1_SetN(pll1_n);
179179
while (LL_RCC_PLL1_GetN() != pll1_n) {
@@ -184,8 +184,8 @@ static int stm32_clock_control_init(const struct device *dev)
184184
LL_RCC_PLL1_SetP(pll1_p);
185185
while (LL_RCC_PLL1_GetP() != pll1_p) {
186186
}
187-
LL_RCC_PLL1_SetFRACV(pll1_v);
188-
while (LL_RCC_PLL1_GetFRACV() != pll1_v) {
187+
LL_RCC_PLL1_SetFRACV(pll1_fracn);
188+
while (LL_RCC_PLL1_GetFRACV() != pll1_fracn) {
189189
}
190190

191191
LL_RCC_PLL1_Enable();

dts/bindings/clock/st,stm32mp13-pll-clock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ properties:
8080
PLLx DIVR division factor
8181
Valid range: 1 - 128
8282
83-
frac-v:
83+
fracn:
8484
type: int
8585
description: |
8686
PLLx FRACV fractional latch
87-
Valid range: 1 - 8192
87+
Valid range: 0 - 8191

0 commit comments

Comments
 (0)