From nobody Thu Apr 28 15:16:56 2022 X-Original-To: freebsd-arm@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 41A901AA8D53 for ; Thu, 28 Apr 2022 15:17:04 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kpzk72RMrz4XCP for ; Thu, 28 Apr 2022 15:17:03 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mp2.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by mailhost.netlabit.sk with ESMTPSA; Thu, 28 Apr 2022 17:17:01 +0200 id 00DADC5D.626AAFED.0000258F Date: Thu, 28 Apr 2022 17:16:56 +0200 From: Milan Obuch To: freebsd-arm@freebsd.org Subject: Re: uart1 Message-ID: <20220428171656.0922112a@mp2.dino.sk> In-Reply-To: <20220428151142.5c08cdec@thinkbook> References: <20220428151142.5c08cdec@thinkbook> X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Kpzk72RMrz4XCP X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-arm@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-arm@dino.sk X-Spamd-Result: default: False [-1.45 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dino.sk]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROMTLD(0.00)[]; NEURAL_SPAM_SHORT(0.85)[0.846]; MLMMJ_DEST(0.00)[freebsd-arm]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 28 Apr 2022 18:11:42 +0300 Nick Kostirya wrote: > Hello. > > How use uart1? > > I want use MCU wiht UART interface on NanoPI NEO. > > I use overlay: > > /dts-v1/; > /plugin/; > > / { > compatible = "allwinner,sun8i-h3"; > }; > > &uart1 { > status = "okay"; > }; > > > # dmesg -a | grep uart > uart0: <16750 or compatible> mem 0x1c28000-0x1c283ff irq 35 on > simplebus0 uart0: console (115384,n,8,1) > uart1: <16750 or compatible> mem 0x1c28400-0x1c287ff irq 36 on > simplebus0 > > FreeBSD 12.2-STABLE > > > For test I connect two NanoPI NEO by help RX-TX. > > On first boart I run > cu -l /dev/ttyu1 > > On second boart I run > cu -l /dev/cuau1 > > But I cannot write on first and on second board. > When I did something similar, I used /dev/cuauN on both sides of connection. Maybe you should try it that way as well. Regards, Milan