Hi
We want to use the OTG function in S32G,
Firstly, we use the default dts configuration(host mode only), it seems that the device was detected successfully.
QA2: OTG-Device Mode
When we use the normal microUSB -> TypeA cable(not OTG Cable) and connect to computer,
from debug sysfs, it seems that the mod was changed to gedget mode,
but nothing message output to dmesg and the computer(windows 11) no any response.
So could you tell us if we make mistake somewhere and how to fix it?
thank you.
Env.
CPU S32G274A
Soft BSP33.0 ( yocto fsl-auto make ARCH=arm64 s32gen1_defconfig )
已解决! 转到解答。
Hi @StanleyShen,
I discussed with the internal team and knew that the OTG feature is not supported currently in BSP and there is no plan to develop it.
Thanks,
Mayank s Patel
Hi @StanleyShen,
Hope you are doing well.
Have you checked the same functionality in previous BSP Versions?
Previous and current BSP versions are behaving the same?
Thanks,
Mayank s Patel
Have you checked the same functionality in previous BSP Versions
No, I haven't do it before. But I can try BSP30.0 today.
Hi @StanleyShen,
I discussed with the internal team and knew that the OTG feature is not supported currently in BSP and there is no plan to develop it.
Thanks,
Mayank s Patel
That's too bad, but thank you for your confirmation.
BTW,
can you provide some suggestions on how to investigate this issue?
Hi @StanleyShen,
I am sorry, to inform you but I can't really help you with this as the feature is not developed.
you can contact the sales team to point out the feature and its developement.
Thanks,
Mayank s Patel
No, I haven't do it before. But I can try BSP30.0 today.
I am sorry, since we are unable to download the code for BSP30.0 normally,
I am unable to confirm the behavior of BSP30.0,
BTW:
Have you received any response from your internal team about this issue.
When I changed the dr_mode to peripheral as blow:
replace the s32g274a-rdb2.dtb and restart the S32G-VNP-RDB2, after plug USB-A to Micro-B cable and connect it to PC,
flowing message ware output to dmesg
and in the PC side, unkown device was detected
Hi @StanleyShen,
I have created a ticket with the internal team to discuss the case.
I will let you know once I received a response from the team.
Thanks,
Mayank s Patel
> But we tried to change it to OTG mode, the OTG cable(BUS) was detecded and the device was not
For OTG Host mode, I did some research on the driver code.
when OTG cable was plugged, the
hub_irq->hub_event would be executed and a new hub was detected as a new device,
but after it, when the USB device was plugged, the hub_irq not called.
Hi @StanleyShen,
Hope you are doing well.
I have seen the device-tree image attached by you and found that in USB dr_mode=host needs to be defined for OTG Support as the board would be the host for the pen drive you are going to access.
Change it in the device-tree and check if it is detecting or not.
Thanks,
Mayank s Patel
Hi Mayank
As you see in my thread, I have already changed dr_ The mode to OTG, but it still does not work properly.
both Host role and device role are failed(Pls refer to the description of QA1 and QA2)
thinks