*** Please note that this reply is generated by LLM automatically ***
To address the issue of the Jetson AGX Orin device not being detected by the PC when trying to enter USB client mode without checking the VBUS detect pin R696, we need to modify the SDK to allow J40 Type-C to enter USB client mode without relying on the voltage status from R696.
The issue arises because the default configuration of the Jetson AGX Orin device requires the VBUS detect pin R696 to be asserted before entering USB client mode. However, in your setup, you want to bypass this requirement and allow the device to enter USB client mode without checking the VBUS detect pin.
To achieve this, you need to modify the device tree configuration of the Jetson AGX Orin device. The device tree is a data structure that describes the hardware components of the system, including the USB ports.
Here are the steps to modify the device tree configuration:
-
Obtain the device tree source files: You can obtain the device tree source files from the NVIDIA Jetson Linux Developer Guide. The files are usually located in the hardware/nvidia/soc/t19x/kernel-dts directory.
-
Modify the device tree configuration: Open the tegra194.dtsi file and locate the usb@3550000 node, which corresponds to the USB controller. Within this node, you need to modify the vbus-detect property to disable the VBUS detect pin R696.
Before modification:
usb@3550000 {
…
vbus-detect = <&gpio TEGRA194_MAIN_GPIO(P, 6) GPIO_ACTIVE_HIGH>;
…
};
After modification:
```c
usb@3550000 {
...
vbus-detect = <&gpio TEGRA194_MAIN_GPIO(P, 6) GPIO_ACTIVE_LOW>;
...
};
Alternatively, you can also remove the `vbus-detect` property altogether to disable the VBUS detect pin R696.
-
Recompile the device tree: After modifying the device tree configuration, you need to recompile the device tree binary using the dtc compiler.
dtc -I dts -O dtb -o tegra194.dtb tegra194.dts
4. **Flash the modified device tree**: Flash the modified device tree binary to the Jetson AGX Orin device using the `flash.sh` script.
```bash
sudo ./flash.sh -k kernel-dtb jetson-agx-orin-emc mmcblk0p1
After modifying the device tree configuration and flashing the modified device tree binary, your Jetson AGX Orin device should be able to enter USB client mode without checking the VBUS detect pin R696.
Comparison with other Jetson devices:
The modification described above is specific to the Jetson AGX Orin device. If you are using other Jetson devices, such as the Jetson Xavier NX or Jetson Nano, you may need to modify the device tree configuration differently.
For example, on the Jetson Xavier NX, the USB controller is located at usb@3550000, and the vbus-detect property is located within the usb@3550000 node. However, the pin configuration may differ.
On the Jetson Nano, the USB controller is located at usb@700900, and the vbus-detect property is located within the usb@700900 node. Again, the pin configuration may differ.
Therefore, it is essential to consult the device tree documentation for your specific Jetson device to determine the correct modification.
Conclusion:
By modifying the device tree configuration, you can enable the Jetson AGX Orin device to enter USB client mode without checking the VBUS detect pin R696. This modification allows you to use the device in USB client mode without relying on the voltage status from R696.
*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***