-
Notifications
You must be signed in to change notification settings - Fork 8.2k
b_u585i_iot02a: Enable I2C, HTS221 sensor and stop modes #39038
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
Merged
Merged
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
ABOSTM
approved these changes
Oct 1, 2021
Contributor
ABOSTM
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.
LGTM
7554f65 to
b38c3d3
Compare
FRASTM
reviewed
Oct 4, 2021
b38c3d3 to
7a20246
Compare
MaureenHelm
requested changes
Oct 5, 2021
7a20246 to
e44048a
Compare
tejlmand
approved these changes
Oct 6, 2021
MaureenHelm
approved these changes
Oct 6, 2021
Member
|
Needs rebase |
Add i2c nodes for stm32u5 socs. Signed-off-by: Erwan Gouriou <[email protected]>
Enable i2c1 and i2c2 nodes on b_u585i_iot02a. i2c1 is used as Arduino I2C i2c2 is used as bus for HTS221 MEMS device. Signed-off-by: Erwan Gouriou <[email protected]>
Adapt lptim driver implementation to support stm32u5 series. Signed-off-by: Erwan Gouriou <[email protected]>
Provide lptim1 node for u5 series. Signed-off-by: Erwan Gouriou <[email protected]>
When existing stop mode 1&2, VCO is set to range 4 and should be set back to range 1 to allow full speed operations. Rather than setting VCO at startup, set it inside clock setting procedure so that it could done in clock reset procedure when existing stop modes. Signed-off-by: Erwan Gouriou <[email protected]>
Provide power modes implementation for u5 socs. For now STOP3 mode is not implemented as this mode is not compatible with LPTIM activation and hence cannot be used as a workable suspend to idle state using LPTIM as kernel tick source. Signed-off-by: Erwan Gouriou <[email protected]>
Provide configuration for "suspend to idle" states for b_u585i_iot02a target. Signed-off-by: Erwan Gouriou <[email protected]>
e44048a to
8c1c42d
Compare
Contributor
|
@erwango What would you think about sharing these nice set_mode_* power helpers between STM32 series somehow? |
Member
Member
Author
|
@ycsin this cannot be backported as these are not bug fixes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
This PR enables I2C, HTS221 sensor and stop modes on b_u585i_iot02a
To support low power use cases: