Skip to content

Conversation

@SanjayyyV
Copy link
Collaborator

  • Added power states for MSPM0
  • Added timing details for G and L series.

Copy link
Member

Choose a reason for hiding this comment

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

separate commit for poweroff

@SanjayyyV SanjayyyV force-pushed the upstream/ti/mspm0-soc-pm branch from 7aa1d89 to 8243a2a Compare August 12, 2025 07:29
endif()

zephyr_sources_ifdef(CONFIG_PM common/power.c)
zephyr_sources_ifdef(CONFIG_POWEROFF common/poweroff.c)
Copy link
Member

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
Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

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

depends on HWINFO driver

case PM_STATE_STANDBY:
set_mode_standby(substate_id);
break;
case PM_STATE_SOFT_OFF:
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

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

ditto

@parthitce
Copy link
Member

@SanjayyyV improve the commit message with details

@parthitce
Copy link
Member

@SanjayyyV #155 consider this PR as well for upstream?

Copy link
Member

@parthitce parthitce left a 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.

@parthitce
Copy link
Member

commit a2f4f2299cd6115a18f3cdf26abd22525115b5c2
Author: Parthiban Nallathambi <[email protected]>
Date:   Tue May 6 17:19:18 2025 +0530

    drivers: gpio: disable wakeup using GPIO_DISCONNECTED
    
    use GPIO_DISCONNECTED to setup disabling wakeup feature for shutdown
    mode. This also clears output and input as per the state changes of
    GPIO API.
    
    Signed-off-by: Parthiban Nallathambi <[email protected]>

commit 2eacec4495b93cd402bea6ac30a3dd64846d5d88
Author: Parthiban Nallathambi <[email protected]>
Date:   Mon May 5 10:57:34 2025 +0530

    drivers: gpio: HIGH is always 0, inversion the decision
    
    Checking against ACTIVE_HIGH is not possible as it's bit is always
    0. Check again ACTIVE_LOW and else leave it to expect ACTIVE_HIGH.
    
    Signed-off-by: Parthiban Nallathambi <[email protected]>

commit f0692fc5f66625f979212f385fef328ea3253e7b
Author: Parthiban Nallathambi <[email protected]>
Date:   Fri May 2 19:13:20 2025 +0530

    gpio: represent logic high when BIT(0) not set
    
    ACTIVE_HIGH and ACTIVE_LOW are represented in same bit i.e
    with BIT(0) set as LOW and not-set as HIGH. Deciding the wakeup
    level based on this without checking 0 for HIGH will leave
    the pin without wakeup enable. Handle with a !.
    
    Signed-off-by: Parthiban Nallathambi <[email protected]>

commit 2ba03015f41dde0762da117cce35630b4fa0a702
Author: Parthiban Nallathambi <[email protected]>
Date:   Tue Apr 29 21:07:08 2025 +0530

    drivers: gpio: add fast wake support
    
    when fast wake support is enabled, GPIO high/low level triggers
    async fast clock request if the device is in STANDBY1 low power
    state and handle the interrupt.
    
    Enable the support by handling independent pin for fast wake.
    
    Signed-off-by: Parthiban Nallathambi <[email protected]>

Cross check if we need any of this for PM. I remember this was mainly for PM in one way or another.

@SanjayyyV SanjayyyV force-pushed the upstream/ti/mspm0-soc-pm branch from e953568 to 92d09d5 Compare August 27, 2025 07:46
@github-actions
Copy link

github-actions bot commented Sep 1, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_ti zephyrproject-rtos/hal_ti@391f7cb zephyrproject-rtos/hal_ti@d062844 (master) zephyrproject-rtos/[email protected]

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]>
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.

2 participants