Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f3252c6 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

ARM: dts: msm: Add OTG related regulators for msm8992



During DC charging, some devices may want to support USB OTG
with an external boost. The PMI8994 has a 5V audio boost that
can be utilized  to provide the 5V that OTG requires.

Add the usb_otg_switch fixed regulator to enable the switch that
connects the boost with USBIN via PMI8994 GPIO 5.

Add the smbcharger_external_otg regulator to disable the usb
charge path when the 5V is provided.

The layout of the regulator supply chain will be the following:
	- usb_otg_switch
		- fixed regulator that controls gpio to enable or
		  disable OVP FET
	- supplied by: smbcharger_external_otg
		- smbcharger regulator that disables usb charging
		  and USB source detect
	- supplied by: pmi8994_boost_5v
		- rpm regulator that enables the 5V smart boost in
		  the PMI8994.

The usb_otg_switch can be used in place of smbcharger_charger_otg
to provide the 5V in place of the charger operating in reverse if
specified in the device tree.

Change-Id: I9672c2f98369582b4a862e86dee05ab48183a380
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 8aabde83
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -537,4 +537,23 @@
			qcom,always-send-voltage;
		};
	};

	usb_otg_switch: usb-otg-switch {
		compatible = "regulator-fixed";
		regulator-name = "usb_otg_vreg";
		vin-supply = <&smbcharger_external_otg>;
		enable-active-high;
		gpio = <&pmi8994_gpios 5 0>;
	};
};

&pmi8994_charger {
	otg-parent-supply = <&pmi8994_boost_5v>;
	smbcharger_charger_otg: qcom,smbcharger-boost-otg {
		regulator-name = "smbcharger_charger_otg";
	};

	smbcharger_external_otg: qcom,smbcharger-external-otg {
		regulator-name = "smbcharger_external_otg";
	};
};