How to disabled USB3.0 on Xavier NX?

I want disabled usb3.0 port in device-tree. how to change the device-tree

Which jetpack release are you using?

Linux version 5.10.104-tegra ; kernel : 5.10
machine model : NVIDIA Jetson Xavier NX Developer KIT
Device-tree: tegra194-p3668-0001-p3509-0000.dts

please refer to the adaptation guide and remove the usb3 lanes from lanes/pads/ports of your device tree.

https://docs.nvidia.com/jetson/archives/r35.1/DeveloperGuide/text/HR/JetsonModuleAdaptationAndBringUp/JetsonXavierNxSeries.html?highlight=universal%20serial%20bus#porting-universal-serial-bus

If remove the usb3 lanes or ports of the device-tree. the HUB chip can’t detect anything.
BUT there is only adjust change for the nvidia,usb2-companion=<0>.

usb3-2 {
nvidia,usb2-companion = <0>;
// nvidia,usb2-companion = <1>;
status = “okay”;
};
the HUB chip (RTS5411) USB2.0 function can working (usb1-2.1, usb1-2.2, usb1-2.3, usb1-2.4). usb3.0 function disabled
this is the my USB device topology
USB_topology
why I disabled the usb3.0
① the hub chip usb3.0 hub function can’t work(I don’t know why ,maybe drivers ) .mapping the usb2-port3: usb3.2 HUB
② I also used usb2.0- port2 mapping the usb1-3 . somtime ,usb2.0-port2 can’t detect . and HOTplug the usb2.0-port2 , the error message : usb2–port3 cannot enable…


NOW the usb2.0- port2 work well

請你提供一下usb schematic 還有目前完整的dts.

你的敘述聽起來像是你要把所有usb3.0功能的 port都關掉… 但是你的圖看起來不太像… 如果我們的理解有誤的話看你要不要用中文重新講一次你的問題.

确实我这个有点复杂:
① 我用的 HUB chip RTS5411 . 下游接的 4个 usb3.0 端口。只能工作在 USB2.0 模式。
② 用 lsusb 查看 该芯片: usb2.1 hub 加载成功了。 usb3.1 hub 没加载成功如下图1所示, 图2为正常加载结果。

③ usb2.0,PORT1 我接了个 HUB . USB2.0 PORT2 我直接引出来,也要用。 但是 USB2.0-port2 有时不能正常使用,开机后识别不到设备。 热插拔的时候 还报错: usb2–port3 cannot enable…… (USB2-PORT3 其实对应的是 USB HUB 芯片 的USB3.1 HUB).
④ 在热 插拔 USB2.0-PORT2 不知为啥 系统报 usb3.0 的错 。 我觉得是驱动识别错误。
⑤ 我 就在 模组中 disabled 的 USB3.0 端口。让驱动 不识别 USB hub 芯片的 USB3.0 接口,只让芯片工作在 USB2.0 模式。
⑥ 现在 disalbed 后 ,USB2.0-PORT2 热插拔和上电都能正常工作,没有报错。
⑦ 设备树中 disabled 的 usb3.0 , 在 PADS 和 ports 中改, HUB 芯片直接不工作了了。 现在只能 设置 nvidia,usb2-companion = <0>; 用这种方式 禁止 驱动识别 HUB 芯片的 USB3.0 端口。

請問完整的dts能否提供? 還有完整的dmesg

麻煩所有檔案都直接貼文件檔 不要用截圖.

no_change_device_tree_boot.msg (69.7 KB)

tegra194-p3668-common_changed.dtsi (13.8 KB)

請你把沒有在用的usb ports/pads都先disable

不太懂逻辑。现在 5个 USB 口。 HUB 上 4 加一个 模组 直接引出来的 USB2.0-PORT2 . 5 个USB 口都在用 。问题是 ① HUB 不能工作在 USB3.0 模式。② USB2.0-PORT2 有时上电识别不到设备,开机后热插拔 报错 :usb2–port3 cannot enable…… 有时 USB2.0-PORT2能正常使用.

厄… jetson並不在乎你底下的端口有幾個usb port. 假如說你的usb hub 外面有10個usb口. 對於jetson而言也不重要 對jetson就只看到你接出來的3個pin而已. 一個usb3 跟兩個usb2.

麻煩你自己先讀一下你自己分享的device tree長怎樣. 搭配我們前面給的文件… 這部份要先對 如果後面還有問題那就等修正完這部份之後再說.

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