Date: Fri, 20 Sep 2024 22:07:54 +0000 (UTC) From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> To: Warner Losh <imp@bsdimp.com> Cc: "freebsd-hackers@freebsd.org" <hackers@freebsd.org> Subject: Re: gpio pins -> tty/cua device Message-ID: <rn7sr193-r318-163r-404p-9oon889pq2n4@yvfgf.mnoonqbm.arg> In-Reply-To: <CANCZdfr70CsutBZ_eUP1dRK_6XFgjpZCKZaWf6LFMF8m1iwkRA@mail.gmail.com> References: <pp20o9o7-7937-o09n-or3n-4rp409q13q46@yvfgf.mnoonqbm.arg> <CANCZdfr70CsutBZ_eUP1dRK_6XFgjpZCKZaWf6LFMF8m1iwkRA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?rn7sr193-r318-163r-404p-9oon889pq2n4>