Usb2 cannot be used in custom carrier board

background
: TX2 JETPACK 4.2 custom carrier board
questions:
I added the patch using the instructions in the link “https://elinux.org/Jetson/TX2_USB”, it make usb0 and usb1 work, but usb2 can not be used.

Patching the DTS
If you wish to patch and re-compile
your own Device Tree Source (DTS), you can do it by enabling battery_reg option in the source.

First, change the supply with battery_reg using the .dtsi file located at:

[TX2]
hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-power-tree-p3310-1000-a00-00.dtsi
[TX2i]
hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-power-tree-p3489-1000-a00-00.dtsi
Change vbus-2-supply from vdd_usb2_5v to battery_reg. The modifications are as follows:

pinctrl@3520000 {
vbus-0-supply = <&vdd_usb0_5v>;
vbus-1-supply = <&vdd_usb1_5v>;
- vbus-2-supply = <&vdd_usb2_5v>;
+ vbus-2-supply = <&battery_reg>;
vbus-3-supply = <&battery_reg>;
vddio-hsic-supply = <&battery_reg>;
avdd_usb-supply = <&spmic_sd3>;
vclamp_usb-supply = <&spmic_sd2>;
avdd_pll_erefeut-supply = <&spmic_sd2>;
};
Then, regenerate the DTB and flash with the correct DTB.
dmesg.log (63.1 KB)
dtc.log (76.7 KB)

extracted.dts.txt (462 KB)

Hi,
You need to modify device tree per your custom board. Please refer to adaptation guide for r32:

And below posts:
[url]https://devtalk.nvidia.com/default/topic/1057885/jetson-tx2/usb-not-working-in-jetson-tx2-r32-2/post/5364464/#5364464[/url]
[url]How to setup USB config#4 for TX2 l4t 28.2.1? - Jetson TX2 - NVIDIA Developer Forums

Since I am now A dp and hdmi dual output, I would like to modify it based on “tegra186-quill-p3310-1000-*-00-dsi-hdmi-dp.dts”

1、In "source_code\hardware\nvidia\platform\t18x\quill\kernel-dts
" folder, there have a lot of dts file
“tegra186-quill-p3310-1000-a00-00-dsi-hdmi-dp.dts” and "tegra186-quill-p3310-1000-c03-00-dsi-hdmi-dp.dts"which one is need to be modify?

2、In “JetPack4.2\sdkmanage\nvidia_sdk\JetPack_4.2_Linux_P3310\Linux_for_Tegra\p2771-0000-dsi-hdmi-dp.conf”
file, it specified to be used “tegra186-quill-p3310-1000-a00-00-dsi-hdmi-dp.dtb”.After I compiled the new device tree with the source code,How do I update the device tree?

1.Do you have the block diagram of the chip, Same as this attachment? I was like a blind man trying to map the device line
2.my usb2 doesn’t work, is there anything wrong with my device tree?


extracted.dts.txt (444 KB)

Hi,
For display issue, you may make a new post for clearness. Keep this for the USB issue.

For the USB issue, you have three USB2 type A ports on your custom board? usb2-0 is B39, B40, usb2-1 is A38, A39 and usb2-0 is B42, B43? What are the VBUS pins?
We have clear guidance in adaptation and oem design guide. Please spend some time taking a look.