From owner-freebsd-usb@freebsd.org Sun Jul 24 19:12:39 2016 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B8A6BA2131 for ; Sun, 24 Jul 2016 19:12:39 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC05E1957 for ; Sun, 24 Jul 2016 19:12:38 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: b6b52ae4-51d2-11e6-a0ff-e511cd071b9b X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.34.117.227 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sun, 24 Jul 2016 19:13:32 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.14.9) with ESMTP id u6OJCZ5e014060; Sun, 24 Jul 2016 13:12:35 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1469387555.84197.48.camel@freebsd.org> Subject: Re: Digi Watchport/T temperature sensor as /dev/ttyU From: Ian Lepore To: Warner Losh , Kevin Oberman Cc: FreeBSD CURRENT , "O. Hartmann" , "freebsd-usb@FreeBSD.org" Date: Sun, 24 Jul 2016 13:12:35 -0600 In-Reply-To: References: <20160722183556.2fc39fd7.ohartman@zedat.fu-berlin.de> <1469206374.84197.14.camel@freebsd.org> <20160723220430.34ce02fe.ohartman@zedat.fu-berlin.de> <1469306951.84197.31.camel@freebsd.org> <20160724080330.3a27e875.ohartman@zedat.fu-berlin.de> <20160724083859.4c0dd392@ernst.home> <20160724105134.184f0b7f.ohartman@zedat.fu-berlin.de> <1469379334.84197.40.camel@freebsd.org> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2016 19:12:39 -0000 On Sun, 2016-07-24 at 12:52 -0600, Warner Losh wrote: > On Sun, Jul 24, 2016 at 12:42 PM, Kevin Oberman > wrote: > > There are several different USB serial drivers. Off-hand I see > > ubser, ubsa, > > uchcom, ucom, ucycom, uftdi, ubgensa, umcs, umct, umoscom, uplcom, > > usb_serial, uslcom, and uvscom. Whether any of these will support > > the TI > > chip, I can't say. Most have man pages, but a few, as has been > > noted, are > > lacking one. > > I tried to automate discovery of these things. However, the only way > you can really know for sure about the TI chip is to read it's > datasheet > and compare that with extant drivers. It's actually easier than it > sounds. > > I've often thought of unification of the TTY USB drivers, since they > are > most (but not all) based on the standard plus extra bits. > > Warner To reiterate: we do not have a driver for TI 5052 chips. It's not much like other usb-serial chips. In fact it's not strictly a usb-serial chip, it's a multifunction chip that includes a software -controllable usb hub, 2 serial ports, gpio, an i2c bus master, an MCU interface, a multichannel DMA controller, and apparently even has the ability to download your own 8052-compatible microcontroller code into the 5052 and have it take over from the built-in rom code. It would be reasonable enough to write a driver that initially supported only the uart part of the chip. -- Ian