Hello All,
I would like to have the possibility to disable one regulator of the MMPF0100 PMIC on suspend-to-memory and re-enable it on wake-up. I tried to use "regulator-off-in-suspend" according to the available Linux documentation, but that didn't help me: the regulator still works in suspend mode. I expected it to be turned off in suspend mode. I enter the suspend-to-memory state by using:
# "echo mem > /sys/power/state".
What could be the correct way to keep the regulator turned off while in suspend-to-memory state?
This is a fragment from my device tree:
&i2c2 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2_2>;
status = "okay";
pmic: pfuze100@08 {
compatible = "fsl,pfuze100";
reg = <0x08>;
regulators {
sw4_reg: sw4 {
regulator-min-microvolt = <800000>;
regulator-max-microvolt = <3950000>;
regulator-boot-on;
/* I thought this would help me but it does not work: */
regulator-state-mem {
regulator-off-in-suspend;
};
};
/* (... Description of other regulators ...) */