diff --git a/doc/releases/release-notes-4.3.rst b/doc/releases/release-notes-4.3.rst index d896b4c06c396..3f82153a98223 100644 --- a/doc/releases/release-notes-4.3.rst +++ b/doc/releases/release-notes-4.3.rst @@ -220,6 +220,7 @@ New APIs and options * The :kconfig:option:`PM_S2RAM_CUSTOM_MARKING` has been renamed to :kconfig:option:`HAS_PM_S2RAM_CUSTOM_MARKING` and refactored to be promptless. This option is now selected by SoCs if they need it for their "suspend-to-ram" implementations. + * Added devicetree property ``wakeup-signal`` * Settings diff --git a/drivers/timer/mcux_lptmr_timer.c b/drivers/timer/mcux_lptmr_timer.c index f83e4c39e26a7..8ef47e08c241c 100644 --- a/drivers/timer/mcux_lptmr_timer.c +++ b/drivers/timer/mcux_lptmr_timer.c @@ -122,6 +122,10 @@ static int sys_clock_driver_init(void) LPTMR_SetTimerPeriod(LPTMR_BASE, CYCLES_PER_TICK); LPTMR_StartTimer(LPTMR_BASE); +#if (DT_INST_PROP(0, wakeup_source)) + /* Use wakeup-signal property if specified, else use the irq number */ + NXP_ENABLE_WAKEUP_SIGNAL(DT_INST_PROP_OR(0, wakeup_signal, DT_INST_IRQN(0))); +#endif return 0; } diff --git a/dts/arm/nxp/nxp_mcxw7x_common.dtsi b/dts/arm/nxp/nxp_mcxw7x_common.dtsi index ff52ac2c2da2c..643f242cbc69c 100644 --- a/dts/arm/nxp/nxp_mcxw7x_common.dtsi +++ b/dts/arm/nxp/nxp_mcxw7x_common.dtsi @@ -301,6 +301,8 @@ prescaler = <1>; resolution = <32>; status = "disabled"; + wakeup-source; + wakeup-signal = <0>; }; lptmr1: timer@2e000 { diff --git a/dts/bindings/base/pm.yaml b/dts/bindings/base/pm.yaml index 6c0ffb1f637b4..b42d1115f4f8a 100644 --- a/dts/bindings/base/pm.yaml +++ b/dts/bindings/base/pm.yaml @@ -16,6 +16,16 @@ properties: Wake up capable devices are disabled (interruptions will not wake up the system) by default but they can be enabled at runtime if necessary. + wakeup-signal: + type: int + description: | + Property to specify the wakeup signal number. + + There are some SoC's where the wakeup signal can be a different signal + and not necessarily the interrupt number. + + This property goes together with "wakeup-source" property. + zephyr,pm-device-runtime-auto: type: boolean description: |