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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions dtschema/schemas/wakeup-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ title: Wakeup sources

description: >
Nodes that describe devices which have wakeup capability may contain a
"wakeup-source" boolean property.
"wakeup-source" property. This property can be either boolean or a string
array containing the names of the power states in which this device has a
wakeup capability.

If the device is marked as a wakeup-source, interrupt wake capability depends
on the device specific "interrupt-names" property. If no interrupts are labeled
Expand All @@ -30,7 +32,9 @@ select: true

properties:
wakeup-source:
type: boolean
oneOf:
- type: boolean
- $ref: /schemas/types.yaml#/definitions/string-array

additionalProperties: true

Expand Down Expand Up @@ -69,4 +73,14 @@ examples:
gpios = <&iofpga_gpio0 0 0x4>;
};
};
- |
# With power states specified
mcu_mcan0: can@4e08000 {
compatible = "bosch,m_can";
reg = <0x00 0x4e08000 0x00 0x200>,
<0x00 0x4e00000 0x00 0x8000>;
reg-names = "m_can", "message_ram";
wakeup-source = "suspend", "poweroff";
status = "disabled";
};
...
Loading