LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Enable Regulator using GPIO (https://www.linuxquestions.org/questions/linux-software-2/enable-regulator-using-gpio-4175628313/)

ashok kumar reddy 04-24-2018 07:59 AM

Enable Regulator using GPIO
 
Hi,

I want to use GPIO to enable regulator in device tree as shown below.

gpio_reg: gpio_reg {
compatible = "regulator-fixed"
regulator-name = "gpio_reg";
gpio = <&tlmm_pinmux 23 0>;
regulator-min-microvolt = <1800000>;
regulatot-max-microvolt = <1800000>;
enable-active-high;
status = "ok"
}
but i dont see any GPIO toggling happening on gpio23.

if i use gpio directly from sysfs without using in device tree i can see gpio toggling.

Is something i am missing to specify in device tree to enable regulator?

Thanks,
Ashok


All times are GMT -5. The time now is 05:05 PM.