Skip to content

Conversation

asmellby
Copy link
Contributor

EM4 wakeup interrupts are dedicated interrupts tied to specific pins that enable wakeup from EM4 through reset. Add support for using these interrupts instead of the regular interrupts when the GPIO_INT_TRIG_WAKE flag is set.

Since it's not possible to tell what pin is associated with what EM4WU interrupt at runtime, the driver must store a mapping table sourced from device tree. Add this mapping to the device tree.

Also add EM4 as a soft-off power state that is disabled by default. Marking it as disabled allows users to enter it with pm_state_force(), while preventing the power management subsystem from selecting the state automatically.

Add EM4 wakeup capable pin mapping to GPIO port node. Pins
capable of EM4 wakeup have dedicated interrupt flags.

Add EM4 as a soft-off power state that is disabled by default.
Marking it as disabled allows users to enter it with
`pm_state_force()`, while preventing the power management
subsystem from selecting the state automatically.

Signed-off-by: Aksel Skauge Mellbye <[email protected]>
jhedberg
jhedberg previously approved these changes Aug 28, 2025
EM4 wakeup interrupts are dedicated interrupts tied to specific
pins that enable wakeup from EM4 through reset. Add support
for using these interrupts instead of the regular interrupts when
the GPIO_INT_TRIG_WAKE flag is set.

Since it's not possible to tell what pin is associated with what
EM4WU interrupt at runtime, the driver must store a mapping table
sourced from device tree.

Signed-off-by: Aksel Skauge Mellbye <[email protected]>
@asmellby asmellby dismissed stale reviews from jhedberg and jerome-pouiller via c510cce August 28, 2025 10:01
@asmellby asmellby force-pushed the feature/series2-gpio-em4 branch from 7de7a87 to c510cce Compare August 28, 2025 10:01
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants