What's the function of the fixed-regulator

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What's the function of the fixed-regulator

1,726 Views
Gnimis
Contributor II

Hi,

     I'm using a imx6q board with a PMIC chip(MMPF0100F0EP ). I defined the pmic: pfuze100@08 in the device tree. but I still find a regulator defined in the device tree like below , it's use the regulator-fixed driver.

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

reg_usb_otg_vbus: regulator@0 {
compatible = "regulator-fixed";
reg = <0>;
regulator-name = "usb_otg_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
gpio = <&gpio3 22 0>;
enable-active-high;
vin-supply = <&swbst_reg>;
};

reg_usb_h1_vbus: regulator@1 {
compatible = "regulator-fixed";
reg = <1>;
regulator-name = "usb_h1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
.....

 

So, what's the difference between fixed-regulator and pfuze100 regulator?

If I use the pfuze100, can I remove the fixed-regulator definition?

Thanks.

0 Kudos
1 Reply

1,717 Views
igorpadykov
NXP Employee
NXP Employee

Hi siming

 

for regulator-fixed one can look in linux documentation

https://source.codeaurora.org/external/imx/linux-imx/tree/Documentation/devicetree/bindings/regulato...

 

Best regards
igor

0 Kudos