# SPDX-License-Identifier: BSD-2-Clause # Copyright 2015,2024 Arm Ltd. %YAML 1.2 --- $id: http://devicetree.org/schemas/wakeup-source.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: Wakeup sources description: > Nodes that describe devices which have wakeup capability may contain a "wakeup-source" property. This property can be either boolean or a phandle array containing references to system idle 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 as wake capable, then it is up to the device to determine which interrupts can wake the system. However if a device has a dedicated interrupt as the wakeup source, then it needs to specify/identify it using a device specific interrupt name. In such cases only that interrupt can be used as a wakeup interrupt. While various legacy interrupt names exist, new devices should use "wakeup" as the canonical interrupt name. maintainers: - Rob Herring select: true properties: wakeup-source: oneOf: - type: boolean - $ref: /schemas/types.yaml#/definitions/phandle-array items: maxItems: 1 description: List of phandles to system idle state nodes. The device can be a wakeup source in the given system states. additionalProperties: true examples: - | # With "wakeup" interrupt name device@10000 { compatible = "vendor,device-id"; reg = <0x10000 0x1000>; interrupts = <0 19 4>, <0 21 4>, <0 22 4>; interrupt-names = "ack", "err", "wakeup"; wakeup-source; }; - | # Without "wakeup" interrupt name embedded-controller@1e { compatible = "google,cros-ec-i2c"; reg = <0x1e>; interrupts = <6 0>; wakeup-source; }; - | # Without interrupts keys { compatible = "gpio-keys"; #address-cells = <1>; #size-cells = <0>; button { debounce-interval = <50>; wakeup-source; linux,code = <116>; label = "POWER"; 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 = <&system_partial_io>, <&system_deep_sleep>; }; ...