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

Commit 049214eb authored by Jack Pham's avatar Jack Pham
Browse files

ARM: dts: msm: Add secondary USB host for MSM8994



The MSM8994 contains a secondary instance of a USB host
controller paired with the new QUSB2 PHY. Add device tree
nodes to describe them.

Leave these disabled in the base msm8994.dtsi and enable
them only on CDP, as VBUS power is required. Also add
the VBUS regulator device which is controled by GPIO 5
on the PMI8994.

Change-Id: I7bb69f6b7066c9fe3fd56200dea3f34fbe44d38b
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 96405123
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -334,6 +334,14 @@
		qcom,us-euro-gpios = <&pm8994_mpps 2 0>;
		qcom,mbhc-audio-jack-type = "6-pole-jack";
	};

	usb1_vreg: usb1_vreg {
		compatible = "regulator-fixed";
		regulator-name = "usb1_vreg";
		startup-delay-us = <18000>; /* the on time of TPD4S214 */
		enable-active-high;
		gpio = <&pmi8994_gpios 5 0>;
	};
};

&pm8994_gpios {
@@ -479,3 +487,12 @@
&ssphy0 {
	status = "ok";
};

&usb_ehci {
        status = "ok";
        vbus-supply = <&usb1_vreg>;
};

&qusb_phy {
	status = "ok";
};
+34 −0
Original line number Diff line number Diff line
@@ -1163,6 +1163,40 @@
		qcom,hsusb-otg-otg-control = <1>;
	};

	usb_ehci: ehci@f9a55000 {
		compatible = "qcom,ehci-host";
		status = "disabled";
		reg = <0xf9a55000 0x400>;
		interrupts = <0 134 0>, <0 140 0>;
		interrupt-names = "core_irq", "async_irq";
		hsusb_vdd_dig-supply = <&pm8994_s2_corner>;
		HSUSB_1p8-supply = <&pm8994_l6>;
		HSUSB_3p3-supply = <&pm8994_l24>;
		qcom,vdd-voltage-level = <1 2 3 5 7>;
		qcom,usb2-power-budget = <500>;
		usb-phy = <&qusb_phy>;

		clocks = <&clock_gcc clk_gcc_usb_hs_system_clk>,
			 <&clock_gcc clk_gcc_usb_hs_ahb_clk>,
			 <&clock_rpm clk_cxo_otg_clk>;
		clock-names = "core_clk", "iface_clk", "xo";
	};

	qusb_phy: qusb@f9b39000 {
		compatible = "qcom,qusb2phy";
		status = "disabled";
		reg = <0xf9b39000 0x17f>;
		vdd-supply = <&pm8994_s2_corner>;
		vdda18-supply = <&pm8994_l6>;
		vdda33-supply = <&pm8994_l24>;
		qcom,vdd-voltage-level = <1 5 7>;

		clocks = <&clock_rpm clk_ln_bb_clk>,
			 <&clock_gcc clk_gcc_usb_phy_cfg_ahb2phy_clk>,
			 <&clock_gcc clk_gcc_qusb2_phy_reset>;
		clock-names = "ref_clk", "cfg_ahb_clk", "phy_reset";
	};

	android_usb@fe87f0c8 {
		compatible = "qcom,android-usb";
		reg = <0xfe87f0c8 0xc8>;