Tool/software:
Hi,
1. linux sdk 11 version;
2. Use the evm board to test the usb0, Type-C interface;
3. When a usb2.0 USB flash drive is inserted into type C, The evm board did not detect device insertion.
Regards,
Cesar
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi,
1. linux sdk 11 version;
2. Use the evm board to test the usb0, Type-C interface;
3. When a usb2.0 USB flash drive is inserted into type C, The evm board did not detect device insertion.
Regards,
Cesar
Hi Cesar,
Our expert is currently out-of-office today. Please expect a delay in response.
Regards,
Tanmay
Hi Cesar,
Sorry for the delayed response.
Can you apply the following changes in Linux :
diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts index 6169b2c9710f..ea74ab159848 100644 --- a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts @@ -668,7 +668,7 @@ p05-hog { /* P05 - USB2.0_MUX_SEL */ gpio-hog; gpios = <5 GPIO_ACTIVE_LOW>; - output-high; + output-low; }; p01_hog: p01-hog { &usb0 { - dr_mode = "otg"; + dr_mode = "host"; usb-role-switch; };
Additionally, please ensure that the DIP Switch SW2 has its pins 2 and 3 set to "0" which corresponds to Downstream Facing Port (DFP).
Regards
Gokul
Hi Gokul,
1. Your modification is incorrect. By default, it connects to usb0
gpios = <5 GPIO_ACTIVE_LOW>;
- output-high;
+ output-low;
Your configuration will actually output a high level;
I measured it with a multimeter and it indeed outputs a high level.
In this way, he will be connected USB1_HUB_DN4_D_P
2. Now I'm only making modifications
&usb0 {
- dr_mode = "otg";
+ dr_mode = "host";
usb-role-switch;
};
There is still no device-to-device insertion.
Regards,
Cesar
Hi Cesar,
NOTE: Please try switching the orientation of type C cable with and without the gpio patch as well.
Regards
Gokul
3. When a usb2.0 USB flash drive is inserted into type C, The evm board did not detect device insertion.
Hello Cesar
I tried on EVM, same scenario as you found, will investigate it
---------------------------------------------------------------
root@j722s-evm:~#
root@j722s-evm:~#
root@j722s-evm:~# lsusb -t
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
|__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 12M
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 5000M
|__ Port 001: Dev 002, If 0, Class=Hub, Driver=hub/4p, 5000M
root@j722s-evm:~#
-----------------------------
Regards
Semon
Hi Semon,
Can you try the steps I had suggested as there are issues on E3 board.
You can also use this E2E and JIRA as reference:
JIRA : LCPD-44150
Regards
Gokul
Hi Semon & Gokul,
May I ask if there are any new developments.
Regards,
Cesar
Hi Cesar,
- Can you add the gpio patch as well which I provided once and check as it is working on my end with that patch.
- Additionally, please ensure that the DIP Switch SW2 has its pins 2 and 3 set to "0" which corresponds to Downstream Facing Port (DFP).
- Also test by connecting the C type cable in both orientations(ie:connect in one orientation, then check. If not working, power off the board, change the orientation of the C type cable connected,power-on and check) as only one orientation is supported by the J722S board.
NOTE: Please try switching the orientation of type C cable with and without the gpio patch as well.
Can you try with these changes which I had suggested as it was working on my end with these changes.
Regards
Gokul