jetson Orin Nx 3 路USB3.0 不能使用

发布时间:2023年12月19日

刚拿到的 jetson Orin Nx 3 路USB3.0 不能使用

只能使用USBSS0
USBSS1和USBSS2 不能使用。

++++++++++++++++++++++++
问题解决思路请看下面
++++++++++++++++++++++++

++++++++++++++++++++++++
只有看了前面的文章才可以看下面
++++++++++++++++++++++++

++++++++++++++++++++++++
看了上面的问题,才可以阅读下面
++++++++++++++++++++++++

++++++++++++++++++++++++
可以阅读下面了,因为你看了前面的文章
++++++++++++++++++++++++

问题解决思路是:

查看设备树发现没有使能。替换我下面的设备树就可以使用了

在下面设备树,替换 下面 节点中的代码

hardware/nvidia/platform/t23x/p3768/kernel-dts/cvb/tegra234-p3509-a02.dts
	xusb_padctl: 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-0 {
						nvidia,function = "xusb";
						status = "okay";
					};
					usb3-1 {
						nvidia,function = "xusb";
						status = "okay";
					};
        
					usb3-2 {
						nvidia,function = "xusb";
						status = "okay";
					};
				};
			};
		};

		ports {
			usb2-0 {
				mode = "otg";
				status = "okay";
                                vbus-supply = <&p3509_vdd_5v_sys>;
#if TEGRA_XUSB_DT_VERSION >= DT_VERSION_3
				usb-role-switch;
				connector {
					compatible = "usb-b-connector", "gpio-usb-b-connector";
 					label = "micro-USB";
 					type = "micro";
 					vbus-gpio = <&tegra_main_gpio TEGRA234_MAIN_GPIO(Z, 1) GPIO_ACTIVE_LOW>;
 				};
#endif
			};
			usb2-1 {
				mode = "host";
                vbus-supply = <&p3509_vdd_av10_hub>;
				status = "okay";
			};
			usb2-2 {/* Goes to M2.E */
				mode = "host";
                vbus-supply = <&p3509_vdd_5v_sys>;
				status = "okay";
			};
			usb3-0 {
				nvidia,usb2-companion = <1>;
				status = "okay";
			};
			usb3-1 {
				nvidia,usb2-companion = <0>;
				status = "okay";
			};
			usb3-2 {
				nvidia,usb2-companion = <2>;
				status = "okay";
			};
		};
	};
	
	tegra_xudc: xudc@3550000 {
		status = "okay";
		phys = <&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-0}>,
		<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-1}>;
		phy-names = "usb2-0","usb3-1";
		nvidia,xusb-padctl = <&xusb_padctl>;
		nvidia,boost_cpu_freq = <1200>;
		
	};

	tegra_xhci: xhci@3610000 {
		status = "okay";
		phys = <&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-1}>,
			<&{/xusb_padctl@3520000/pads/usb2/lanes/usb2-2}>,
			<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-0}>,
			<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-1}>,
			<&{/xusb_padctl@3520000/pads/usb3/lanes/usb3-2}>;
		phy-names = "usb2-1", "usb2-2","usb3-0","usb3-1","usb3-2";
		nvidia,xusb-padctl = <&xusb_padctl>;
	};
文章来源:https://blog.csdn.net/qq_31057589/article/details/128816709
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。