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

Commit 3470828f authored by Mayank Rana's avatar Mayank Rana
Browse files

ARM: dts: msm: Add VBUS/ID configuration for USB secondary port on Lahaina

This change adds GPIO configuration for USB VBUS/ID detection and
enabling 5v vbus in host mode. It adds extcon_usb2 device node for
using this configuration through USB extcon gpio driver for
notifying vbus/ID status on connecting USB cable.

Change-Id: I54727cc9112e74b4c8829442fc6e727bbd20beab
parent 5402f200
Loading
Loading
Loading
Loading
+16 −0
Original line number Original line Diff line number Diff line
@@ -27,6 +27,18 @@
			linux,can-disable;
			linux,can-disable;
		};
		};
	};
	};

	extcon_usb1: extcon_usb1 {
		compatible = "linux,extcon-usb-gpio";
		vbus-gpio =  <&pm8350_gpios 9 GPIO_ACTIVE_HIGH>;
		id-gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
		vbus-out-gpio = <&pm8350_gpios 8 GPIO_ACTIVE_HIGH>;

		pinctrl-names = "default";
		pinctrl-0 = <&usb2_vbus_det_default
			     &usb2_id_det_default
			     &usb2_vbus_boost_default>;
	};
};
};


&sdhc_2 {
&sdhc_2 {
@@ -97,3 +109,7 @@
&pm8350c_flash {
&pm8350c_flash {
	status = "ok";
	status = "ok";
};
};

&usb1 {
	extcon = <&extcon_usb1>;
};
+16 −0
Original line number Original line Diff line number Diff line
@@ -27,6 +27,18 @@
			linux,can-disable;
			linux,can-disable;
		};
		};
	};
	};

	extcon_usb1: extcon_usb1 {
		compatible = "linux,extcon-usb-gpio";
		vbus-gpio =  <&pm8350_gpios 9 GPIO_ACTIVE_HIGH>;
		id-gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
		vbus-out-gpio = <&pm8350_gpios 8 GPIO_ACTIVE_HIGH>;

		pinctrl-names = "default";
		pinctrl-0 = <&usb2_vbus_det_default
			     &usb2_id_det_default
			     &usb2_vbus_boost_default>;
	};
};
};


&sdhc_2 {
&sdhc_2 {
@@ -97,3 +109,7 @@
&pm8350c_flash {
&pm8350c_flash {
	status = "ok";
	status = "ok";
};
};

&usb1 {
	extcon = <&extcon_usb1>;
};
+9 −0
Original line number Original line Diff line number Diff line
@@ -1657,6 +1657,15 @@
				};
				};
			};
			};
		};
		};

		usb2_id_det_default: usb2_id_det_default {
			config {
				pins = "gpio51";
				function = "gpio";
				input-enable;
				bias-pull-up;
			};
		};
	};
	};
	pmx_sde: pmx_sde {
	pmx_sde: pmx_sde {
		sde_dsi_active: sde_dsi_active {
		sde_dsi_active: sde_dsi_active {
+19 −0
Original line number Original line Diff line number Diff line
@@ -17,6 +17,25 @@
			power-source = <1>;
			power-source = <1>;
		};
		};
	};
	};

	usb2_vbus_boost {
		usb2_vbus_boost_default: usb2_vbus_boost_default {
			pins = "gpio8";
			function = "normal";
			output-low;
			power-source = <0>;	/* 1.8V input supply */
		};
	};

	usb2_vbus_det {
		usb2_vbus_det_default: usb2_vbus_det_default {
			pins = "gpio9";
			function = "normal";
			input-enable;
			bias-disable;
			power-source = <0>;	/* 1.8V input supply */
		};
	};
};
};


&qupv3_se13_i2c {
&qupv3_se13_i2c {