AnsweredAssumed Answered

Device Tree - Regulator Settings

Question asked by shani on Nov 28, 2016
Latest reply on Dec 14, 2016 by Carlos_Musich

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.

Outcomes