-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Add mcxw23 power management support #98986
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?
Add mcxw23 power management support #98986
Conversation
zejiang0jason
commented
Nov 6, 2025
4d0b6b2 to
0bd9b0f
Compare
f8f5741 to
465082f
Compare
This comment was marked as resolved.
This comment was marked as resolved.
465082f to
7920277
Compare
This comment was marked as resolved.
This comment was marked as resolved.
| *** Booting Zephyr OS build v4.2.0-2105-g48f2ffda26de *** | ||
| Hello World! frdm_mcxw23/mcxw236 | ||
| Power Management |
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.
I'm not ok with this, since it will require adding the overlay on each app that will run with PM. I expect to have everything I need once I enable CONFIG_PM.
To avoid this lets set the os_timer status to okay by default in the nxp_mcxw23x_common.dtsi file, and change the MCUX_OS_TIMER redefinition in Kconfig.defconfig to:
config MCUX_OS_TIMER
- default y if PM
+ default n if !PM
This will allow to run on the CORTEX_M_SYSTICK when PM is not defined and switch to OS_TIMER when PM is enabled.
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.
updated.
Add to support reset OS_TIMER in driver Signed-off-by: Jason Yu <[email protected]>
Use reset API to reset OSTIMER for better portability. Signed-off-by: Jason Yu <[email protected]>
Only access deep_sleep_counter when it is available. Signed-off-by: Jason Yu <[email protected]>
Call pm_policy_device_power_lock_put/pm_policy_device_power_lock_get to coordinate with system level power modes. Signed-off-by: Jason Yu <[email protected]>
Add for the case that the registers are not kept in some low power modes. Signed-off-by: Jason Yu <[email protected]>
Call pm_policy_device_power_lock_put/pm_policy_device_power_lock_get to coordinate with system level power modes. Signed-off-by: Jason Yu <[email protected]>
PINT connects GPIO pin to seperate IRQ slot. Add new API to get which IRQ slot is connected to, based on pin index. Signed-off-by: Jason Yu <[email protected]>
When os_timer is enabled in dts, then os_timer will be used as OS tick timer. To make systick as the default OS tick timer, currently os_timer is not enabled in dts. When users want to use os_timer as OS tick timer, they need to override the dts. Improve the method, enable the os_timer is dts, but not enable in Kconfig by default. If need to use os_timer as OS tick, just pass CONFIG_MCUX_OS_TIMER=y Signed-off-by: Jason Yu <[email protected]>
Enabled modes: idle: SLEEP suspend: DEEP-SLEEP standby: POWER-DOWN with CPU retention OS Time Base: OSTIMER with 32K clock source Signed-off-by: Jason Yu <[email protected]>
Add poweroff MCXW2xx SoCs, support btn_wk pin wakeup. Signed-off-by: Jason Yu <[email protected]>
Add mcxw23_evk and frdm_mcxw23 platforms to the power management test suite to validate power management functionality on MCXW23 hardware. Signed-off-by: Jason Yu <[email protected]>
7920277 to
2e2eba2
Compare
|


