Message ID | 20221028225519.89210-1-paul@crapouillou.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1083223wru; Fri, 28 Oct 2022 16:00:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7GccGo4E9zkB19C2Lw1sGZL464P2w1exjZq2fDyK0dZADSvuzq5SvXxAfJn2IPTLryogez X-Received: by 2002:a17:907:980e:b0:78d:b6d5:661e with SMTP id ji14-20020a170907980e00b0078db6d5661emr1515140ejc.46.1666998007811; Fri, 28 Oct 2022 16:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666998007; cv=none; d=google.com; s=arc-20160816; b=tv+rLLBz3S8bCQeQlqxhV306AHsUgdVZ6nyiRol26uvqvrKyh5Own34XL31hCgtc5l TC/CImLmooVZhiS43ygymNO3xaxuHlWczaLzvZM+kUjTNBtuI3Vay3pocajceW9AdFoP rXVXR02RA+1j0PYpQHCxtIW2jADE96wNjKeKHX/U7qV/Bhd4POryf6bFRw4NSykq+ps7 NgbYAsZw1TgOE/eWyFaFYTQbNYBDx/nppl18s+NAmohIktLS7M6jkpeYjOGls5GFvnIY sU9I9dE5GuzjULT1MY2U5KAzn6bN8VuxFQT+XArZGfL+FawoHosZGYGgqe87ms/66NSu HRPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7rlLnd7xNWQad1M+asDuys3euM61zFqauDXbafni6hw=; b=sviUt1G7ghae5d4vECq9HJFgvTqOccW3m0BGg4hUjDs3BFiEuJjFjEva4AA2TmhN+e clKaY5k25jPGx0nMI73wr3xFR3hbG7fEOUAQwHjrlPUoXmwEkpDE0L6+5aRi9l9MKx05 06kcDdTSmefM7zDbAqD8C3iIA2IpJuR76TAh8PZiMQqRTQIkrjY9YzkNjWd8TfZyguwt MaA4tknL75+xu/SkrsDA7+M9jx7fZa6VIjp5CUYmS5bRyLgM+mlVYe0JZDa6WyRjs6s+ 5nBhlg5lzk6SGT3gmxe+X4IfLaIBLcDQ03HssnphtycfCAt81rZ486PzUu9psTAKG4Bg wssg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=Ar0nt1tO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a05640234c600b0045c13366de4si6447617edc.572.2022.10.28.15.59.41; Fri, 28 Oct 2022 16:00:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=Ar0nt1tO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230232AbiJ1Wzn (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Fri, 28 Oct 2022 18:55:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbiJ1Wzf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Oct 2022 18:55:35 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DA23171CC3; Fri, 28 Oct 2022 15:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1666997726; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=7rlLnd7xNWQad1M+asDuys3euM61zFqauDXbafni6hw=; b=Ar0nt1tO9pfYoUUqueO7Exx2jkrZsuCoDkr479Zdw66/HVlzo7fda9WGLLzA018o9Lufk3 RDRDxNhCRHNPAnEHs8nZfp0jOZMQIRD4vnKwdN8R5JNpNS482AtGI61EREZsRw8/LT4NNW TbWP3wq+7Itna/nnb4zJ2QN5L2ZSP3A= From: Paul Cercueil <paul@crapouillou.net> To: Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, od@opendingux.net, Paul Cercueil <paul@crapouillou.net> Subject: [PATCH v2 0/4] rtc: ingenic: various updates Date: Fri, 28 Oct 2022 23:55:15 +0100 Message-Id: <20221028225519.89210-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747974102885892419?= X-GMAIL-MSGID: =?utf-8?q?1747974102885892419?= |
Series | rtc: ingenic: various updates | |
Message
Paul Cercueil
Oct. 28, 2022, 10:55 p.m. UTC
Hi Alessandro / Alexandre, Here's the V2 of a previous patchset I sent back in April. Patch [1/4] was updated with Krzysztof's feedback. Patches 2-4 are unmodified from V1 as they didn't receive any feedback. Patch 4 is RFC; I *think* it works, but I don't know how to test it. V1 had a 5th patch which would reset the scratchpad register on power loss, but was dropped following upstream feedback. Cheers, - Paul Paul Cercueil (4): dt-bindings: rtc: ingenic: Rework compatible strings and add #clock-cells rtc: jz4740: Use readl_poll_timeout rtc: jz4740: Register clock provider for the CLK32K pin rtc: jz4740: Support for fine-tuning the RTC clock .../devicetree/bindings/rtc/ingenic,rtc.yaml | 32 ++++- drivers/rtc/rtc-jz4740.c | 113 +++++++++++++++--- 2 files changed, 129 insertions(+), 16 deletions(-)
Comments
On 28/10/2022 23:55:15+0100, Paul Cercueil wrote: > Hi Alessandro / Alexandre, > > Here's the V2 of a previous patchset I sent back in April. > > Patch [1/4] was updated with Krzysztof's feedback. > > Patches 2-4 are unmodified from V1 as they didn't receive any feedback. > Patch 4 is RFC; I *think* it works, but I don't know how to test it. > You should simply adjust the RTC and see whether the drift changes. The best is to simply use chrony as this will actually tell you how much the RTC drifts. This actually gives you the exact value to put in offset to remove the drift. > V1 had a 5th patch which would reset the scratchpad register on power > loss, but was dropped following upstream feedback. > > Cheers, > - Paul > > Paul Cercueil (4): > dt-bindings: rtc: ingenic: Rework compatible strings and add #clock-cells > rtc: jz4740: Use readl_poll_timeout > rtc: jz4740: Register clock provider for the CLK32K pin > rtc: jz4740: Support for fine-tuning the RTC clock > > .../devicetree/bindings/rtc/ingenic,rtc.yaml | 32 ++++- > drivers/rtc/rtc-jz4740.c | 113 +++++++++++++++--- > 2 files changed, 129 insertions(+), 16 deletions(-) > > -- > 2.35.1 >