-
Notifications
You must be signed in to change notification settings - Fork 8.3k
stm32: mco: Remove deprecated Kconfig configuration #81460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
erwango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In commit message of "drivers: clock_control: stm32 mco driver get define from DTS", please mention that DTS configuration has been introduced and Kconfig method deprecated two releases before and can be then safely removed.
Please also update migration guide on this.
4abd718 to
6863af0
Compare
erwango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd drop the clang commit entirely as most of the changes are bad from readbility/maintainability point of view.
erwango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
|
@FRASTM Please rebase to fix CI issue |
|
rebased on 065bd32 |
|
rebase on c0be51d |
The stm32F4 serie has HSI and HSE clock possible clock sources The stm32F1 also has an external HSE possible clock source Signed-off-by: Francois Ramu <[email protected]>
The stm32f411 and stm32f412 and stm32f446 have a PLLI2S with a div M in front of the PLLI2S input. Signed-off-by: Francois Ramu <[email protected]>
The stm32F41x have a PLLI2S M divider for their PLL I2S but others like the stm32F401 or stm32F74x have the PLL M divider from the main PLL : might affect the sysclock. LL Function is the same for configuring the PLL I2S but parameter could depends on the stm32 serie. Signed-off-by: Francois Ramu <[email protected]>
Rely on the DTS to get the MCO input source clock and prescaler. DTS configuration has been introduced and Kconfig method deprecated two releases before and can be then safely removed. Signed-off-by: Francois Ramu <[email protected]>
Depending on the stm32 serie the MCO1/2 prescaler is a value set in the CFGR register to divide the MCO output clock. Use the same model based on the RefMan for other stm32 series than stm32C0/F4/F7/H5/H7, once the MCO is in the DTS. Signed-off-by: Francois Ramu <[email protected]>
This sample enables and configures the MCO1/2 output for stm32 target boards. MCO_PRE_DIV_n is defined by the stm32XX_clock.h Signed-off-by: Francois Ramu <[email protected]>
STM32 configuration for the MCO clock source and prescaler is done by the DTS and no more by Kconfig (removed). Signed-off-by: Francois Ramu <[email protected]>
8ed5a95 to
ee52327
Compare
|
@nordic-krch PTAL |
|
All changes are in ST specific file, reassigning. |
shrugs |
change the configuration of the MCO 1 or 2 output for the stm32 series
Kconfig is no more used, set the configuration by the DTS as speciied by the dts/bindings/clock/st,stm32-clock-mco.yaml
See the refman of the stm32 to put the correct clock source and the prescaler value
Fixes #80885