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
stm32h7: Transition clock configuration from Kconfig to device tree #34701
stm32h7: Transition clock configuration from Kconfig to device tree #34701
Conversation
About H7 and clock device tree there any link with the #34691, I mean is it one still valid after "stm32h7: Transition clock configuration from Kconfig to device tree" ? |
The one that gets merged first will need to take the other one into account. |
compatible = "st,stm32-hse-clock"; | ||
/* H7 clock driver may not always need this value */ | ||
/* but it is required by the binding */ | ||
clock-frequency = <DT_FREQ_M(25)>; |
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.
why setting 25MHz then ? Even if not used here, most of the stm32h7 have `clock-frequency = <DT_FREQ_M(8)>;``
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.
25MHz is value of HSE_VALUE provided by Cube HAL
7b84f08
to
dd2738d
Compare
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.
LGTM
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.
Commit message typo :
board: nucleo_h723zg: Convert to dts based clock configuration
dd2738d
to
6c338c3
Compare
Fixed, txs |
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.
LGTM
6c338c3
to
40b43dd
Compare
Add clocks related stm32h7 specific bindings: - stm32h7-hsi-clock - stm32h7-pll-clock - stm32h7-rcc Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Add clock nodes for stm32h7 devices. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Add required macros to introduce dts based clock_control driver configuration on stm32h7 devices. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Update stm32h7 clock_control driver to make use of macros allowing dts based configuration in coexistance with existing Kconfig method. Note: Use of IS_ENABLED is removed as it generates warnings in checkpatch. This checkpatch behavior needs to be reviewed but may first require a little clean up of IS_ENABLED macro. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Configure board clocks using device tree. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Configure board clocks using device tree. Bus clocks configuration part is kept common to both cores. On core dedicated configuration we find: - Specific sysclock freq on both cores - Sysclk input clock selection on M7 core only (as per existing clock_control driver behavior). Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
40b43dd
to
3da4829
Compare
Following introduction of dts based driver configuration (cf zephyrproject-rtos#34120, zephyrproject-rtos#32609 and zephyrproject-rtos#34701), deprecate Kconfig symbols by generating a warning when one of these symbols is used. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
Similarly to #34120, convert stm32h7 clock_control driver to the use of device tree for clocks configuration
EDIT:
Includes #34704 to avoid CI related issues