Device Tree - Regulator Settings

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

Device Tree - Regulator Settings

1,067 Views
shani
Contributor I

Hi,

Looking at the device tree for SabreSD boards, I notice the following snippet:

                        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>;

                                                                        gpio = <&gpio1 29 0>;

                                                                        enable-active-high;

                                                                        vin-supply = <&swbst_reg>;

                                                };

 

                                                reg_audio: regulator@2 {

                                                                        compatible = "regulator-fixed";

                                                                        reg = <2>;

                                                                        regulator-name = "wm8962-supply";

                                                                        gpio = <&gpio4 10 0>;

                                                                        enable-active-high;

                                                };

What is the above setting used for? I see that it is related to regulator settings but am unable to figure out what software module/driver reads these settings.

If anybody can give me some pointers, I would appreciate.

Thanks.

0 Kudos
1 Reply

552 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi shani,

the reference to "regulator-fixed" is in kernel-source/drivers/regulator/fixed.c


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos