Skip to content

Conversation

@erwango
Copy link
Member

@erwango erwango commented Oct 1, 2021

This PR enables I2C, HTS221 sensor and stop modes on b_u585i_iot02a

To support low power use cases:

  • STM32 LPTIM driver is updated for U5 support
  • A dedicated U5 power.c file is provided

Copy link
Contributor

@ABOSTM ABOSTM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@erwango erwango force-pushed the dev_disco_u5_bonus branch from 7554f65 to b38c3d3 Compare October 1, 2021 15:31
@erwango erwango force-pushed the dev_disco_u5_bonus branch from b38c3d3 to 7a20246 Compare October 4, 2021 11:27
@erwango erwango force-pushed the dev_disco_u5_bonus branch from 7a20246 to e44048a Compare October 6, 2021 06:17
@erwango erwango requested a review from MaureenHelm October 6, 2021 09:44
@MaureenHelm
Copy link
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]>
@erwango erwango force-pushed the dev_disco_u5_bonus branch from e44048a to 8c1c42d Compare October 7, 2021 06:45
@cfriedt cfriedt merged commit de76ab1 into zephyrproject-rtos:main Oct 7, 2021
@tagunil
Copy link
Contributor

tagunil commented Oct 7, 2021

@erwango What would you think about sharing these nice set_mode_* power helpers between STM32 series somehow?

@ycsin
Copy link
Member

ycsin commented Feb 17, 2022

@cfriedt @erwango I think new hardware support should be backported?

@erwango
Copy link
Member Author

erwango commented Feb 21, 2022

@ycsin this cannot be backported as these are not bug fixes

@erwango erwango deleted the dev_disco_u5_bonus branch January 19, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants