-
Notifications
You must be signed in to change notification settings - Fork 3
soc: mspm0: add power management support #214
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
base: main
Are you sure you want to change the base?
Conversation
SanjayyyV
commented
Aug 12, 2025
- Added power states for MSPM0
- Added timing details for G and L series.
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.
separate commit for poweroff
7aa1d89 to
8243a2a
Compare
soc/ti/mspm0/CMakeLists.txt
Outdated
| endif() | ||
|
|
||
| zephyr_sources_ifdef(CONFIG_PM common/power.c) | ||
| zephyr_sources_ifdef(CONFIG_POWEROFF common/poweroff.c) |
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.
this needs to be moved to poweroff commit
| select BUILD_OUTPUT_HEX | ||
| select HAS_MSPM0_SDK | ||
| select HAS_PM | ||
| select HAS_POWEROFF |
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.
this as well to poweroff commit
| int ret; | ||
| uint32_t rst_cause; | ||
|
|
||
| ret = hwinfo_get_reset_cause(&rst_cause); |
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.
depends on HWINFO driver
soc/ti/mspm0/common/power.c
Outdated
| case PM_STATE_STANDBY: | ||
| set_mode_standby(substate_id); | ||
| break; | ||
| case PM_STATE_SOFT_OFF: |
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.
wrong placeholder. remove this
| select BUILD_OUTPUT_HEX | ||
| select HAS_MSPM0_SDK | ||
| select HAS_PM | ||
| select HAS_POWEROFF |
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.
ditto
|
@SanjayyyV improve the commit message with details |
|
@SanjayyyV #155 consider this PR as well for upstream? |
8243a2a to
e953568
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.
Run compliance and checkpatch stuff if not done. Otherwise LGTM.
Cross check if we need any of this for PM. I remember this was mainly for PM in one way or another. |
e953568 to
92d09d5
Compare
|
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Update hal_ti to include input-enable property for all UART RX pins. Without the input-enable property, UART reception does not function correctly when the SoC enters low-power mode. Adding this property ensures reliable UART operation in all power states. Signed-off-by: Sanjay Vallimanalan <[email protected]>
TI MSPM0 series supports range of power modes (RUN/SLEEP, STOP, STANDBY) supporting low power operations. Provides automatic restoration to RUN mode on wakeup from any low power state. Signed-off-by: Sanjay Vallimanalan <[email protected]> Signed-off-by: Parthiban Nallathambi <[email protected]>
add support for SHUTDOWN operating mode in TI MSPM0 series for power-off operation. Uses HWINFO for reset cause detection to handle shutdown IO release on low power wakeup. Signed-off-by: Sanjay Vallimanalan <[email protected]> Signed-off-by: Parthiban Nallathambi <[email protected]>
The fast wake feature in the MSPM0 GPIO peripheral allows the GPIO module to stay in a low-power state and detect interrupt events on the device pins without requiring a high-speed clock. This allows the device to support fast wakeup from low-power modes, such as STOP and STANDBY, on any GPIO pin. Signed-off-by: Sanjay Vallimanalan <[email protected]> Signed-off-by: Parthiban Nallathambi <[email protected]>
add range of cpu power states (run/sleep, stop and standby) for MSPM0 series. add exit latencies ranging from 1.5-15.7µs and minimum residency times of 5-10ms for optimal power management transitions. Signed-off-by: Sanjay Vallimanalan <[email protected]> Signed-off-by: Parthiban Nallathambi <[email protected]>
66ad842 to
aaa58b1
Compare