From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2248AC07E9C for ; Fri, 9 Jul 2021 04:45:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 01BAA6143E for ; Fri, 9 Jul 2021 04:45:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbhGIEsQ (ORCPT ); Fri, 9 Jul 2021 00:48:16 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:51559 "EHLO wout5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbhGIEsP (ORCPT ); Fri, 9 Jul 2021 00:48:15 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id D36FF320084E; Fri, 9 Jul 2021 00:45:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 09 Jul 2021 00:45:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traverse.com.au; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=mIyVDj+z5tzU60EY8rgjUDBXC0 HP2ZIeBXKfQ7Gbn3A=; b=bJWd6jq9ex8YOhyZKthMV7CRSPKIRmV9W7mENirzjL jWT705wUIU/0DSe3oD1GDGuc7eiil1ZXovQMWitEItbH2B3lalQsI9LM2ESkHgUM 5kMUCqfn/s/yrWqGp/h+cSQRwX/dylE4Vqc2SDzIaEINt4I28fVb04AlHQc3qOgI crk88UDYsQ2v2/1fueLM2H02T5Iscv0pwPuZq0aEbtwvP/ZLzeliSTWhtRtmjXZ9 YUcIOpOYZCf6yFsXjbqtlZnv9MJL+36ryoT90Fg8NWxJziC3H4hSsAAfF+C+HzMP 4s3pYdvx79WIkFh3G4XcZyzc9IYLLFQ8ha2dex6GxWFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=mIyVDj+z5tzU60EY8 rgjUDBXC0HP2ZIeBXKfQ7Gbn3A=; b=bn8jFu2lVMO7HruWvN7M300Hpx8VFklbw WSRRNH5vyfOA1X+djZp6/R0dt/dATlucbFe8FTwehmEII3Wx1m6agxbwqpYyeo6W 3B0GueDCdrU48Co3exPGDS8OmcmSR4EJFVLIA2q8IlicAqvdipSRXENifOBK4E+1 Dw5+fdXzEg9NMMTk7+9S8e2zZ3pcjYNyGBZBvhPu1UUZyrE/GvwRr0JB22ZUuk5e 2kRBmOXuaKy4JHXg7nyfyRCZu5AYKwWG5NMdLy09/lF2ak0fmxGuZsVEiOlNzjRh tRKbKyhi3ComXV1tEOqVdU24a9jZGZjf9m/P+bn3bMUt9QB29Zy2w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrtdehgdehkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepofgrthhhvgifucfo tgeurhhiuggvuceomhgrthhtsehtrhgrvhgvrhhsvgdrtghomhdrrghuqeenucggtffrrg htthgvrhhnpeehgeekkedtgefgueekjeetfeeujefhffdvgefhtefgveelkeegvdekuddu veevffenucffohhmrghinhepvghpshhonhguvghvihgtvgdrtghomhenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghtthesthhrrghvvghr shgvrdgtohhmrdgruh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 9 Jul 2021 00:45:29 -0400 (EDT) From: Mathew McBride To: linux-rtc@vger.kernel.org, Alessandro Zummo , Alexandre Belloni , Rob Herring , devicetree@vger.kernel.org Cc: Mathew McBride Subject: [PATCH v2 0/2] rtc: Implement support for EPSON RX-8035 Date: Fri, 9 Jul 2021 04:45:16 +0000 Message-Id: <20210709044518.28769-1-matt@traverse.com.au> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The EPSON RX-8035[SA] is a I2C real time clock module with built-in oscillator[1]. It is a very close relative of the EPSON RX-8025 that is supported by the rtc-rx8025 driver. The main difference is that the RX-8035 has inverted the 'oscillator stop' bit in the control register. The operation of the devices is otherwise identical for the features currently supported. Curiously, the RX-8025 is also supported by the ds1307 driver as the time register set is compatible. The control registers, however, are not. I have decided to implement the RX-8035 in rtc-rx8025 due the simplicity of that driver. As best as I can determine, the rtc-rx8025 driver was in the tree some months[1] before rx8025 support was added to ds1307[2]. [1] - https://www5.epsondevice.com/en/products/rtc/rx8035sa.html [2] - commit 3c2b9075cbdb541dbe486bde45925c9610de6f35 [3] - commit a216685818a54b4f15235068b53908f954850251 Changes in v2: Coding style fixes as per suggestions Use 'model' instead of 'type' in drvdata Call rx8025_is_osc_stopped in a consistent manner Mathew McBride (2): rtc: rx8025: implement RX-8035 support dt-bindings: rtc: add Epson RX-8025 and RX-8035 .../devicetree/bindings/rtc/trivial-rtc.yaml | 3 + drivers/rtc/rtc-rx8025.c | 59 +++++++++++++++++-- 2 files changed, 57 insertions(+), 5 deletions(-) -- 2.30.1