From nobody Fri Sep 20 22:07:54 2024 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 4X9RMz5lx3z5XQDT for ; Fri, 20 Sep 2024 22:07:59 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx-01.divo.sbone.de (mx-01.divo.sbone.de [IPv6:2003:a:140a:2200:6:594:fffe:19]) (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-256) client-digest SHA256) (Client CN "mx-01.divo.sbone.de", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X9RMz2ptyz515x for ; Fri, 20 Sep 2024 22:07:59 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by mx-01.divo.sbone.de (Postfix) with ESMTPS id 4035EA64806; Fri, 20 Sep 2024 22:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zabbadoz.net; s=20240622; t=1726870074; bh=6lRpc0qWzKIO+By90dc4gOCzRbX4TBigYfeq8UVkoUM=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=QoatcALVFYCQEx3XCbk6cljX9NijsIYVU8TAU+cdVCW9ljVl65GIlk/LFCQyTtaPk oQYWZn0OeDYXnS2dcq89JTlborlhgcwQZL/XKqA+Z5u6MSKf44XPWLgdfYwaZHb6hp lurPxtztSY+BRuv3pymy6M5o6K1ABVKr93Fz4qzTI+dmecnZT6iUguF75WfpE+yLdu z6SrxHbAJ3rXAZxnnV3TbqLJ3sPI289MorC9m9WtVBq7jxpNRCtWZPmfMr9K0W8Qw9 qCIJfKCj/bG9OX/vB8UcJssD1bmw5LOwDxWVpmGEQkq0CzncEyUvuoBxWAstcrw6s+ aiZBWoLK31hD+PYwdzSsjXnRvln6evhhWPMFbN+Kc4e0L5qUNbGmgsGwVVwV/5RXv9 Eodnf+617rJrXkYEyeAelrv5BtQmzCKo3vMwI6J37BY0BQnQI2zAN+Bz7ezFukOOjP jr8G3lfjLawFAhAIPZpk33Nd04zun8CMtdESNavLhPt6dZLafVAOT94Gmqkn7ketHB Dip4ryUR0IgJMMB4XQZx9dAd43X0F90QKpfIHbB50jbNB8RkbNxVQAlfhoQtmd3kRp k+I5AXgHAIvaBn3iYE1Bvv5xVjvYqUxon/KWZ6NpTPCv94RmRafOF2oIeRkYKts48b kg9sBkdv+SVdIl5OmiX6d1A8= Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 9DF622D029D8; Fri, 20 Sep 2024 22:07:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id FmYg0tCfSMu4; Fri, 20 Sep 2024 22:07:56 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 9A93C2D029D2; Fri, 20 Sep 2024 22:07:56 +0000 (UTC) Date: Fri, 20 Sep 2024 22:07:54 +0000 (UTC) From: "Bjoern A. Zeeb" To: Warner Losh cc: "freebsd-hackers@freebsd.org" Subject: Re: gpio pins -> tty/cua device In-Reply-To: Message-ID: References: X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 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 Content-Type: multipart/mixed; boundary="1098556516-1040502058-1726870074=:5181" X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:3320, ipnet:2003::/19, country:DE] X-Rspamd-Queue-Id: 4X9RMz2ptyz515x X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1098556516-1040502058-1726870074=:5181 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 20 Sep 2024, Warner Losh wrote: > On Fri, Sep 20, 2024, 10:49 PM Bjoern A. Zeeb < > bzeeb-lists@lists.zabbadoz.net> wrote: > >> Hi. >> >> I have one/two GPIO pins for RX/TX (possibly on two controllers) which >> on the other end have a serial console which I would love to read/wwrite >> to. >> >> Do we have any glue which takes two GPIO pins and present them as tty/cua >> device? >> > > No. We don't do serial emulation through software. You need high precision > timers paired with it to even start. And input bytes are way harder to get > right. Likely need a dedicated thread for any decent data rates. What speed > were you hoping for? Default of this thing is 115200 ; in theory it can be changed but probably not initially in my case today. Background is that some SFPs expose their (embedded u-boot/Linux) serial console on two PINs (which may be overlayed with other SFF functionality which makes this all tricky). I am just trying to find a way for remote debugging without hands on given one of the SFPs went haywire. So more helpful if future HW revisions would have these pins on a header and a USB adapter could be attached or if they were alternatively routed to an intenral UART of the SoC and one could switch them back and forth or something? /bz -- Bjoern A. Zeeb r15:7 --1098556516-1040502058-1726870074=:5181--