zephyr/tests/subsys/pm/policy_api/app.overlay
Carlo Caione 69b28bfd07 pm: policy: Consider substates for state lock functions
Extend the current pm_policy_state_lock_*() functions to support
substates.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2022-04-28 16:32:23 +02:00

45 lines
859 B
Plaintext

/*
* Copyright (c) 2021 Nordic Semiconductor ASA
* SPDX-License-Identifier: Apache-2.0
*/
/ {
cpus {
cpu1: cpu@1 {
compatible = "zephyr,native-posix-cpu";
reg = <1>;
cpu-power-states = <&state2>;
};
};
power-states {
state0: state0 {
compatible = "zephyr,power-state";
power-state-name = "runtime-idle";
min-residency-us = <100000>;
exit-latency-us = <10000>;
substate-id = <1>;
};
state1: state1 {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-ram";
min-residency-us = <1000000>;
exit-latency-us = <100000>;
substate-id = <10>;
};
state2: state2 {
compatible = "zephyr,power-state";
power-state-name = "suspend-to-ram";
min-residency-us = <500000>;
exit-latency-us = <50000>;
substate-id = <100>;
};
};
};
&cpu0 {
cpu-power-states = <&state0 &state1>;
};