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

Commit 6b04e298 authored by Linyu Yuan's avatar Linyu Yuan
Browse files

ARM: dts: msm: enable USB1 host mode on lahaina HDK

second USB port work as host mode on lahaina HDK.

Change-Id: Ie7c091a333bfb7ffee0326e2b462614dcb3da8b6
parent 8c41e5b7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -61,3 +61,9 @@
	qcom,msm-mbhc-hphl-swh = <1>;
	qcom,msm-mbhc-gnd-swh = <1>;
};

&usb1 {
	dwc3@a800000 {
		dr_mode = "host";
	};
};
+0 −61
Original line number Diff line number Diff line
@@ -166,25 +166,6 @@
	qcom,msm-mbhc-gnd-swh = <0>;
};

&usb1 {
	status = "disabled";
};

&usb2_phy1 {
	status = "disabled";
};

&usb_qmp_phy {
	status = "disabled";
};

&usb2_phy0 {
	qcom,param-override-seq =
		<0xe6 0x6c
		0x0f 0x70
		0x17 0x74>;
};

&qupv3_se4_i2c {
	#address-cells = <1>;
	#size-cells = <0>;
@@ -235,48 +216,6 @@
	status = "ok";
};

&usb_qmp_dp_phy {
	pinctrl-names = "portselect";
};

&usb0 {
	ssusb_redriver = <&redriver>;
};

&qupv3_se13_i2c {
	status = "ok";

	redriver: redriver@1c {
		compatible = "onnn,redriver";
		reg = <0x1c>;

		pinctrl-names = "enable_gpio";
		pinctrl-0 = <&usb3phy_portselect_gpio>;
		orientation_gpio = <&tlmm 81 0>;

		eq = /bits/ 8 <
				/* Parameters for USB */
				0x4 0x4 0x4 0x4
				/* Parameters for DP */
				0x6 0x4 0x4 0x6>;
		flat-gain = /bits/ 8 <
				/* Parameters for USB */
				0x3 0x1 0x1 0x3
				/* Parameters for DP */
				0x2 0x1 0x1 0x2>;
		output-comp = /bits/ 8 <
				/* Parameters for USB */
				0x3 0x3 0x3 0x3
				/* Parameters for DP */
				0x3 0x3 0x3 0x3>;
		loss-match = /bits/ 8 <
				/* Parameters for USB */
				0x1 0x3 0x3 0x1
				/* Parameters for DP */
				0x3 0x3 0x3 0x3>;
	};
};

&qupv3_se15_i2c {
	status = "ok";
	qcom,clk-freq-out = <1000000>;
+61 −0
Original line number Diff line number Diff line
#include "lahaina-qrd-common.dtsi"

&usb1 {
	status = "disabled";
};

&usb2_phy1 {
	status = "disabled";
};

&usb_qmp_phy {
	status = "disabled";
};

&usb2_phy0 {
	qcom,param-override-seq =
		<0xe6 0x6c
		0x0f 0x70
		0x17 0x74>;
};

&usb_qmp_dp_phy {
	pinctrl-names = "portselect";
};

&usb0 {
	ssusb_redriver = <&redriver>;
};

&qupv3_se13_i2c {
	status = "ok";

	redriver: redriver@1c {
		compatible = "onnn,redriver";
		reg = <0x1c>;

		pinctrl-names = "enable_gpio";
		pinctrl-0 = <&usb3phy_portselect_gpio>;
		orientation_gpio = <&tlmm 81 0>;

		eq = /bits/ 8 <
				/* Parameters for USB */
				0x4 0x4 0x4 0x4
				/* Parameters for DP */
				0x6 0x4 0x4 0x6>;
		flat-gain = /bits/ 8 <
				/* Parameters for USB */
				0x3 0x1 0x1 0x3
				/* Parameters for DP */
				0x2 0x1 0x1 0x2>;
		output-comp = /bits/ 8 <
				/* Parameters for USB */
				0x3 0x3 0x3 0x3
				/* Parameters for DP */
				0x3 0x3 0x3 0x3>;
		loss-match = /bits/ 8 <
				/* Parameters for USB */
				0x1 0x3 0x3 0x1
				/* Parameters for DP */
				0x3 0x3 0x3 0x3>;
	};
};
+60 −0
Original line number Diff line number Diff line
#include "lahaina-qrd-common.dtsi"

&usb1 {
	status = "disabled";
};

&usb2_phy1 {
	status = "disabled";
};

&usb_qmp_phy {
	status = "disabled";
};

&usb2_phy0 {
	qcom,param-override-seq =
		<0xe6 0x6c
		0x0f 0x70
		0x17 0x74>;
};

&usb_qmp_dp_phy {
	pinctrl-names = "portselect";
};

&usb0 {
	ssusb_redriver = <&redriver>;
};

&qupv3_se13_i2c {
	status = "ok";

	redriver: redriver@1c {
		compatible = "onnn,redriver";
		reg = <0x1c>;

		pinctrl-names = "enable_gpio";
		pinctrl-0 = <&usb3phy_portselect_gpio>;
		orientation_gpio = <&tlmm 81 0>;

		eq = /bits/ 8 <
				/* Parameters for USB */
				0x4 0x4 0x4 0x4
				/* Parameters for DP */
				0x6 0x4 0x4 0x6>;
		flat-gain = /bits/ 8 <
				/* Parameters for USB */
				0x3 0x1 0x1 0x3
				/* Parameters for DP */
				0x2 0x1 0x1 0x2>;
		output-comp = /bits/ 8 <
				/* Parameters for USB */
				0x3 0x3 0x3 0x3
				/* Parameters for DP */
				0x3 0x3 0x3 0x3>;
		loss-match = /bits/ 8 <
				/* Parameters for USB */
				0x1 0x3 0x3 0x1
				/* Parameters for DP */
				0x3 0x3 0x3 0x3>;
	};
};