Commit c6489c30 authored by Wayne Chang's avatar Wayne Chang Committed by Thierry Reding
Browse files

arm64: tegra: Enable Jetson Xavier NX USB device mode



This commit enables USB device mode at J5 micro-B USB port of Jetson
Xavier NX.

Signed-off-by: default avatarWayne Chang <waynec@nvidia.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent ff578db7
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -1826,6 +1826,10 @@ padctl@3520000 {
			pads {
				usb2 {
					lanes {
						usb2-0 {
							status = "okay";
						};

						usb2-1 {
							status = "okay";
						};
@@ -1846,6 +1850,20 @@ usb3-2 {
			};

			ports {
				usb2-0 {
					mode = "otg";
					status = "okay";
					usb-role-switch;
					connector {
						compatible = "gpio-usb-b-connector",
							"usb-b-connector";
						label = "micro-USB";
						type = "micro";
						vbus-gpio = <&gpio TEGRA194_MAIN_GPIO(Z, 1)
								GPIO_ACTIVE_LOW>;
					};
				};

				usb2-1 {
					mode = "host";
					status = "okay";
@@ -1874,6 +1892,13 @@ usb@3610000 {
			phy-names = "usb2-1", "usb2-2", "usb3-2";
		};

		usb@3550000 {
			status = "okay";

			phys = <&{/bus@0/padctl@3520000/pads/usb2/lanes/usb2-0}>;
			phy-names = "usb2-0";
		};

		spi@3270000 {
			status = "okay";