[Bug 272803] uchcom(4) does not support ch343, or ch34[2347]

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 30 Jul 2023 00:58:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272803

            Bug ID: 272803
           Summary: uchcom(4) does not support ch343, or ch34[2347]
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: usb
          Assignee: usb@FreeBSD.org
          Reporter: trombik1973@gmail.com

the ch343 chip is relatively new, but recent unofficial ESP32 dev boards, such
as WeAct Studio ESP32-C6 and ESP32-S3 Core, use the chip. according to the
linux source, there are other models, ch910[1234] as well. the kernel detects
it as a CDC device, but flashing does not work. reading serial output works.

ch341 linux driver: https://www.wch-ic.com/downloads/CH341SER_LINUX_ZIP.html
ch343 linux driver: https://github.com/WCHSoftGroup/ch343ser_linux/

dmesg and dump_device_desc:

Jul 30 07:44:09 t480s kernel: ugen0.6: <vendor 0x1a86 USB Single Serial> at
usbus0
Jul 30 07:44:09 t480s kernel: umodem0 on uhub1
Jul 30 07:44:09 t480s kernel: umodem0: <vendor 0x1a86 USB Single Serial, class
2/0, rev 1.10/4.45, addr 5> on usbus0
Jul 30 07:44:09 t480s kernel: umodem0: data interface 1, has no CM over data,
has no break

ugen0.6: <vendor 0x1a86 USB Single Serial> at usbus0, cfg=0 md=HOST spd=FULL
(12Mbps) pwr=ON (138mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0110 
  bDeviceClass = 0x0002  <Communication device>
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0008 
  idVendor = 0x1a86 
  idProduct = 0x55d3 
  bcdDevice = 0x0445 
  iManufacturer = 0x0000  <no string>
  iProduct = 0x0002  <USB Single Serial>
  iSerialNumber = 0x0003  <5577032363>
  bNumConfigurations = 0x0001

-- 
You are receiving this mail because:
You are the assignee for the bug.