-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: clock_control: clock_stm32_ll_h7: Make LSE driving configurable #44736
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
drivers: clock_control: clock_stm32_ll_h7: Make LSE driving configurable #44736
Conversation
|
Tested on a H735.
|
0d164ee to
8a6a5c0
Compare
|
@benediktibk thanks for adding this property. |
|
My results from checking the reference manuals from the already available SoCs in zephyr: has the feature:
does not have the feature:
Hence, I would continue to add the following bindings, similar to the one of the H7 series:
Does this sound reasonable to you @FRASTM ? |
|
While implementing this I realized that for some SoCs the LSE is not really implemented, at least I couldn't find a call to LL_RCC_LSE_Enable:
I still went ahead and at least added the properties for them. And there is one more additional problem, stm32_counter kinda is in conflict with the LSE configuration with the clock control. Seems problematic, but for the moment I kept it as it is. |
|
The LPTIM timer as well enables LSE. I feel like only the clock control should enable LSE? |
6615cd4 to
fb28411
Compare
Yes, this might change with the coming PR #44312 |
|
@benediktibk thanks for listing all the stm32 and giving that exhaustive view. |
mbolivar-nordic
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.
No hard objections on the binding; one suggestion.
c6575ea to
21869a3
Compare
This is right. On going proposal for this is #42097. |
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.
One main request.
Also, you'll need to rebase on top of #44312 which will have some impact on your change.
5872d39 to
7539856
Compare
3b3b7c9 to
68d9320
Compare
Make the LSE driving capability configurable for the STM32 series. Fixes zephyrproject-rtos#44737. Signed-off-by: Benedikt Schmidt <[email protected]>
68d9320 to
66e112d
Compare
|
@erwango Anything still missing? |
Make the LSE driving capability of a STM32H7 configurable via devicetree.
Fixes #44737.
Signed-off-by: Benedikt Schmidt [email protected]