git: 8eaeaf5c4678 - main - usb: Add support for Brainboxes USB-to-Serial adapters

From: Hajimu UMEMOTO <ume_at_FreeBSD.org>
Date: Mon, 11 Nov 2024 12:15:22 UTC
The branch main has been updated by ume:

URL: https://cgit.FreeBSD.org/src/commit/?id=8eaeaf5c467866cf72701cdc34f7ab2ee3c2f123

commit 8eaeaf5c467866cf72701cdc34f7ab2ee3c2f123
Author:     Hajimu UMEMOTO <ume@FreeBSD.org>
AuthorDate: 2024-11-11 12:14:05 +0000
Commit:     Hajimu UMEMOTO <ume@FreeBSD.org>
CommitDate: 2024-11-11 12:14:05 +0000

    usb: Add support for Brainboxes USB-to-Serial adapters
    
    PR:             277482
    Reported by:    Cameron Williams
---
 sys/dev/usb/serial/uftdi.c | 18 ++++++++++++++++++
 sys/dev/usb/usbdevs        | 18 ++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/sys/dev/usb/serial/uftdi.c b/sys/dev/usb/serial/uftdi.c
index 458c6a740f7c..3b0400d9b353 100644
--- a/sys/dev/usb/serial/uftdi.c
+++ b/sys/dev/usb/serial/uftdi.c
@@ -289,8 +289,26 @@ static const STRUCT_USB_HOST_ID uftdi_devs[] = {
 	UFTDI_DEV(BBELECTRONICS, USPTL4, 0),
 	UFTDI_DEV(BBELECTRONICS, USTL4, 0),
 	UFTDI_DEV(BBELECTRONICS, ZZ_PROG1_USB, 0),
+	UFTDI_DEV(BRAINBOXES, US101, 0),
+	UFTDI_DEV(BRAINBOXES, US159, 0),
+	UFTDI_DEV(BRAINBOXES, US235, 0),
 	UFTDI_DEV(BRAINBOXES, US257, 0),
 	UFTDI_DEV(BRAINBOXES, US25701, 0),
+	UFTDI_DEV(BRAINBOXES, US279_12, 0),
+	UFTDI_DEV(BRAINBOXES, US279_34, 0),
+	UFTDI_DEV(BRAINBOXES, US279_56, 0),
+	UFTDI_DEV(BRAINBOXES, US279_78, 0),
+	UFTDI_DEV(BRAINBOXES, US313, 0),
+	UFTDI_DEV(BRAINBOXES, US320, 0),
+	UFTDI_DEV(BRAINBOXES, US324, 0),
+	UFTDI_DEV(BRAINBOXES, US346_12, 0),
+	UFTDI_DEV(BRAINBOXES, US346_34, 0),
+	UFTDI_DEV(BRAINBOXES, US701_12, 0),
+	UFTDI_DEV(BRAINBOXES, US701_34, 0),
+	UFTDI_DEV(BRAINBOXES, US842_12, 0),
+	UFTDI_DEV(BRAINBOXES, US842_34, 0),
+	UFTDI_DEV(BRAINBOXES, US842_56, 0),
+	UFTDI_DEV(BRAINBOXES, US842_78, 0),
 	UFTDI_DEV(CONTEC, COM1USBH, 0),
 	UFTDI_DEV(DRESDENELEKTRONIK, SENSORTERMINALBOARD, 0),
 	UFTDI_DEV(DRESDENELEKTRONIK, WIRELESSHANDHELDTERMINAL, 0),
diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index 9a2f6a41c499..a368cf84d9d5 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -1461,8 +1461,26 @@ product BILLIONTON USBE100	0x8511	USBE100
 product BILLIONTON USB2AR	0x90ff	USB2AR Ethernet
 
 /* Brainboxes Limited products */
+product BRAINBOXES US101	0x1011	US-101 USB2Serial 1xRS232
+product BRAINBOXES US159	0x1021	US-159 USB2Serial 1xRS232
+product BRAINBOXES US235	0x1017	US-235 USB2Serial 1xRS232
 product BRAINBOXES US257	0x5001	US-257 USB2Serial 2xRS232
 product BRAINBOXES US25701	0x5002	US-25701 USB2Serial 2xRS232
+product BRAINBOXES US279_12	0x2021	US-279 USB2Serial 8xRS232 (Port 1 and 2)
+product BRAINBOXES US279_34	0x2022	US-279 USB2Serial 8xRS232 (Port 3 and 4)
+product BRAINBOXES US279_56	0x2023	US-279 USB2Serial 8xRS232 (Port 5 and 6)
+product BRAINBOXES US279_78	0x2024	US-279 USB2Serial 8xRS232 (Port 7 and 8)
+product BRAINBOXES US313	0x6001	US-313 USB2Serial 2xRS422/485
+product BRAINBOXES US320	0x1019	US-320 USB2Serial 1xRS422/485
+product BRAINBOXES US324	0x1013	US-324 USB2Serial 1xRS422/485
+product BRAINBOXES US346_12	0x3011	US-346 USB2Serial 4xRS422/485 (Port 1 and 2)
+product BRAINBOXES US346_34	0x3012	US-346 USB2Serial 4xRS422/485 (Port 3 and 4)
+product BRAINBOXES US701_12	0x2011	US-701 USB2Serial 4xRS232 (Port 1 and 2)
+product BRAINBOXES US701_34	0x2012	US-701 USB2Serial 4xRS232 (Port 3 and 4)
+product BRAINBOXES US842_12	0x8001	US-842 USB2Serial 8xRS-422/485 (Port 1 and 2)
+product BRAINBOXES US842_34	0x8002	US-842 USB2Serial 8xRS-422/485 (Port 3 and 4)
+product BRAINBOXES US842_56	0x8003	US-842 USB2Serial 8xRS-422/485 (Port 5 and 6)
+product BRAINBOXES US842_78	0x8004	US-842 USB2Serial 8xRS-422/485 (Port 7 and 8)
 
 /* Broadcom products */
 product BROADCOM BCM2033	0x2033	BCM2033 Bluetooth USB dongle