Skip to content

Commit fcc5f9d

Browse files
FRASTMkartben
authored andcommitted
dts: bindings: pll i2s for the stm32f412 has a Q divider
There is a Q-divider factor [2..15] for the stm32f412 serie which supplies the 48MHz clock. Signed-off-by: Francois Ramu <[email protected]>
1 parent 15bdefe commit fcc5f9d

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

dts/bindings/clock/st,stm32f411-plli2s-clock.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,23 @@ properties:
2424
description: |
2525
Division factor for the PLL input clock
2626
Valid range: 2 - 63
27+
28+
div-q:
29+
type: int
30+
description: |
31+
PLLI2S division factor for I2S Clocks to supply USB/SDIO/RNG
32+
enum:
33+
- 2
34+
- 3
35+
- 4
36+
- 5
37+
- 6
38+
- 7
39+
- 8
40+
- 9
41+
- 10
42+
- 11
43+
- 12
44+
- 13
45+
- 14
46+
- 15

include/zephyr/dt-bindings/clock/stm32f4_clock.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@
2828
/* defined in stm32_common_clocks.h */
2929
/** Fixed clocks */
3030
/* Low speed clocks defined in stm32_common_clocks.h */
31-
#define STM32_SRC_HSI (STM32_SRC_LSI + 1)
32-
#define STM32_SRC_HSE (STM32_SRC_HSI + 1)
31+
#define STM32_SRC_HSI (STM32_SRC_LSI + 1)
32+
#define STM32_SRC_HSE (STM32_SRC_HSI + 1)
3333
/** PLL clock outputs */
34-
#define STM32_SRC_PLL_P (STM32_SRC_HSE + 1)
35-
#define STM32_SRC_PLL_Q (STM32_SRC_PLL_P + 1)
36-
#define STM32_SRC_PLL_R (STM32_SRC_PLL_Q + 1)
34+
#define STM32_SRC_PLL_P (STM32_SRC_HSE + 1)
35+
#define STM32_SRC_PLL_Q (STM32_SRC_PLL_P + 1)
36+
#define STM32_SRC_PLL_R (STM32_SRC_PLL_Q + 1)
3737
/** I2S sources */
38-
#define STM32_SRC_PLLI2S_R (STM32_SRC_PLL_R + 1)
38+
#define STM32_SRC_PLLI2S_Q (STM32_SRC_PLL_R + 1)
39+
#define STM32_SRC_PLLI2S_R (STM32_SRC_PLLI2S_Q + 1)
40+
/* CLK48MHz sources */
41+
#define STM32_SRC_CK48 (STM32_SRC_PLLI2S_R + 1)
42+
3943
/* I2S_CKIN not supported yet */
4044
/* #define STM32_SRC_I2S_CKIN TBD */
4145

0 commit comments

Comments
 (0)