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

Commit 8bdf981e authored by Manu Gautam's avatar Manu Gautam
Browse files

ARM: dts: msm: Enable ID detection for Host mode on fermium



PMIC MPP_1 is used to detect USB ID changes for host cable
(or microA) insertion.

Change-Id: Iddfb8909a4e4ea8b437ddcd6ec9741eb529a8133
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent a6b58f17
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -62,7 +62,3 @@
		qcom,irq-gpio = <&pm8019_mpps 2 0>;
		qcom,irq-gpio = <&pm8019_mpps 2 0>;
	};
	};
};
};

&usb_otg {
	vbus_otg-supply = <&smb358_otg_vreg>;
};
+1 −0
Original line number Original line Diff line number Diff line
@@ -38,6 +38,7 @@
	qcom,emulation;
	qcom,emulation;
	/delete-property/ qcom,boost-sysclk-with-streaming;
	/delete-property/ qcom,boost-sysclk-with-streaming;
	/delete-property/ qcom,streaming-func;
	/delete-property/ qcom,streaming-func;
	/delete-property/ vbus_otg-supply;
};
};


&clock_gcc {
&clock_gcc {
+16 −0
Original line number Original line Diff line number Diff line
@@ -1138,6 +1138,22 @@
#include "msm-pm8019.dtsi"
#include "msm-pm8019.dtsi"
#include "mdmfermium-regulator.dtsi"
#include "mdmfermium-regulator.dtsi"


/* MPP pin 1 config for USB ID interrupt line */
&pm8019_mpps {
	mpp@a000 {
		qcom,mode = <0>;	/* Digital input */
		qcom,vin-sel = <3>;	/* 1.8V (L11) */
		qcom,src-sel = <0>;	/* QPNP_PIN_SEL_FUNC_CONSTANT */
		qcom,pull = <2>;	/* PULL UP 10KOHM */
		qcom,master-en = <1>;
		status = "okay";
	};
};

&usb_otg {
	vbus_otg-supply = <&smb358_otg_vreg>;
};

&pm8019_vadc {
&pm8019_vadc {
	chan@31 {
	chan@31 {
		label = "batt_id_therm";
		label = "batt_id_therm";