From owner-freebsd-usb@FreeBSD.ORG Fri Nov 27 23:10:03 2009 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FD121065694 for ; Fri, 27 Nov 2009 23:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DAC6F8FC17 for ; Fri, 27 Nov 2009 23:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nARNA2X2001857 for ; Fri, 27 Nov 2009 23:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nARNA2Eu001856; Fri, 27 Nov 2009 23:10:02 GMT (envelope-from gnats) Resent-Date: Fri, 27 Nov 2009 23:10:02 GMT Resent-Message-Id: <200911272310.nARNA2Eu001856@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Romain Tartiere Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3BAF106566B for ; Fri, 27 Nov 2009 23:09:04 +0000 (UTC) (envelope-from romain@blogreen.org) Received: from marvin.blogreen.org (unknown [IPv6:2a01:e35:2f7d:58c0::2]) by mx1.freebsd.org (Postfix) with ESMTP id 50D858FC12 for ; Fri, 27 Nov 2009 23:09:04 +0000 (UTC) Received: by marvin.blogreen.org (Postfix, from userid 1001) id 49C2B15E8D; Sat, 28 Nov 2009 00:09:03 +0100 (CET) Message-Id: <20091127230903.49C2B15E8D@marvin.blogreen.org> Date: Sat, 28 Nov 2009 00:09:03 +0100 (CET) From: Romain Tartiere To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/140951: [usb uftdi] Add support for FT2232D Dual USB UART/FIFO I.C. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Romain Tartiere List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Nov 2009 23:10:03 -0000 >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: