Jetson TX2 NX L4T 32.7.1 USB2.0 host mode is not working

Hi,

I am working on Jetson TX2 NX L4T 32.7.1 BSP and I have customized carrier board.
I have changed USB2.0 to host mode from OTG by below changes and my USB is not up, same changes I have made in L4T 32.5.1 based BSP and it works. I have attached my DTS file(tegra186-p3636-0001-p3509-0000-a01.dts)
tegra186-p3636-0001-p3509-0000-a01-modified.dts (239.3 KB)

Please suggest me what needs to be checked.

TX2 NX uses T18X(/source/Linux_for_Tegra/source/public/hardware/nvidia/platform/t18x/) in the source right?

kernel_sources/Linux_for_Tegra/source/public/hardware/nvidia/platform/t18x/lanai/kernel-dts/tegra186-p3636-0002-lanai.dts
xhci@3530000 {
status = “okay”;
phys = <&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-0}>,
<&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-1}>,
<&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-2}>,
<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-1}>;
phy-names = “usb2-0”, “usb2-1”, “usb2-2”, “usb3-1”;
};

xusb_padctl@3520000 {
	status = "okay";

	pads {
		usb2 {
			lanes {
				usb2-0 {
					nvidia,function = "xusb";
					status = "okay";
				};
				usb2-1 {
					nvidia,function = "xusb";
					status = "okay";
				};
				usb2-2 {
					nvidia,function = "xusb";
					status = "okay";
				};
			};
		};
		usb3 {
			lanes {
				usb3-1 {
					nvidia,function = "xusb";
					status = "okay";
				};
			};
		};
	};

	ports {
		usb2-0 {
			status = "okay";
			mode = "host";
		};
		usb2-1 {
			status = "okay";
			mode = "host";
		};
		usb2-2 {
			status = "okay";
			mode = "host";
		};
		usb3-1 {
			nvidia,usb2-companion = <1>;
			status = "okay";
		};
	};
};

Attached my complete file
tegra186-p3636-0002-lanai.dts (4.4 KB)

You should share your dmesg.

Hi,
Please find attached dmesg log when the USB is connected.
dmesg_TX2_NX_l4t32.6.1_FSC (63.3 KB)

dmesg -w do not log any event if I connect or disconnect the usb to this port. we have tested the port is working fine with Nano and NX modules and also TX2 NX with L4T 32.5.1 with above changes mentioned.

[ 1.222233] tegra-xusb 3530000.xhci: USB2 port 0 has OTG_CAP

OTG cap is still here. Please check if your dts is really getting flashing to the board.

1 Like

Hi,

How can confirm or check that? i see it in /boot/dtb it is the same? I have compared that and it is same as the one I have changed.
tegra186-p3636-0001-p3509-0000-a01-modified.dts (239.3 KB)

I have copied all the dtb along with tegra186-p3636-0001-p3509-0000-a01.dtb to /Linux_for_Tegra/kernel/dtb/ and Linux_for_tegra/bootloader also is that correct?

Check dmesg |grep dts and /proc/device-tree on your board.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.