Add support for power domains on Zephyr. Power domains are implemented as simple devices so they can use the existent Zephyr API, for resume and suspend sync and async and also reference count. The pm subsystem will ensure that domains are resumed before and suspended after devices using them. For device runtime power management, every time the device is got or released the same actions is done to the domain it belongs. As domains are implemented as simple devices, it is totally acceptable a domain belongs to another domain. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
29 lines
852 B
YAML
29 lines
852 B
YAML
# Copyright (c) 2021 Intel Corporation.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Properties for Power Management (PM)
|
|
|
|
properties:
|
|
wakeup-source:
|
|
required: false
|
|
type: boolean
|
|
description: |
|
|
Property to identify that a device can be used as wake up source.
|
|
|
|
When this property is provided a specific flag is set into the
|
|
device that tells the system that the device is capable of
|
|
wake up the system.
|
|
|
|
Wake up capable devices are disabled (interruptions will not wake up
|
|
the system) by default but they can be enabled at runtime if necessary.
|
|
|
|
power-domain:
|
|
required: false
|
|
type: phandle
|
|
description: |
|
|
|
|
Power domain the device belongs to.
|
|
|
|
The device will be notified when the power domain it belongs to is either
|
|
suspended or resumed.
|