Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Nov 2009 00:09:03 +0100 (CET)
From:      Romain Tartiere <romain@blogreen.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   usb/140951: [usb uftdi] Add support for FT2232D Dual USB UART/FIFO I.C.
Message-ID:  <20091127230903.49C2B15E8D@marvin.blogreen.org>
Resent-Message-ID: <200911272310.nARNA2Eu001856@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140951
>Category:       usb
>Synopsis:       [usb uftdi] Add support for FT2232D Dual USB UART/FIFO I.C.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 27 23:10:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Romain Tartiere
>Release:        FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD marvin.blogreen.org 8.0-STABLE FreeBSD 8.0-STABLE #2 r199851M: Fri Nov 27 03:40:46 CET 2009 root@marvin.blogreen.org:/usr/obj/usr/src/sys/MARVIN amd64

>Description:

The OpenRD [1] board features a FT2232D chip for USB communication.  It is not recognized by the UFTDI(4) driver.  The attached patch adds support for this device (according to the documentation it is pin to pin compatible with the FT2232C chip, so I hope they can speak the same way).

Tested on FreeBSD 8.0-STABLE, with an OpenRD board (devices /dev/cuaU[01]* appeared, the one corresponding to the console working as expected).

References:
  1. http://www.open-rd.org/

>How-To-Repeat:
	
>Fix:

	

--- SERIAL_2232D.patch begins here ---
Index: sys/dev/usb/serial/uftdi.c
===================================================================
--- sys/dev/usb/serial/uftdi.c	(révision 199868)
+++ sys/dev/usb/serial/uftdi.c	(copie de travail)
@@ -221,6 +221,7 @@
 	{USB_VPI(USB_VENDOR_DRESDENELEKTRONIK, USB_PRODUCT_DRESDENELEKTRONIK_WIRELESSHANDHELDTERMINAL, UFTDI_TYPE_8U232AM)},
 	{USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_8U100AX, UFTDI_TYPE_SIO)},
 	{USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_2232C, UFTDI_TYPE_8U232AM)},
+	{USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_2232D, UFTDI_TYPE_8U232AM)},
 	{USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_8U232AM, UFTDI_TYPE_8U232AM)},
 	{USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SERIAL_8U232AM4, UFTDI_TYPE_8U232AM)},
 	{USB_VPI(USB_VENDOR_FTDI, USB_PRODUCT_FTDI_SEMC_DSS20, UFTDI_TYPE_8U232AM)},
Index: sys/dev/usb/usbdevs
===================================================================
--- sys/dev/usb/usbdevs	(révision 199868)
+++ sys/dev/usb/usbdevs	(copie de travail)
@@ -1317,6 +1317,7 @@
 product FTDI SERIAL_8U232AM	0x6001	8U232AM Serial
 product FTDI SERIAL_8U232AM4	0x6004	8U232AM Serial
 product FTDI SERIAL_2232C	0x6010	FT2232C Dual port Serial
+product FTDI SERIAL_2232D	0x9e90	FT2232D Dual port Serial
 /* Gude Analog- und Digitalsysteme products also uses FTDI's id: */
 product FTDI TACTRIX_OPENPORT_13M 0xcc48 OpenPort 1.3 Mitsubishi
 product FTDI TACTRIX_OPENPORT_13S 0xcc49 OpenPort 1.3 Subaru
--- SERIAL_2232D.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091127230903.49C2B15E8D>