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?