How to power off GPIO in "Suspend-to-RAM" mode?

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

How to power off GPIO in "Suspend-to-RAM" mode?

785 Views
RKhairulin
Contributor I

I have gpio-expander, which managing of voltage by GPIO. And I need some gpio-pin power off when going into the sleep mode. I tried to describe regulator in dts file, but it doesn't work.

vdd_wbt_1v8: regulator@101 {
		compatible = "regulator-fixed";
		regulator-name = "VDD_WBT_1V8";
                regulator-min-microvolt = <1800000>;
                regulator-max-microvolt = <1800000>;
                gpio = <&hu_u1740 17 GPIO_ACTIVE_HIGH>; // WBT_PWR_EN
		enable-active-high;
		regulator-state-mem {
	        	regulator-off-in-suspend;
		};
};	

 

May i make a mistake in the dts?

0 Kudos
3 Replies

771 Views
igorpadykov
NXP Employee
NXP Employee

Hi Riyan

 

>compatible = "regulator-fixed";
>..regulator-state-mem {regulator-off-in-suspend;};

 

based on linux documentation below seems "fixed-regulator" has not "regulator-state-mem" property:

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/regulato...

 

Best regards
igor

0 Kudos

762 Views
RKhairulin
Contributor I

H Igor,

a fixed-regulator is expnnaded regulator. It has "regulator-state-mem"  property. https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/regulato...

0 Kudos

753 Views
igorpadykov
NXP Employee
NXP Employee

seems this is general linux question, nothing i.MX specific, may be recommended to

post it on kernel mail list:  http://vger.kernel.org/vger-lists.html

 

Best regards
igor

0 Kudos