Skip to content

Commit df26e99

Browse files
mmahadevan108carlescufi
authored andcommitted
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 <[email protected]>
1 parent 7b5c508 commit df26e99

File tree

8 files changed

+12
-48
lines changed

8 files changed

+12
-48
lines changed

boards/arm/mimxrt595_evk/Kconfig.defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,12 @@ endchoice
6969

7070
endif # LVGL
7171

72+
if PM
73+
# Turn on Device Level Power Management as we wish
74+
# to reconfigure the FlexSPI pins for power savings
75+
# when transitioning the SoC to Deep Low Power modes.
76+
config PM_DEVICE
77+
default y
78+
endif # PM
79+
7280
endif # BOARD_MIMXRT595_EVK

boards/arm/mimxrt595_evk/mimxrt595_evk_cm33.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
*/
150150
&os_timer {
151151
status = "okay";
152+
wakeup-source;
152153
};
153154

154155
&rtc {
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
#
2-
# Copyright 2022, NXP
2+
# Copyright 2022-2023, NXP
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
66
CONFIG_PM=y
77

8-
# Turn on Device Level Power Management as we wish
9-
# to reconfigure the FlexSPI pins for power savings
10-
# when transitioning the SoC to Deep Low Power modes.
11-
CONFIG_PM_DEVICE=y
12-
138
# Enable the RTC
149
CONFIG_COUNTER=y

soc/arm/nxp_imx/rt5xx/Kconfig.defconfig.series

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# i.MX RT5XX series configuration options
22

3-
# Copyright (c) 2022, NXP
3+
# Copyright (c) 2022-2023, NXP
44
# SPDX-License-Identifier: Apache-2.0
55

66
if SOC_SERIES_IMX_RT5XX
@@ -77,4 +77,4 @@ endif # MBEDTLS
7777

7878
source "soc/arm/nxp_imx/rt5xx/Kconfig.defconfig.mimxrt5*"
7979

80-
endif # SOC_SERIES_MIMXRT6XX
80+
endif # SOC_SERIES_MIMXRT5XX

tests/kernel/tickless/tickless_concept/boards/mimxrt595_evk_cm33.conf

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/kernel/tickless/tickless_concept/boards/mimxrt595_evk_cm33.overlay

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/subsys/pm/power_mgmt_soc/boards/mimxrt595_evk_cm33.conf

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/subsys/pm/power_mgmt_soc/boards/mimxrt595_evk_cm33.overlay

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)