From nobody Mon Feb 21 08:00:44 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 E82A319C804E for ; Mon, 21 Feb 2022 08:01:28 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (2403-5800-5200-4700-225-90ff-fe47-39b4.ip6.aussiebb.net [IPv6:2403:5800:5200:4700:225:90ff:fe47:39b4]) (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 ECDSA (P-384) client-digest SHA384) (Client CN "dons.net.au", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4K2F9y26hKz3pP5 for ; Mon, 21 Feb 2022 08:01:25 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.17.1/8.16.1) with ESMTPS id 21L80tXI080161 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Mon, 21 Feb 2022 18:31:09 +1030 (ACDT) (envelope-from darius@dons.net.au) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dons.net.au; s=default; t=1645430473; bh=VYwW+rrfu8G6D2xQZTg+8+R5KH21N57cnq/UiS0nEXo=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=AjNNpsGvOEdExAOAq8cNZigRmBeULtPmgCm06u89VCyxIoGH8T0j1AbUjPQLiXh/k +wrcHTNYIqhUTNx8RxsrhgBxjaanmA7GFILIQQvb4H2LKeaCa1yUu112b+d1TThTJK rYaI85BEAqg9HhzS8wxlSeKGe/he74G81N2FShII= Received: (from mailnull@localhost) by midget.dons.net.au (8.17.1/8.16.1/Submit) id 21L80ivG080155 for ; Mon, 21 Feb 2022 18:30:44 +1030 (ACDT) (envelope-from darius@dons.net.au) X-MIMEDefang-Relay-0ce1a11234c790b6ab6410cd70c6fdb820520472: 2403:5800:5200:4700:9ff:9026:de6b:58bc Received: from smtpclient.apple (2403-5800-5200-4700-9ff-9026-de6b-58bc.ip6.aussiebb.net [2403:5800:5200:4700:9ff:9026:de6b:58bc]) by 2403-5800-5200-4700-225-90ff-fe47-39b4.ip6.aussiebb.net (envelope-sender ) (MIMEDefang) with ESMTP id 21L80ice080150; Mon, 21 Feb 2022 18:30:44 +1030 Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 15.0 \(3693.40.0.1.81\)) Subject: Re: DS3231 RTC module not detected From: "Daniel O'Connor" In-Reply-To: Date: Mon, 21 Feb 2022 18:30:44 +1030 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <76D58677-D12C-4F0D-A0E0-F28E300FE39B@dons.net.au> References: <2DF482A7-FEFC-4833-A16B-A7A01B8713DD@dons.net.au> <94C3A304-B821-4885-A50D-32BD1FBED43D@dons.net.au> To: Archimedes Gaviola X-Mailer: Apple Mail (2.3693.40.0.1.81) X-Spam-Score: 0.6 () No, score=0.6 required=5.0 tests=KHOP_HELO_FCRDNS, PDS_RDNS_DYNAMIC_FP,RDNS_DYNAMIC,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, T_SPF_PERMERROR autolearn=no autolearn_force=no version=3.4.5 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 4K2F9y26hKz3pP5 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dons.net.au header.s=default header.b=AjNNpsGv; dmarc=pass (policy=quarantine) header.from=dons.net.au; spf=pass (mx1.freebsd.org: domain of darius@dons.net.au designates 2403:5800:5200:4700:225:90ff:fe47:39b4 as permitted sender) smtp.mailfrom=darius@dons.net.au X-Spamd-Result: default: False [-3.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[dons.net.au:s=default]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[dons.net.au:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[dons.net.au,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-arm]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:4764, ipnet:2403:5800:5000::/36, country:AU]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 20 Feb 2022, at 14:59, Archimedes Gaviola = wrote: >> When you say "with the exact DS3231 driver.." what do you mean? >=20 > I mean the appropriate DS3231 driver - ds3231(4) for the module which = is a kernel loadable as the dominating driver with 13.0-RELEASE and = 14.0-CURRENT which is MAX77620 RTC is the wrong one thus the module will = not work properly. The clock stops and goes back to the time when you = set it. This behavior is observable when my RPi system is rebooted or = shutdown. With the loadable ds3231 driver, this behavior is no longer = observed and working as expected. For your DS1307, there's also an = equivalent and perhaps the appropriate driver as described in the manual = ds1307(4), it can be loaded as well via kldload. I tried loading ds1307.ko in the loader but it has no effect on the = result - still shows up as a MAX77620 for me. I haven't tested pulling the power yet as I'm remote from it. -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum