Add a new test to verify the policy API behavior. Test also checks that custom policies can be implemented. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
42 lines
790 B
Plaintext
42 lines
790 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>;
|
|
};
|
|
|
|
state1: state1 {
|
|
compatible = "zephyr,power-state";
|
|
power-state-name = "suspend-to-ram";
|
|
min-residency-us = <1000000>;
|
|
exit-latency-us = <100000>;
|
|
};
|
|
|
|
state2: state2 {
|
|
compatible = "zephyr,power-state";
|
|
power-state-name = "suspend-to-ram";
|
|
min-residency-us = <500000>;
|
|
exit-latency-us = <50000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&cpu0 {
|
|
cpu-power-states = <&state0 &state1>;
|
|
};
|