The power supply of the custom board usb0 cannot be enabled. We only use usb0. The hardware design of the port is the same as the original. A17 (usb0_en_c), b37 (usb0_vbus_det), b39 (usb0_dp), b40 (usb0_dn), A36 (otg_id) / /, and the current situation is:
Usb0 can be used as a normal debugging port and work normally in recovery mode;
When usb0 can be connected with external power supply, it can plug in other USB devices and work normally;
If the USB 0 external device has no power supply, the device cannot be found. Is the OTG mode useless? Or when there is no external 5V power supply, the usb0 port cannot obtain power?
Our board has no power supervision chip 3221.
The software version I use is: jetpack_ 4.3_ Linux_ JETSON_ TX2I (32.3.1)
kernel:4.9.140-tegra
I have browsed, modified and tested our platform according to the link you sent, and the problem still exists:
My specific amendments are as follows:
tegra186-quill-power-tree-p3489-1000-a00-00. dts
vbus-0-supply = <&vdd_ usb0_ 5v>;
vbus-1-supply = <&vdd_ usb1_ 5v>;
vbus-2-supply = <&battery_ reg>;/* modify by */
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>;
tegra186-quill-p3489-1000-a00-00-base. Modify in DTS file:
ports {
usb2-0 {
status = “okay”;
mode = “otg”;
vbus-supply = <&vdd_ usb0_ 5v>;
nvidia,oc-pin = <0>;
};
usb2-1 {
status = “okay”;
mode = “host”;
vbus-supply = <&vdd_ usb1_ 5v>;
nvidia,oc-pin = <1>;
};
usb2-2 {
status = “okay”;
mode = “host”; /* modify by */
vbus-supply = <&battery_ reg>;
};
usb3-0 {
nvidia,usb2-companion = <1>;
status = “okay”;
};
};
Do you need to modify that place to help me enable the function of OTG??THKS
I browsed, modified and tested our platform according to the link you sent, and the problem remains:
My specific amendments are as follows:
tegra186-quill-power-tree-p3489-1000-a00-00。 dts
vbus-0-supply = <&vdd_ usb0_ 5v>;
vbus-1-supply = <&vdd_ usb1_ 5v>;
vbus-2-supply = <&battery_ reg>;/* Modification*/
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>;
tegra186-quill-p3489-1000-a00-00-base。 Modify in DTS file:
Port{
USB2-0 {
Status = “OK”;
Mode = “OTG”;
vbus-supply = <&vdd_ usb0_ 5v>;
NVIDIA, OC pin = < 0 >;
};
USB2-1 {
Status = “OK”;
Mode = “host”;
VBUS supply = < & VDD_ usb1_ 5v>;
NVIDIA, OC pin = < 1 >;
};
USB2-2 {
Status = “OK”;
Mode = “host”/* Modification*/
vbus-supply = <&battery_ reg>;
};
USB3-0 {
NVIDIA, USB2 company = < 1 >;
Status = “OK”;
};
};
Do you need to modify that place to help me enable the function of OTG?? THKS
Are you using rel-32 or rel-28 based software?
You should share the full dmesg and a dts file converted back from the dtb.
Not the current way you share code. The format is gone and information is partial. It is hard and not very precise way to check issue.
1480509296:
We only use usb0.
And you said you only use usb0 but your dts has usb2-1 and 2-2 enabled, why?
We reserve usb0 and usb1 on the board, but usb1 on our board is not welded. If it is free, I will upload the specific dmesg information to the USB file TXT; Please check the final information. thank you!!!
usb.txt (53.7 KB)
Uploading: usb0.txt…
???
The software version I use is: jetpack_ 4.3_ Linux_ JETSON_ TX2I (32.3.1)
kernel:4.9.140-tegra
Now you tell me you are using rel-28???
Sorry, it’s my fault. I made a mistake
Wayne WWW, Hello! I use the following command:
/sys/class/regulator/regulator.19# echo enable > state
[ 689.527220] tegra-xusb 3530000.xhci: port 1 over-current detected
root@ubuntu:/sys/class/regulator/regulator.19# echo disable > state
root@ubuntu:/sys/class/regulator/regulator.19# echo enable > state
The kernel information is as follows:
[ 6.990218] tegra-xusb 3530000.xhci: entering ELPG
[ 6.993503] tegra-xusb 3530000.xhci: entering ELPG done
[ 689.527220] tegra-xusb 3530000.xhci: port 1 over-current detected
[ 689.533537] tegra-xusb 3530000.xhci: exiting ELPG
[ 689.533651] tegra-xusb-padctl 3520000.xusb_padctl: tegra186_phy_xusb_handle_overcurrent: clear port 1 pin 1 OC
[ 690.093636] tegra-xusb 3530000.xhci: Firmware timestamp: 2019-07-08 19:32:42 UTC, Version: 55.15 release
[ 690.094905] tegra-xusb 3530000.xhci: exiting ELPG done
[ 693.430681] usb usb2: usb_suspend_both: status 0
[ 693.430723] tegra-xusb 3530000.xhci: entering ELPG
[ 693.435544] tegra-xusb 3530000.xhci: entering ELPG done
How do I position my problem next? Look, OTG can’t start now, but I’m not sure how to modify it?? Please give support and help. thank you.
I am waiting for your dts file updated for like 30min but I still cannot see it. Maybe you can upload it again.
No… convert dtb back to dts and share it here.
Hi,
What is the exact issue here?
Host mode problem or device mode problem?
From the phenomenon, I can’t distinguish the problems. The reason is: I plug in the USB device with external power supply and it can work normally. When I don’t connect external power supply, the USB device doesn’t work normally and I can’t find the device. However, in recovery mode, it works normally.
After you boot up the device and connect it to your host, will the host detect the jetson?