From nobody Tue Jan 10 07:35:20 2023 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 4NrjJp5rvdz2qyG8 for ; Tue, 10 Jan 2023 07:35:22 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (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 RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NrjJp3qbhz4F4X for ; Tue, 10 Jan 2023 07:35:22 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1673336121; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AtjK3JKhotWv9iqOci8TyV7QOnoc48ACDYEYdCFnKNg=; b=dNKCHH+qUn5xWZJT/l3lIp8CROrKMbG3pEGQQrNTcz2io4qWHglguvMBRJgjH4LXobwss6 R1xBS0Ce0+6fk6L0zMa0oIH3IT17cSpziKT+zPX89IDAABrfTDLoS607+/+2Bg6w0Dinfq doLKl+zqQIjJBLQhyV9lEy7SUOfYIIc= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 1bfcfff8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 10 Jan 2023 07:35:20 +0000 (UTC) Date: Tue, 10 Jan 2023 08:35:20 +0100 From: Emmanuel Vadot To: John Rushford Cc: "freebsd-arm@freebsd.org" Subject: Re: Pi 4 serial ports Message-Id: <20230110083520.4b284ec89da2c7cd8a1c8fa7@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4NrjJp3qbhz4F4X X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Hi John, On Mon, 9 Jan 2023 13:43:37 -0700 John Rushford wrote: > Greetings, >=20 > I?m running FreeBSD 13.1-RELEASE on a raspberry pi 4b rev 1.4. The pi 4 = has 4 UART ports available but as far as I can tell, FreeBSD 13.1 only supp= orts 1 of them. > I would like to use one of the other UART ports to wire an adafruit GPS b= reakout too. I tried using the UART0 port but when I wire the GPS breakout= to it,=20 > I run into boot issues with u-boot and console logging. I know that in o= ther OS?s such as raspian or ubuntu, you are able to enable the additional = UARTS in config.txt. > Thinking that FreeBSD might support this I tried adding ?dtoverlay=3Duart= x? where x is 0 to 3 but I?m not seeing in any kernel logging that these po= rts were enabled and > I don?t see any additional ttyu?s in the dev tree. >=20 > So my question, does FreeBSD support these additional UARTS and if so, ho= w do I enable them so that I may use one for the GPS breakout? >=20 > Thanks > John In the rpi-firmware package there is some uartXX.dtbo By looking at them those overlays are there for enabling the other uart port. Just put the ones you want to use on the FAT partition of your sdcard in the /overlays/ directory and add in config.txt "dtoverlay=3DuartXXX" Cheers, --=20 Emmanuel Vadot