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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,802件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

1,788件の閲覧回数
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 件の賞賛
返信

1,779件の閲覧回数
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 件の賞賛
返信

1,770件の閲覧回数
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 件の賞賛
返信