Linux regulator framework and suspend mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linux regulator framework and suspend mode

Jump to solution
1,866 Views
faustasbagdonas
Contributor II

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 ...) */
Labels (3)
0 Kudos
1 Solution
1,235 Views
igorpadykov
NXP Employee
NXP Employee

Hi Faustas

one can refer to Chapter 21 Low-level Power Management (PM) Driver

attached Linux Manual for implemented linux low power states,

seems suspend-to-memory and this dts property is not used in i.mx6 nxp bsps.

In general one can debug it using described sources in Chapter 22
PF100 Regulator Driver.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
1,236 Views
igorpadykov
NXP Employee
NXP Employee

Hi Faustas

one can refer to Chapter 21 Low-level Power Management (PM) Driver

attached Linux Manual for implemented linux low power states,

seems suspend-to-memory and this dts property is not used in i.mx6 nxp bsps.

In general one can debug it using described sources in Chapter 22
PF100 Regulator Driver.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------