From owner-freebsd-arm@freebsd.org Wed Jul 31 00:42:55 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2E8C1B156B for ; Wed, 31 Jul 2019 00:42:55 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7BCC587F97 for ; Wed, 31 Jul 2019 00:42:54 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1564533767; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=lWme49jQIKjOpbuFd1wRgZZJjaCxUvEfkbYfP+2HsJnrcW4Ng8r16KxdbIJ+g0FzarFKd7eLn+s2f Y5rTDezOIPI16qXMxB5RYyL933nhqgAcLe8b7lXgMhtV0HkO4U3ytajeMBNVC0ai63cBf7luR+cHyv 3nSMvtAp445i80K0rJkh7Zw2+js6c82vUwCG/ChAxVsAnqcE9DwNe71NpymZglKlpICjWCHn2+/BtN SzivleusS6PdfZJzOOf5BqJC4kkReV3DgQtM/e6kG3BqtO2f0fDmj2up1yx+NO2/UXIsKw8oaoDjr9 TG3Nq2+fLOMx84sSqDjJkNys1D7XYpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=LNQ9+2ko/DHOHboKJYeobzgYE2pKLZxE32KcXwPalgw=; b=ItBTnNNxxo9fvLCtpQ8LQ7IB2QG0dNA/6i5DlDSs/CFH3PDSU0KZ6bmqzR5n18Me/ho5DAqZRWTld VuBKr8IEYw2A1vvM5MnJc0QZLX3DOKN7pY7jptEZkuNRVTamMYmu5RYxZtCVaOe23W7TLnCEduyQ1Z 1ZsRRM5KVX5SKx7VvUPYPLi/i82o37d/RMcYpGSvfGavm6soCbYH9EmHjYkrHaUQ0f/6dBWGXU0aQR 3XrkQSj0re4BZ8v4zz/Pgo3wclDWwZHst/l+e3GS0AcvkvzX7Xno3GhM3ERPPnzrHdXBiwzrYZ/5IU a2VR4vjn89CZZLIbQUkIDyntUPQcDEg== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=LNQ9+2ko/DHOHboKJYeobzgYE2pKLZxE32KcXwPalgw=; b=vq4fR7F5zkzgT6cErWUwEU/YFWAZU0jPh7NjVsSzKBfzigPUnn5ZI0fTeF0ucr8Kl6/7B+2wKSM6u XFXfPpvPotGJxTqoFVEhn0NJDp+WLLvbvjWsWrQOPoMR9KmfJwlOw5uXPi1QvAY20ZtS1eO8cUCavE n+ijx69/y1aaW19lWe2+ZuygmHXvgdygRsx1ZJtPGv0gBVWXcNZnO6DC8yW8vVXoqEHXFvvhEXrQ9s wsrPiB0DUC0ihJ0HHt/tWXcYjbNCg2MkNpP8HSO+CatPtiidTer4rTkYmv4ZWRGJjNutTty5Zmxt+f Vfa9c0zMAYvs1K2/RNfkoXTiVg66qBg== X-MHO-RoutePath: aGlwcGll X-MHO-User: 1bdd2188-b32c-11e9-85ec-13b9aae3a1d2 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 1bdd2188-b32c-11e9-85ec-13b9aae3a1d2; Wed, 31 Jul 2019 00:42:45 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x6V0ghEs094852; Tue, 30 Jul 2019 18:42:43 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: Subject: Re: Pine64-LTS overlays for uart ports fixed! From: Ian Lepore To: Kaya Saman , "freebsd-arm@freebsd.org" Date: Tue, 30 Jul 2019 18:42:43 -0600 In-Reply-To: <5f30c425-60c6-d54a-9593-2584bcf25925@optiplex-networks.com> References: <5f30c425-60c6-d54a-9593-2584bcf25925@optiplex-networks.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 7BCC587F97 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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: Wed, 31 Jul 2019 00:42:55 -0000 On Wed, 2019-07-31 at 00:46 +0100, Kaya Saman wrote: > Hi guys, > > > just wanted to say that I managed to fix the overlay issue for the uart > ports. I just updated my bug report: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239390 > > > So, thanks to everyone who provided assistance and especially Milan for > the introduction to the 'overlay' system and the dtso file :-) > > > Just need to figure out why PPS isn't working now, my GPS receiver is > sending the information so it definitely is a system config issue - > either wrong pin or something in the OS... (still looking into it). Also > needing a driver in lcdproc for my Newhaven displays and after that the > project will be perfect :-) :-) :-) > > > Best Regards, > > > Kaya > > Is the GPS receiver delivering the pps signal on one of the uart pins such as cts? If it's using cts, you probably need this change to your overlay: --- sun50i-a64-uart4.dts.orig 2019-07-30 18:35:19.188762000 -0600 +++ sun50i-a64-uart4.dts 2019-07-30 18:37:02.015479000 -0600 @@ -30,7 +30,7 @@ target = <&uart4>; __overlay__ { pinctrl-names = "default"; - pinctrl-0 = <&uart4_pins>; + pinctrl-0 = <&uart4_pins &uart4_rts_cts_pins>; status = "okay"; }; }; You may also need to set sysctl dev.uart.4.pps_mode=1 for CTS, in /etc/sysctl.conf. If it's using some other pin such as RI or CD, there is no pre-written pinctrl entry for it in those overlays you found, and some more research into how to add the right pinctrl nodes will be needed. -- Ian