arm/dt: msm8974: enable SMBB otg and boost regulators
Add two regulators for the pm8941_chg device container.
One to control the OTG FET, as well as one to support
the SMBB_BOOST peripheral.
The pm8941_chg_otg regulator is set as the parent
supply of pm8941_mvs1. This ensures that the OTG OVP
FET is turned on before the OTG switch is enabled.
CRs-Fixed: 486088
Change-Id: Ife6e1a39bcfb0fd6655a344ffecf7e7ff122dff1
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
diff --git a/arch/arm/boot/dts/msm8974-regulator.dtsi b/arch/arm/boot/dts/msm8974-regulator.dtsi
index 35f3993..2114686 100644
--- a/arch/arm/boot/dts/msm8974-regulator.dtsi
+++ b/arch/arm/boot/dts/msm8974-regulator.dtsi
@@ -25,7 +25,7 @@
};
pm8941_mvs1: regulator@8300 {
- parent-supply = <&pm8941_boost>;
+ parent-supply = <&pm8941_chg_otg>;
qcom,enable-time = <1000>;
qcom,pull-down-enable = <1>;
interrupts = <0x1 0x83 0x2>;
@@ -552,3 +552,17 @@
regulator-always-on;
};
};
+
+&pm8941_chg {
+ otg-parent-supply = <&pm8941_boost>;
+};
+
+&pm8941_chg_boost {
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ regulator-name = "8941_smbb_boost";
+};
+
+&pm8941_chg_otg {
+ regulator-name = "8941_smbb_otg";
+};