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

Commit 55c64a09 authored by Pratham Pratap's avatar Pratham Pratap
Browse files

ARM: dts: msm: Enable USB SS mode for lito

QMP PHY's core-spply is connected to an external
regulator which is controlled by PMIC GPIO 12 on Lito.
This change adds support for eLDO13(external regulator)
to enable USB SS mode and changes regulator for HS PHY
as per power grid.

Change-Id: I27f6968cb5117ee760e25d02115a6ce9159a087d
parent 96caba46
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -23,6 +23,21 @@
			linux,can-disable;
		};
	};

	qmp_dp_phy_core_supply: qmp_dp_phy_core_supply {
		compatible = "regulator-fixed";
		regulator-name = "core_supply";
		regulator-min-microvolt = <1200000>;
		regulator-max-microvolt = <1200000>;
		enable-active-high;
		gpio = <&pm8150l_gpios 12 GPIO_ACTIVE_HIGH>;
		pinctrl-names = "default";
		pinctrl-0 = <&usb_eldo13>;
	};
};

&usb_qmp_dp_phy {
	core-supply = <&qmp_dp_phy_core_supply>;
};

&pm7250b_vadc {
+15 −0
Original line number Diff line number Diff line
@@ -23,6 +23,21 @@
			linux,can-disable;
		};
	};

	qmp_dp_phy_core_supply: qmp_dp_phy_core_supply {
		compatible = "regulator-fixed";
		regulator-name = "core_supply";
		regulator-min-microvolt = <1200000>;
		regulator-max-microvolt = <1200000>;
		enable-active-high;
		gpio = <&pm8150l_gpios 12 GPIO_ACTIVE_HIGH>;
		pinctrl-names = "default";
		pinctrl-0 = <&usb_eldo13>;
	};
};

&usb_qmp_dp_phy {
	core-supply = <&qmp_dp_phy_core_supply>;
};

/ {
+13 −0
Original line number Diff line number Diff line
@@ -424,6 +424,19 @@
	};
};

&pm8150l_gpios {
	eldo13_pin {
		usb_eldo13:gpio@cb00 {
			pins = "gpio12";
			function = "normal";
			qcom,drive-strength = <2>;
			power-source = <0>;
			bias-disable;
			output-high;
		};
	};
};

&pm7250b_pdphy {
	vdd-pdphy-supply = <&pm8150_l2>;
	vbus-supply = <&smb5_vbus>;
+3 −4
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@
			snps,usb3-u1u2-disable;
			usb-core-id = <0>;
			tx-fifo-resize;
			maximum-speed = "high-speed";
			maximum-speed = "super-speed";
			dr_mode = "drd";
		};

@@ -103,7 +103,7 @@

		vdd-supply = <&pm8150_l5>;
		vdda18-supply = <&pm8150_l12>;
		vdda33-supply = <&pm8150a_l2>;
		vdda33-supply = <&pm8150_l2>;
		qcom,vdd-voltage-level = <0 880000 880000>;

		clocks = <&rpmhcc RPMH_CXO_CLK>;
@@ -123,7 +123,6 @@
		vdd-supply = <&pm8150_l5>;
		qcom,vdd-voltage-level = <0 880000 880000>;
		qcom,vdd-max-load-uA = <47000>;
		core-supply = <&pm8150a_l9>;
		qcom,vbus-valid-override;
		qcom,qmp-phy-init-seq =
			/* <reg_offset, value, delay> */
@@ -304,7 +303,7 @@
			<&gcc GCC_USB3_PHY_PRIM_BCR>;
		reset-names = "global_phy_reset", "phy_reset";

		status = "disabled";
		status = "ok";
	};

	usb_audio_qmi_dev {