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

Commit e877d6c7 authored by Liron Kuch's avatar Liron Kuch Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: apq: Add USB OTG support for APQ8096 DragonBoard



USB OTG mode depends on USB ID detection performed by the PMIC driver.
APQ8096 DragonBoard SOMs use either a PMI8994 or a PMI8996 component.
In PMI8994, USB ID detection is based on an interrupt handled by the
qpnp-smbcharger driver, so the pmi8994_charger device tree node
must be enabled.
In PMI8996, pmi8994_fg device needs to be enabled as well, as the charger
USB ID detection is not connected to any interrupt, but handled by the
qpnp-fg driver.
Additionally, remove USB PHY initialization which causes USB PHY PLL
lock failure.

Change-Id: I8d7bc23e7c730174fb8f9f6c52dc4f5e02a0ec6e
Signed-off-by: default avatarLiron Kuch <lkuch@codeaurora.org>
parent ac6766f8
Loading
Loading
Loading
Loading
+1 −21
Original line number Diff line number Diff line
@@ -389,15 +389,8 @@
	};
};

&pmi8994_fg {
	status = "disabled";
};

&pmi8994_charger {
	status = "disabled";
};

&usb_otg_switch {
	/delete-property/ vin-supply;
	gpio = <&pm8994_gpios 11 0>;
	enable-active-high;
	status = "ok";
@@ -423,19 +416,6 @@
	status = "ok";
};

&qusb_phy0 {
	qcom,qusb-phy-init-seq = <0xF8 0x80
				0x63 0x84
				0x83 0x88
				0xC5 0x8C
				0x30 0x08
				0x79 0x0C
				0x21 0x10
				0x14 0x9C
				0x9F 0x1C
				0x00 0x18>;
};

&qusb_phy1 {
	status = "ok";
};