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:
Mahesh Mahadevan 2023-05-12 14:55:16 -05:00 committed by Carles Cufí
parent 7b5c508d4f
commit df26e99637
8 changed files with 12 additions and 48 deletions

View file

@ -69,4 +69,12 @@ endchoice
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

View file

@ -149,6 +149,7 @@
*/
&os_timer {
status = "okay";
wakeup-source;
};
&rtc {

View file

@ -1,14 +1,9 @@
#
# Copyright 2022, NXP
# Copyright 2022-2023, NXP
#
# SPDX-License-Identifier: Apache-2.0
#
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
CONFIG_COUNTER=y

View file

@ -1,6 +1,6 @@
# i.MX RT5XX series configuration options
# Copyright (c) 2022, NXP
# Copyright (c) 2022-2023, NXP
# SPDX-License-Identifier: Apache-2.0
if SOC_SERIES_IMX_RT5XX
@ -77,4 +77,4 @@ endif # MBEDTLS
source "soc/arm/nxp_imx/rt5xx/Kconfig.defconfig.mimxrt5*"
endif # SOC_SERIES_MIMXRT6XX
endif # SOC_SERIES_MIMXRT5XX

View file

@ -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

View file

@ -1,10 +0,0 @@
/*
* Copyright 2022, NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
&os_timer {
status = "okay";
wakeup-source;
};

View file

@ -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

View file

@ -1,10 +0,0 @@
/*
* Copyright 2022, NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
&os_timer {
status = "okay";
wakeup-source;
};