From nobody Mon Nov 29 08:16:31 2021 X-Original-To: hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4206F18B22C5 for ; Mon, 29 Nov 2021 08:17:14 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (2403-5800-5200-4700-225-90ff-fe47-39b4.ip6.aussiebb.net [IPv6:2403:5800:5200:4700:225:90ff:fe47:39b4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "dons.net.au", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2dVx5Gbxz3kGq for ; Mon, 29 Nov 2021 08:17:13 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.16.1/8.16.1) with ESMTPS id 1AT8Gvjx022382 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Mon, 29 Nov 2021 18:46:58 +1030 (ACDT) (envelope-from darius@dons.net.au) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dons.net.au; s=default; t=1638173828; bh=j6R0kyU4q+XuVCeFLkJLfFnU3TOoLqFHVxzMrDZzJ90=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=VqhP+5I0hrkqAJ9nTBHzprhErBZp7G8xgII6xhZbAQ+sE8KWRDclA9hXrRaoHRH0p Y3iSZ9cuA6cb9/pXcssYgkzDrkwGdocNxbPKhWKYRzP9//deo1upv0MAoktNIFNfhU mNdtO3RdxUKRgMgGnTsAZItWOpTSCGTcHNi9rKmo= Received: (from mailnull@localhost) by midget.dons.net.au (8.16.1/8.16.1/Submit) id 1AT8GVSr022352 for ; Mon, 29 Nov 2021 18:46:31 +1030 (ACDT) (envelope-from darius@dons.net.au) X-MIMEDefang-Relay-f0f0b4ff001831caa5b8ac39868c4c7e9b4d12fc: 2403:5800:5200:4700:45dc:652d:ba89:512b Received: from smtpclient.apple (2403-5800-5200-4700-45dc-652d-ba89-512b.ip6.aussiebb.net [2403:5800:5200:4700:45dc:652d:ba89:512b]) by 2403-5800-5200-4700-225-90ff-fe47-39b4.ip6.aussiebb.net (envelope-sender ) (MIMEDefang) with ESMTP id 1AT8GV6j022347; Mon, 29 Nov 2021 18:46:31 +1030 Content-Type: text/plain; charset=utf-8 List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: usb serial - need quirk? In-Reply-To: Date: Mon, 29 Nov 2021 18:46:31 +1030 Cc: freebsd- Content-Transfer-Encoding: quoted-printable Message-Id: References: <11EBCD70-3259-4E4D-8B9C-9F25364BC73C@cs.huji.ac.il> <20F9C20E-BB89-4FC1-A339-171447368AD2@dons.net.au> To: Daniel Braniss X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Spam-Score: 0.8 () No, score=0.8 required=5.0 tests=KHOP_HELO_FCRDNS, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.4 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 4J2dVx5Gbxz3kGq X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: darius@dons.net.au From: Daniel O'Connor via hackers X-Original-From: Daniel O'Connor X-ThisMailContainsUnwantedMimeParts: N > On 29 Nov 2021, at 18:09, Daniel Braniss wrote: >=20 >> On 29 Nov 2021, at 09:24, Daniel O'Connor wrote: >>=20 >> I had a look at the ESP32-C3 datasheet and it *does* have a USB = interface built in and it talks about a CDC-ACM virtual serial port = which matches what you see. >>=20 >> The only ACM quirk I can see is UQ_ASSUME_CM_OVER_DATA so you could = try that I suppose.. >=20 >=20 >> (See the usb_quirk man page) >>=20 > i=E2=80=99ll try this ASAP, thanks >=20 > BTW, looking at the m5 stamp c3 diagram, I can=E2=80=99t see how the = usb-typec is connected to the esp32c3 > from the esp32c3 docs, it=E2=80=99s gpio9 that needs to be grounded to = flash, and I don=E2=80=99t see that happening when > using the onboard usb. > oh well, The schematic at = https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/static/assets/i= mg/product_pics/core/stamp_c3/stamp_c3_sch_01.webp it has a CH9102F and = some googling suggests it presents as a CDC ACM device. It looks like it has RTS and DTR hooked up so they can reset and drive = GPIO9 for programming. Unfortunately I can't see anything obvious about why it doesn't work :( -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum