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

Commit b01e7a02 authored by Jack Pham's avatar Jack Pham
Browse files

ARM: dts: msm: Add USB device node to sdm855



Add the basic device nodes for the primary USB device for SDM855.
Enable it for RUMI using the emulation-specific PHY, while limiting
the max speed to high-speed and supporting peripheral-only.

Change-Id: I8da5daea952d7acea379eefe44961446cda31f6d
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 54da9bc0
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -9,3 +9,31 @@
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

&soc {
	usb_emu_phy: usb_emu_phy@a720000 {
		compatible = "qcom,usb-emu-phy";
		reg = <0x0a720000 0x9500>,
		      <0x0a6f8800 0x100>;
		reg-names = "base", "qcratch_base";

		qcom,emu-init-seq = <0xfff0 0x4
				     0xfff3 0x4
				     0xfff0 0x4
				     0x100000 0x20
				     0x0 0x20
				     0x1a0 0x20
				     0x100000 0x3c
				     0x0 0x3c
				     0x10060 0x3c
				     0x0 0x4>;
	};
};

&usb0 {
	dwc3@a600000 {
		usb-phy = <&usb_emu_phy>;
		maximum-speed = "high-speed";
		dr_mode = "peripheral";
	};
};
+21 −0
Original line number Diff line number Diff line
@@ -361,6 +361,27 @@
				  "l3-scu-errirq",
				  "l3-scu-faultirq";
	};

	usb0: ssusb@a600000 {
		compatible = "qcom,dwc3";
		reg = <0x0a600000 0x100000>;
		reg-names = "base";
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		dwc3@a600000 {
			compatible = "snps,dwc3";
			reg = <0x0a600000 0xcd00>;
			interrupt-parent = <&intc>;
			interrupts = <0 133 0>;
			tx-fifo-resize;
			linux,sysdev_is_parent;
			snps,disable-clk-gating;
			snps,has-lpm-erratum;
			snps,hird-threshold = /bits/ 8 <0x10>;
		};
	};
};

&emac_gdsc {