g_serial

Linux USB gadget serial driver.

On the device-side Linux system, the gadget serial driver looks like a serial device.
On the host-side system, the gadget serial device looks like a CDC ACM compliant class device or a simple vendor specific device with bulk in and bulk out endpoints, and it is treated similarly to other serial devices.
 

See also