cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP257F-DK USB Type-C OTG Operation Issue with OpenSTLinux (A35 Only)

jhkim
Associate II

Dear STMicroelectronics Support Team,

I am working with the STM32MP257F-DK board and using OpenSTLinux. In my setup, I am only using the Cortex-A35 (MPU) without any firmware running on the Cortex-M33 (MCU). I am trying to enable USB OTG functionality using the USB3.0 DRD port via the USB Type-C connector (CN15).

My goal is to enable dual-role OTG behavior (host/device) using only the A35 core and Linux kernel.

 

I would like to ask:

1. How can I properly enable and configure the USB OTG mode using the USB3.0 DRD port in this configuration?

2. Is it possible to manually switch between host, device, and OTG modes through the Linux kernel (e.g., via sysfs or configfs interfaces)?

3. Do I need to load any additional drivers, userspace daemons (such as usb-role-switch), or enable MCU firmware to support role switching?

4. Is automatic role detection via the Type-C controller supported purely in A35/Linux setup, or is MCU firmware required?

 

The device tree includes usb-role-switch and a usb-c-connector, and the DRD port is active. However, the role switching does not occur automatically when connecting devices, and the system remains in device mode.

Any guidance on how to proceed or debug this issue would be greatly appreciated.

0 REPLIES 0