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?
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:
Best regards
igor
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...
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