Hi,
We are currently working on migrating our NRF SDK code to NCS on our custom board with nrf52833/840 and two peripheral devices.
Because we have a higher power consumption in the new NCS I'm trying to optimize our power consumption using different pm states from pm/state.h,
all states provide similar power consumption except PM_STATE_SOFT_OFF which is not relevant to our case.
I try to build and use custom power management without success and would appreciate help/guidance.
Thanks!
/ {
cpus {
cpu1: cpu@1 {
compatible = "zephyr,native-posix-cpu";
reg = <1>;
cpu-power-states = <&state0>;
};
};
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>;
};
};
};
&cpu1 {
cpu-power-states = <&state0 &state1>;
};