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

Commit 3629042a authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

ARM: dts: msm: Add USB ID GPIO for APQ8009



For APQ8009 add support to detect ID float or ground
based on GPIO. Also add support to drive a switch
that routes DP DM lines based on ID.

Change-Id: I081dd532943cca58a7552c2d25c3a98804e93449
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent ab3b6fb1
Loading
Loading
Loading
Loading
+30 −1
Original line number Diff line number Diff line
@@ -30,6 +30,19 @@
	status = "disabled";
};

&pm8916_gpios {
	gpio@c200 {
		qcom,mode = <1>;
		qcom,output-type = <0>;
		qcom,src-sel = <0>;
		qcom,pull = <5>;
		qcom,master-en = <1>;
		qcom,vin-sel = <1>;
		qcom,out-strength = <3>;
		status = "ok";
	};
};

&msm_gpio {
	hsuart_active: default {
		mux {
@@ -69,6 +82,19 @@
			bias-disable;
		};
	};

	usb_id_detect: usb_id_detect {
		mux {
			pins = "gpio110";
			function = "gpio";
		};

		config {
			pins = "gpio110";
			drive-strength = <2>;
			bias-pull-up;
		};
	};
};

&soc {
@@ -197,9 +223,12 @@
		interrupt-parent = <&msm_gpio>;
		interrupts = <97 0>;
		interrupt-names = "vbus_det_irq";
		pinctrl-names = "usb_vbus_detect";
		pinctrl-names = "usb_vbus_detect", "usb_id_detect";
		pinctrl-0 = <&usb_vbus_detect>;
		pinctrl-1 = <&usb_id_detect>;
		qcom,gpio-mode-sel = <&msm_gpio 97 0>;
		qcom,id-det-gpio = <&msm_gpio 110 0>;
		qcom,dpdm_switch_gpio = <&pm8916_gpios 3 0>;
	};
};

+30 −1
Original line number Diff line number Diff line
@@ -30,6 +30,19 @@
	status = "disabled";
};

&pm8916_gpios {
	gpio@c200 {
		qcom,mode = <1>;
		qcom,output-type = <0>;
		qcom,src-sel = <0>;
		qcom,pull = <5>;
		qcom,master-en = <1>;
		qcom,vin-sel = <1>;
		qcom,out-strength = <3>;
		status = "ok";
	};
};

&msm_gpio {
	hsuart_active: default {
		mux {
@@ -69,6 +82,19 @@
			bias-disable;
		};
	};

	usb_id_detect: usb_id_detect {
		mux {
			pins = "gpio110";
			function = "gpio";
		};

		config {
			pins = "gpio110";
			drive-strength = <2>;
			bias-pull-up;
		};
	};
};

&soc {
@@ -175,9 +201,12 @@
		interrupt-parent = <&msm_gpio>;
		interrupts = <97 0>;
		interrupt-names = "vbus_det_irq";
		pinctrl-names = "usb_vbus_detect";
		pinctrl-names = "usb_vbus_detect", "usb_id_detect";
		pinctrl-0 = <&usb_vbus_detect>;
		pinctrl-1 = <&usb_id_detect>;
		qcom,gpio-mode-sel = <&msm_gpio 97 0>;
		qcom,id-det-gpio = <&msm_gpio 110 0>;
		qcom,dpdm_switch_gpio = <&pm8916_gpios 3 0>;
	};
};