Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemas: wakeup-source: Possibility for power states #150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scosu
Copy link

@scosu scosu commented Jan 3, 2025

wakeup-source in its current form ignores power states. But with modern SoCs there are many powerstates that have a different set of devices enabled. Also there are more complex wakeup mechanisms available.

As an example TI's am62 SoC has a power state called 'Partial-IO' in which most of the SoC is powered off and only a small device logic is present for a few select devices that can still wakeup the SoC. But most devices that are usually able to wakeup the SoC are not capable to do it in Partial-IO.

In order to properly describe the wakeup-source property depending on the power state, this patch extends the definition to be either boolean or a list of power state names in which this device is capable of wakeup.

This is the Linux Kernel series that adds support for Partial-IO:
https://lore.kernel.org/all/20241219-topic-am62-partialio-v6-12-b4-v4-0-1cb8eabd407e@baylibre.com/

This is was my previous patch adding this binding before realizing the wakeup-source property is defined in this schema repository:
https://lore.kernel.org/all/20241219-topic-mcan-wakeup-source-v6-12-v6-1-1356c7f7cfda@baylibre.com/

wakeup-source in its current form ignores power states. But with modern
SoCs there are many powerstates that have a different set of devices
enabled. Also there are more complex wakeup mechanisms available.

As an example TI's am62 SoC has a power state called 'Partial-IO' in
which most of the SoC is powered off and only a small device logic is
present for a few select devices that can still wakeup the SoC. But most
devices that are usually able to wakeup the SoC are not capable to do it
in Partial-IO.

In order to properly describe the wakeup-source property depending on
the power state, this patch extends the definition to be either boolean
or a list of power state names in which this device is capable of
wakeup.

Signed-off-by: Markus Schneider-Pargmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant