zephyr/dts/bindings/base/pm.yaml
Jordan Yates db3d51bb7d pm: device_runtime: add zephyr,pm-device-runtime-auto
Add the `zephyr,pm-device-runtime-auto` flag to `pm.yaml` and
`struct pm_device`.

This flag is intended to signify to the boot system that device runtime
PM should be automatically enabled on the device after the init function
has run.

Only run `pm_device_runtime_auto_enable` function on a device if
initialisation succeeded. This prevents actions being run on devices
that are not ready.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2023-03-29 12:21:13 -04:00

33 lines
955 B
YAML

# Copyright (c) 2021 Intel Corporation.
# SPDX-License-Identifier: Apache-2.0
# Properties for Power Management (PM)
properties:
wakeup-source:
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:
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.
zephyr,pm-device-runtime-auto:
type: boolean
description: |
Automatically configure the device for runtime power management after the
init function runs.