AnsweredAssumed Answered

Device tree of regulators

Question asked by victor Wang on Apr 26, 2018
Latest reply on Apr 27, 2018 by igorpadykov

Hi All,

I'm using Android6.0 to build image for my customized board which have no PMIC.

 

When I read the device tree settings there is a regulators defined like below code.

/ {

regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;

reg_1p8v: regulator@0 {
compatible = "regulator-fixed";
reg = <0>;
regulator-name = "1P8V";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};

reg_2p5v: regulator@1 {
compatible = "regulator-fixed";
reg = <1>;
regulator-name = "2P5V";
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <2500000>;
regulator-always-on;
};

reg_3p3v: regulator@2 {
compatible = "regulator-fixed";
reg = <2>;
regulator-name = "3P3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
};

reg_usbotg_vbus: regulator@3 {
compatible = "regulator-fixed";
reg = <3>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_reg_usbotg_vbus>;
regulator-name = "usb_otg_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = GP_REG_USBOTG;
enable-active-high;
};

reg_wlan_en: regulator@4 {
compatible = "regulator-fixed";
reg = <4>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_reg_wlan_en>;
regulator-name = "wlan-en";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = GP_REG_WLAN_EN;
startup-delay-us = <70000>;
enable-active-high;
};
};

};

I do find it is related to the kernel-driver driver/regulator/fixed.c

But I don't know what this capable to do?

if it is setting up the voltage, Is this voltage coming up form CPU?

If so which pin it will come out?

 

Thanks in Advanced !

Outcomes