-
Notifications
You must be signed in to change notification settings - Fork 8.2k
stm32: configure power supply through Device Tree #99171
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
Open
mathieuchopstm
wants to merge
10
commits into
zephyrproject-rtos:main
Choose a base branch
from
mathieuchopstm:stm32_pwr_via_dt
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
stm32: configure power supply through Device Tree #99171
mathieuchopstm
wants to merge
10
commits into
zephyrproject-rtos:main
from
mathieuchopstm:stm32_pwr_via_dt
+360
−176
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Introduce a new binding for the power controller of STM32H7 series. Signed-off-by: Mathieu Choplain <[email protected]>
Add node representing the Power Controller to SoC DTSI of STM32H7 series, and update DTS of all STM32H7-based boards since the new node has required properties. Signed-off-by: Mathieu Choplain <[email protected]>
Replace the existing infrastructure to specify power supply configuration through Kconfig with Devicetree. Also update all boards that were defining the Kconfig to no longer do so. Signed-off-by: Mathieu Choplain <[email protected]>
Introduce a new binding for the Power Controller of the STM32H7R/S series. Signed-off-by: Mathieu Choplain <[email protected]>
Add node representing the Power Controller to SoC DTSI of STM32H7RS series, and update DTS of all STM32H7RS-based boards since the new node has required properties. Signed-off-by: Mathieu Choplain <[email protected]>
Replace the existing infrastructure to specify power supply configuration through Kconfig with Devicetree. Also update all boards that were defining the Kconfig to no longer do so. Signed-off-by: Mathieu Choplain <[email protected]>
Introduce power controller binding for series equipped with two voltage regulators (LDO + SMPS). Signed-off-by: Mathieu Choplain <[email protected]>
Replace the existing infrastructure to specify power supply configuration through Kconfig with Devicetree. Set the LDO as default to reduce out-of-tree breakage - most users were relying on LDO being the default and it is harmless to use LDO if board is designed for SMPS. (Existing SMPS users should break anyways since the Kconfig symbol no longer exists, but this ensures they actively set the power supply to SMPS in DT) Signed-off-by: Mathieu Choplain <[email protected]>
Replace the existing infrastructure to specify power supply configuration through Kconfig with Devicetree, and update all boards according to new mechanism. Signed-off-by: Mathieu Choplain <[email protected]>
Signed-off-by: Mathieu Choplain <[email protected]>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Boards/SoCs
area: Devicetree Bindings
area: Power Management
platform: STM32
ST Micro STM32
Release Notes
To be mentioned in the release notes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Replace the existing Kconfig-based mechanism to select the power supply with a Devicetree-based approach, inspired by the STM32WB0 implementation.
Commits could be reorganized: currently, they're split by series, but also squash SoC DTSI and board DTS changes together - I could mark properties as not required initially then perform updates separately, and make required in a last-pass commit if that sounds cleaner.