From owner-freebsd-arm@freebsd.org Wed Feb 19 19:39:18 2020 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 CD7F3243505 for ; Wed, 19 Feb 2020 19:39:18 +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 48N7MT6yLTz3Hml for ; Wed, 19 Feb 2020 19:39:17 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1582141156; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=Ia7u8zp6Ji9aT/MWdE/Tl4zzzXJok4fY1b3/ntHo6NJOWsuMPaLsxptG/8ZHH46tKydq2snDNrmPL zvJ5IK6NTfXwBi2KD1rPidAAuJK0/3HdKHW8rTY0EDttBqAb/bxIrqAP3RDFGLmvJ8e4GScf0vxCP5 B+AIooNNwPp7gfpwLUp5P58Ll+SdsEoi4zv+CBneJxm2SVvzxKtn5Cj9B8pEIxPSLqDWuJndGX4FP0 VM2mSk/fX9/C/qFs0SRBRDFU/+2eddFfuKjbNvNtbDeKAXoTbwoP5xlMSMSkNuRQ57/ya/HwKnhlgA /Q10xQz+4KAkDpzRyIE5zV6sB4t7QnQ== 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:cc:to:from:subject:message-id:dkim-signature:from; bh=ydNB4yfYQa3r8hWDO8bVjwlHAWej3a0wrq9SJt5m8rg=; b=fCdyY5iYqQwYJgkY6OZjfAXoCu9xrREywer7Sxf0vzn59LL6Y082yK6YQ9OILHFG87ru8ojjthKOe 5DQUp5CbHjiGvOFf8WK33z5TxfqVMCErIeb4GjE+rNdb0laa3aZK7ua0uFG6nmxzMERGW4WD6ojNAb 3fi659Zp9TyhVoG5Cb/iFTgqubLblIY8nOJd1Y4vbiAwqudJfA/wXdNKJTB3MPStwiEO0YYSTF0318 vFPYuc40yI8AJlkxZXcpYBWw6KPDwhOwgWKI6U5vi8eWSuo7pqeliSQsWWQtz45vZFQP7ksbeMo3FO HAaRdFvEqqFXhINd6xWgtp+8k4eUyAw== 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:cc:to:from:subject:message-id:from; bh=ydNB4yfYQa3r8hWDO8bVjwlHAWej3a0wrq9SJt5m8rg=; b=HqXpwib/dfqUa2Dpeu2EtUtx6KeH2GOComqYPHSY7KwHF56H/LsR3KWwFsypME2mMuPWbz9xTXB+b 7XI5Mu25Ntb3gArqL3HGMsNU/Gerdxi1Ho6mw5glwyVbphwGYe5O8bUXvjFtvOqrUGJm1Lq2w0InsR 8io3kqznGiBgPU9w2Mm+3DpdVfMrxTxqPrfQ9zQ6VTaZ5YrRnvZ9uJ18f/dkPB3gLLvmVFsOXZ9rzt 0KxkuvVId8S3D3eo/RHHqK/2tXIrnZJ7EjgMNG1+V7pxHrIh/zRBYB6OuLHim8VSpTrhrvfljKonYH zsfQBmbUCdYzivrMHJLPUcrX0Cv+vkA== X-MHO-RoutePath: aGlwcGll X-MHO-User: 81eee57b-534f-11ea-9eb3-25e2dfa9fa8d 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 81eee57b-534f-11ea-9eb3-25e2dfa9fa8d; Wed, 19 Feb 2020 19:39:14 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 01JJdDCw003936; Wed, 19 Feb 2020 12:39:13 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <8f7e96af16dfe659b84be5efe9d203074370c67c.camel@freebsd.org> Subject: Re: Rasclock (PCF2127 ) Hardware Clock FreeBSD 12.0 From: Ian Lepore To: Stefan Parvu Cc: freebsd-arm@freebsd.org Date: Wed, 19 Feb 2020 12:39:13 -0700 In-Reply-To: <31674CF1-3D59-468D-9892-071BDEB6ADC9@kronometrix.org> References: <41A4CA5C-B487-490F-8A19-2D51F43E1004@kronometrix.org> <95616620-bbaf-dbc3-49eb-3e2562638d49@bunyatech.com.au> <74E3E782-8481-4B5B-A0AF-A04590C27D6D@kronometrix.org> <790afcb5f0809a89b45982958a85f1539fec05c7.camel@freebsd.org> <36088812-2135-4433-BC49-0BC433EC6767@kronometrix.org> <31674CF1-3D59-468D-9892-071BDEB6ADC9@kronometrix.org> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48N7MT6yLTz3Hml X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.96 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.97)[-0.966,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US]; NEURAL_HAM_LONG(-1.00)[-0.997,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, 19 Feb 2020 19:39:18 -0000 On Wed, 2020-02-19 at 21:12 +0200, Stefan Parvu wrote: > Hi, > > Testing now RBPI3B+ on latest FreeBSD 12.1 release. > FreeBSD k1 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC arm64 > > > > The bottom line is that you need to rebuild the nxprtc driver with > > this > > patch applied: > > > > https://svnweb.freebsd.org/base/head/sys/dev/iicbus/nxprtc.c?r1=350016&r2=348184&view=patch > > < > > https://svnweb.freebsd.org/base/head/sys/dev/iicbus/nxprtc.c?r1=350016&r2=348184&view=patch > > > > > Just to make sure: this patch should be already under FreeBSD 12.1 > release ? Correct ? > > I see correctly the device: > > % dmesg | grep nxp > nxprtc0: at addr 0xa2 on iicbus0 > nxprtc0: registered as a time-of-day clock, resolution 0.015625s > > > % sysctl -b hw.fdt.dtb | dtc -I dtb -O dts | grep pcf > pcf2129@51 { > compatible = "nxp,pcf2129"; > > Thanks, > stefan Yep, all those changes made it into 12.1-release. These changes also made it into 12.1: https://svnweb.freebsd.org/base?view=revision&revision=350875 Basically they cut power consumption in half while running battery, which should extend battery life significantly. You also gain the ability to set the frequency-offset register which can get the clock drift rate under 1ppm, which is good if you spend a long time powered-off and need to come up pretty close to the right time. (If that's something you need, let me know, and we can talk about how to measure the drift to come up with a value for /etc/sysctl.conf.) -- Ian