From owner-freebsd-arm@freebsd.org Sun Jun 23 22:02:45 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A9A515ADF8C for ; Sun, 23 Jun 2019 22:02:45 +0000 (UTC) (envelope-from milan@obuch.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 3C6E2722BB for ; Sun, 23 Jun 2019 22:02:43 +0000 (UTC) (envelope-from milan@obuch.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Sun, 23 Jun 2019 23:57:32 +0200 id 00DD631A.5D0FF5CC.00006967 Date: Sun, 23 Jun 2019 23:57:32 +0200 From: Milan Obuch To: Kaya Saman Cc: freebsd-arm@freebsd.org Subject: Re: Pine64-LTS and UART ports Message-ID: <20190623235732.4439b707@zeta.dino.sk> In-Reply-To: <371fe0f0-9f91-e4ba-ff4e-8338fe9d63de@optiplex-networks.com> References: <371fe0f0-9f91-e4ba-ff4e-8338fe9d63de@optiplex-networks.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i386-portbld-freebsd11.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 3C6E2722BB X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of milan@obuch.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=milan@obuch.sk X-Spamd-Result: default: False [-5.23 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[obuch.sk]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[mail.obuch.sk]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.93)[-0.933,0]; IP_SCORE(-1.99)[ip: (-6.49), ipnet: 84.245.64.0/18(-3.24), asn: 16160(-0.27), country: SK(0.07)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jun 2019 22:02:45 -0000 On Sun, 23 Jun 2019 21:42:16 +0100 Kaya Saman wrote: > Hi, > > I've attached an RS232c converter board to UART2 on my Pine64-LTS > board. I followed the pinout diagrams from here: > [ snip - no comment on this all ] > > Based on my reading I created a 'hints' file for it: > > /boot/device.hints > hint.uart.2.disabled="0" > > but I'm not sure if this is correct? > Hi, short comment - in arm world, there is no device.hints file used, it is moved into dtb file. You should use overlay to enable uart2, which will then be used in /boot/loader.conf file - there should be line fdt_overlays="sun50i-a64-sid,sun50i-a64-ths,sun50i-a64-timer,sun50i-a64-opp" I did not tried it myself yet, so I can't write exactly what to use, important part in dtso file you should create is &uart2 { status = "okay"; } because uart2 is disabled in shipped dtb. Look in dts overlays directories for some examples, maybe you could search in this mailing list archive, too... or someone with more knowledge could tell more. Regards, Milan