pm: rt5xx: Enable OS Timer as wakeup source
1. Enable os_timer as a wakeup-source in the board dts file. 2. Enable PM_DEVICE when PM is enabled. Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
This commit is contained in:
parent
7b5c508d4f
commit
df26e99637
8 changed files with 12 additions and 48 deletions
|
@ -69,4 +69,12 @@ endchoice
|
||||||
|
|
||||||
endif # LVGL
|
endif # LVGL
|
||||||
|
|
||||||
|
if PM
|
||||||
|
# Turn on Device Level Power Management as we wish
|
||||||
|
# to reconfigure the FlexSPI pins for power savings
|
||||||
|
# when transitioning the SoC to Deep Low Power modes.
|
||||||
|
config PM_DEVICE
|
||||||
|
default y
|
||||||
|
endif # PM
|
||||||
|
|
||||||
endif # BOARD_MIMXRT595_EVK
|
endif # BOARD_MIMXRT595_EVK
|
||||||
|
|
|
@ -149,6 +149,7 @@
|
||||||
*/
|
*/
|
||||||
&os_timer {
|
&os_timer {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
wakeup-source;
|
||||||
};
|
};
|
||||||
|
|
||||||
&rtc {
|
&rtc {
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
#
|
#
|
||||||
# Copyright 2022, NXP
|
# Copyright 2022-2023, NXP
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
CONFIG_PM=y
|
CONFIG_PM=y
|
||||||
|
|
||||||
# Turn on Device Level Power Management as we wish
|
|
||||||
# to reconfigure the FlexSPI pins for power savings
|
|
||||||
# when transitioning the SoC to Deep Low Power modes.
|
|
||||||
CONFIG_PM_DEVICE=y
|
|
||||||
|
|
||||||
# Enable the RTC
|
# Enable the RTC
|
||||||
CONFIG_COUNTER=y
|
CONFIG_COUNTER=y
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# i.MX RT5XX series configuration options
|
# i.MX RT5XX series configuration options
|
||||||
|
|
||||||
# Copyright (c) 2022, NXP
|
# Copyright (c) 2022-2023, NXP
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
if SOC_SERIES_IMX_RT5XX
|
if SOC_SERIES_IMX_RT5XX
|
||||||
|
@ -77,4 +77,4 @@ endif # MBEDTLS
|
||||||
|
|
||||||
source "soc/arm/nxp_imx/rt5xx/Kconfig.defconfig.mimxrt5*"
|
source "soc/arm/nxp_imx/rt5xx/Kconfig.defconfig.mimxrt5*"
|
||||||
|
|
||||||
endif # SOC_SERIES_MIMXRT6XX
|
endif # SOC_SERIES_MIMXRT5XX
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#
|
|
||||||
# Copyright 2022, NXP
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
# Turn on Device Level Power Management as we wish
|
|
||||||
# to reconfigure the FlexSPI pins for power savings
|
|
||||||
# when transitioning the SoC to Deep Low Power modes.
|
|
||||||
CONFIG_PM_DEVICE=y
|
|
|
@ -1,10 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright 2022, NXP
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&os_timer {
|
|
||||||
status = "okay";
|
|
||||||
wakeup-source;
|
|
||||||
};
|
|
|
@ -1,10 +0,0 @@
|
||||||
#
|
|
||||||
# Copyright 2022, NXP
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
# Turn on Device Level Power Management as we wish
|
|
||||||
# to reconfigure the FlexSPI pins for power savings
|
|
||||||
# when transitioning the SoC to Deep Low Power modes.
|
|
||||||
CONFIG_PM_DEVICE=y
|
|
|
@ -1,10 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright 2022, NXP
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
&os_timer {
|
|
||||||
status = "okay";
|
|
||||||
wakeup-source;
|
|
||||||
};
|
|
Loading…
Add table
Add a link
Reference in a new issue