From patchwork Wed Jul 7 07:16:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathew McBride X-Patchwork-Id: 470785 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp5731869jao; Wed, 7 Jul 2021 00:17:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5ZExgHs0p4pLrIYgT97xHXm2yJBAu9Qj4MFs1ruQE2q5VVHt8kJSAeRmSwVgeWMYBYUNV X-Received: by 2002:a17:906:b0c8:: with SMTP id bk8mr22931277ejb.412.1625642242826; Wed, 07 Jul 2021 00:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625642242; cv=none; d=google.com; s=arc-20160816; b=FkwP2CLJtbgJFMFpEw+vzzQGKIbAHtSudRXipV+CdZleJDAlWo+dTZHCciF7Gz3aFi sH8V0d4I7aFzuYGqbjmDWRIPRfg6kKc0kz2N4yEtSFfxnCcUJESpbtDdSnK53m6xE/St qRYHvUsQd5NSNUZ/FI0+NPaPeJFdlTcuGJE7d9NNo1s29x9q18oIDmXhOZgbloF/0HcK gh9tnFx39BxHI3NKHeXGvcUGkjNZJ5nhd3y23ATYnR1kU3QSMNv0EARzGPj9WYdAbqNk 76NAEHCIX69xe3SobEL+ozY6/aa0/JywpysLqZn+93r6V4NOZyowsl20UHlIHQZoXSDR K4xQ== 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:dkim-signature; bh=esGftYxYNcMesAngjh6I/3VTeJgeY8P/8PQeY3ChE84=; b=n8m+3z2F+guUlz7+fDHzGawh0HP69EKywvR3EMvSt7MBEbqM+jH6/vxku6g1lsYEMK Wde2im3Z0iC5pWOI0GCoIsEVenTEZJFo+HckXciH3SGBUQ02TJFPFwbCMCASX143Q2Dj G8S4Aq6nycvmyIQD1Bswnz57je6e6iehSgFF9hciF1tDEDNAxC/qF7u9DEYUez7VlGLF rFAGPozuLnZ7AQ6+aBn7OVRtZYlqEBqWO4qdJ+BBvVuyTRa5g65MmONH62a4pxCIIt2C UurmfWWJ1zR89b1wC3yrtAk+PyJKsAnFNFa/iJd2lv4GKjfddmvX8saL36p2Htb51aGi inUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@traverse.com.au header.s=fm1 header.b=i1EZKMBt; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gvPDOoKP; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si20509554ejd.407.2021.07.07.00.17.22; Wed, 07 Jul 2021 00:17:22 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@traverse.com.au header.s=fm1 header.b=i1EZKMBt; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=gvPDOoKP; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230375AbhGGHUA (ORCPT + 7 others); Wed, 7 Jul 2021 03:20:00 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:51159 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230327AbhGGHUA (ORCPT ); Wed, 7 Jul 2021 03:20:00 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C6DEA5C00EB; Wed, 7 Jul 2021 03:17:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 07 Jul 2021 03:17:19 -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=esGftYxYNcMesAngjh6I/3VTeJ geY8P/8PQeY3ChE84=; b=i1EZKMBtbkNuLmOx2LzYgbmxttzJyW71oGHQTKuFfU tn1/+UTER4a1eXzZEQbR6eC5zFEelrHJUzQHaGKDaP3U34oNZNNFkSXwRqyZEEuj /g6zf5H9ACAdgfZ3Hl89OJ5iUkniJiBqWuarVnpSfYGKFty+C6mzdjI9q0fhiNKw b2FN5lXsjIt25UD3J+XzClDY+grCQnJncPImPniZt7hdgMm+ZKBxNLD5HMekpyxw FVpaZoZAKS+VbMDFIb+Obz4cpVetmwHrq1YjR+6Q+QpwPZDsDUfibPdPJQL/wPxB TrQB4KyRQfnC44Wx3+u/MQd+lntJYXogrwP3u6XvXKfw== 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=esGftYxYNcMesAngj h6I/3VTeJgeY8P/8PQeY3ChE84=; b=gvPDOoKPUdrSBNZH76NL9krRxSEujCNp/ pybUsffioBHIt5u1wmD+5FXr1OQ+gGGyakAlGaQARFfJ4IpcXXu9lFZWKQdBJ8Hx mah1whrSruCoqlCnWjkVKMeBv0YpPkFvDKvk9MNU5+aefZs11wd3dr7lwbp1KmQj ZQO17rMzgXsYcR7NltPvV7Ld3e2I9zpPsbQPKtAOLzlOoLHtHsTFwK8bMsIIKHBK 6QAkQ8os8RyqmOlpVSblF5y7tVQOiTMLA7qHmHyf3TrcPjtwhSRGZK+mK12CEWp8 y4w56EE4ox9J9vbtqbG90dS4J/rjTKbGatP2XaMBMxPUOR/D31LDg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrtddugdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepofgrthhhvgifucfo tgeurhhiuggvuceomhgrthhtsehtrhgrvhgvrhhsvgdrtghomhdrrghuqeenucggtffrrg htthgvrhhnpeehgeekkedtgefgueekjeetfeeujefhffdvgefhtefgveelkeegvdekuddu veevffenucffohhmrghinhepvghpshhonhguvghvihgtvgdrtghomhenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghtthesthhrrghvvghr shgvrdgtohhmrdgruh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 7 Jul 2021 03:17:17 -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 0/2] Implement EPSON RX-8035 support Date: Wed, 7 Jul 2021 07:16:14 +0000 Message-Id: <20210707071616.28976-1-matt@traverse.com.au> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 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 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, 56 insertions(+), 6 deletions(-) -- 2.30.1