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

Commit f4048b77 authored by Glenn Stroz's avatar Glenn Stroz Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Enable second usb port and host mode APQ8096 drone



The apq8096 drone platform supports the secondary usb port as a host.
Furthermore, it supports the primary usb port as both a host and a slave
device. This change enables the secondary port and the host mode
functionality on the primary usb port.

CRs-Fixed: 1074340
Change-Id: I0afb3f7886e7de330bf7e95fa0d1c4e5bf1341d6
Signed-off-by: default avatarGlenn Stroz <gstroz@codeaurora.org>
parent 41f1ab97
Loading
Loading
Loading
Loading
+16 −13
Original line number Diff line number Diff line
@@ -354,12 +354,6 @@


&rpm_bus {
	rpm-regulator-bstb {
		status = "disabled";
		regulator-bst {
			status = "disabled";
		};
	};
	rpm-regulator-ldoa1 {
		status = "disabled";
		pm8994_l1: regulator-l1 {
@@ -500,17 +494,11 @@
};

&pmi8994_charger {
	/delete-property/ otg-parent-supply;
	qcom,charging-disabled;
	smbcharger_charger_otg {
		parent-supply = <&pmi8994_boost_5v>;
	};
};

&usb_otg_switch {
	/delete-property/ vin-supply;
	gpio = <&pm8994_gpios 11 0>;
	enable-active-high;
	status = "ok";
};

@@ -519,6 +507,14 @@
	vbus_dwc3-supply = <&usb_otg_switch>;
};

&usb2s {
	status = "ok";
	vbus_dwc3-supply = <&usb_vbus_vreg>;
	dwc3@7600000 {
		dr_mode = "host";
	};
};

&usb_nop_phy {
	status = "ok";
};
@@ -662,6 +658,13 @@
		regulator-always-on;
	};

	usb_vbus_vreg: usb_vbus_vreg {
		compatible = "regulator-fixed";
		regulator-name = "usb_vbus_vreg";
		gpio = <&pmi8994_gpios 3 0>;
		enable-active-high;
	};

	sound {
		status = "disabled";
	};
@@ -718,10 +721,10 @@

	gpio@ca00 { /* GPIO 11 - USB enb1 (otg switch) */
		qcom,mode = <1>;	/* DIGITAL OUT */
		qcom,pull = <1>;	/* PULL DOWN */
		qcom,vin-sel = <2>;	/* 1.8 */
		qcom,src-sel = <0>;	/* GPIO */
		qcom,master-en = <1>;	/* Enable GPIO */
		qcom,invert = <0>;	/* Invert */
		status = "okay";
	};