From owner-freebsd-arm@freebsd.org Wed Nov 21 20:37:09 2018 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 12DB61145C7A for ; Wed, 21 Nov 2018 20:37:09 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1.eu.mailhop.org (outbound1.eu.mailhop.org [52.28.251.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 53EEA75BD8 for ; Wed, 21 Nov 2018 20:37:08 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1542832620; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=K0qrF1kM/5CBhgDDPSykNpxq7G17FEWNVE3Fp3IzZBpqDE/ygPxU9ulFSxZqyviiXFn7TqyIvYIN0 Sgwd61wWepAMfQX9JuBB7i3OXnPF1rZNMIO8PtsaNdGCh8iRSlqIHXPxJORI0dIauYWQ3btZwY7w8C awKAce8H7JvrQtqlWEzPU9UiLLHFO5KTsLO+eyCrOGFRHRkMZ32uOBtXlDSYjFkXqUjYQcZPEYEN+P D4jeJddM6RuBkQ5xYo09orBfdrlNxze23PSx+ix9lnrtr1seJqhJNNeSPyXT3cngFWn7XicuQb56bH V5eajLIiCdXyLyYkqA/rPlKqiZqGMPg== 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=xGoktKaqoIiWLGxlLoU+I+1Hw8JkBBbwFCMO74ZSsEc=; b=Az6wT1eogXajvTPcBRsZ+IWTSGazBzJmWnpNJIR3zdaiwaviTwo9WFrYJnO3AWNWiyePUjzg534NP Nc00VD3Fi4T3bhCDn1pGk0W4Kk3dV7pQyk6fKVy0aOK4tAiP5NkHifJWK3nxIAzfRm6I9bO3czHqXD G4PMYMOCmmMs0+RowSc62YFImHE4+ELlit3spZHC451UxmedQhWdKlNtzE7pwLimAyt4JGiRT+UodO WYbztTCGBTdnjbFhdic4V90reRuDHu20UTJnIzdHk1yw7yDS51hLS45mwzXMgoaYh6hje+0BCbZcDV S+yxub7/rmbkG2kc5UjLmZl85lzQYcQ== ARC-Authentication-Results: i=1; outbound3.eu.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=xGoktKaqoIiWLGxlLoU+I+1Hw8JkBBbwFCMO74ZSsEc=; b=U5XOEIrd86kDL15cLjv1/a0VooXEgW5fbmN+a0y4f99lEdzx7WwU+79Lb8Xlp3krXBEwOJ25I89Uu +3faPfN+I2phBYfFAy4WuFducLisosizFI51sJ+VkZhwyFeQ9X8wvwivLQjd/qliv4cCDTVIByLMPG hXAPF1EQeFRIcbRmrhjF+k6yzoy2lnpc92s841rYrKtBb+o9sj0xMVZ5yHs1HrqwhTlKHnQi10RJ+m ph/pHyU4mgglf/u2nl+qJ+JQ3Zh/s0r0vOrM6Ex1auV6v/1mmfSDddo1tj3/kRTZPIr4eHdDw9QrVL 98F0leCjSazCilYQ3zJ8NZ6chUxsVpw== X-MHO-RoutePath: aGlwcGll X-MHO-User: 309d6e11-edcd-11e8-8a28-a1efd8da9a94 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 outbound3.eu.mailhop.org (Halon) with ESMTPSA id 309d6e11-edcd-11e8-8a28-a1efd8da9a94; Wed, 21 Nov 2018 20:36:58 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id wALKavuh017913; Wed, 21 Nov 2018 13:36:57 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1542832617.56571.81.camel@freebsd.org> Subject: Re: FreeBSD 12.0 RBPI3B+ and hardware clock support From: Ian Lepore To: Stefan Parvu , freebsd-arm@freebsd.org Date: Wed, 21 Nov 2018 13:36:57 -0700 In-Reply-To: <88AEE740-A64E-4F54-9A43-02DB605CFA2D@kronometrix.org> References: <70D1E906-D92A-4413-9327-DE1779E479E8@kronometrix.org> <1542825813.56571.77.camel@freebsd.org> <88AEE740-A64E-4F54-9A43-02DB605CFA2D@kronometrix.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 53EEA75BD8 X-Spamd-Result: default: False [-1.11 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.75)[-0.753,0]; NEURAL_SPAM_SHORT(0.40)[0.396,0]; NEURAL_HAM_LONG(-0.75)[-0.754,0]; ASN(0.00)[asn:16509, ipnet:52.28.0.0/16, country:US] X-Rspamd-Server: mx1.freebsd.org 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, 21 Nov 2018 20:37:09 -0000 On Wed, 2018-11-21 at 22:30 +0200, Stefan Parvu wrote: > > > > We have support for most major/popular i2c-based realtimeclock > > chips. > Right now we have a system based on MCP79410 [1] - It would be sweet > to > get this running on 12.0 - Any pointers: is this chip supported ? > > Thanks, > Stefan > > [1] https://www.microchip.com/wwwproducts/en/MCP79410 >   Oddly enough, the ds1307 driver supports that chip. I think it's because the register set on the two chips is identical (or close enough to work right). In the DTS overlay when defining that i2c slave device, use a compatible string of "microchip,mcp7941x" and the ds1307 driver will attach. The ds1307(4) manpage doesn't mention the MCP support, but everything else in that manpage should apply. -- Ian