From patchwork Fri Sep 17 06:46:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathew McBride X-Patchwork-Id: 1529215 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=traverse.com.au header.i=@traverse.com.au header.a=rsa-sha256 header.s=fm1 header.b=Vsgh9E4l; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=F1Vctxxp; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4H9kyZ5gVsz9sXk for ; Fri, 17 Sep 2021 16:47:02 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E55DD83205; Fri, 17 Sep 2021 08:46:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=traverse.com.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=traverse.com.au header.i=@traverse.com.au header.b="Vsgh9E4l"; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="F1Vctxxp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A051382F34; Fri, 17 Sep 2021 08:46:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id EC14082EE0 for ; Fri, 17 Sep 2021 08:46:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=traverse.com.au Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=matt@traverse.com.au Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C63515C010E; Fri, 17 Sep 2021 02:46:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 17 Sep 2021 02:46:18 -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=A9ACoiZOX8yep5PHo5W4HoGO6z wUptth8ukMl/7R408=; b=Vsgh9E4lRWsBSMhIoVFzJ8x3jktScOHUyeyOWxRBiO JroypqLx1i0c+cJlS/dlsdwjf9hv7yRDtuamNF8J3drNHr9Sce2ZA57koTt4qQ5f fy302vwx+DWATpvs7TwTqSXFYDP01oVm0iYc6107/K1fer8H7waBo92CafehpFLI pEBjqqfJKdOBBKMxt1LRjv/6BDr0XEUxc/oIrxJMDnqHBkoz5Ore9bkH/BiBJSly yXl2hIvR6fBfqgvOaulD3Iz7y7f4pYfBko7pgzkS/czvdr/UKsI+E+1W5WUWS1EZ cBThZ2Ym5eM9NYNy4YltljubJDoXzw+6ZTJz68uarBlQ== 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=A9ACoiZOX8yep5PHo 5W4HoGO6zwUptth8ukMl/7R408=; b=F1VctxxpdIaDvK+FVWuW1Acmf8Zj3ifcc O/2n6HdpZU3m9+2gnowQlbAMLJrqoWM2syMk+VI1oXjUScZZ0uLvx4q8wkQl6U2l hlGJ7vKT4ZKtQ1hrT9AsraqdheimlGw6NubyPoMo0YuvQbHDK6LRKPkkOaykEpQg 8M+9e0CkEl3sxL2xJeQeCxm7ZCw1GWKlHBe51FIGD0SAKhNGyKDXDBguvl1GAuRp gO5y7i1AL2RY09fDSt/OBFkv8gaJ6P9NfDl5iQrKs6uOLIA9FZQfa92REm2Y7tRu bxUdwDRWz2rZqo/ocOSmcVsaGV75dAfmKbYsum4okldoyR769XuAg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudehhedguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpeforghthhgvficuofgtuehrihguvgcuoehmrghtthesthhrrghv vghrshgvrdgtohhmrdgruheqnecuggftrfgrthhtvghrnhepgfekhefgieehffetudehve evudeutddtteeiffeugfevuedttddtgeelfeekledvnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrthhtsehtrhgrvhgvrhhsvgdrtghomh drrghu X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 17 Sep 2021 02:46:16 -0400 (EDT) From: Mathew McBride To: u-boot@lists.denx.de Cc: Mathew McBride Subject: [PATCH 0/4] Add EPSON RX8035 RTC support Date: Fri, 17 Sep 2021 06:46:00 +0000 Message-Id: <20210917064604.3912-1-matt@traverse.com.au> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This patchset adds support for the EPSON RX8035 real time clock to the rx8025 driver. The two devices are very similar and with only minor differences for basic real time clock functions. Some issues have been identified with the handling of date setting and clock reset with the U-Boot driver which are resolved with these patches. It appears only one board (socrates) in the U-Boot tree uses this driver at present, the other users either not in tree or removed under previous cleanups, so take this opportunity to remove non_DM-RTC support as well, and vestiges of previous board specific hacks. The Traverse Technologies Ten64 board will be introduced in the near future and it will use this driver. Mathew McBride (4): rtc: rx8025: drop non-DM support rtc: rx8025: add support for EPSON RX8035. rtc: rx8025: set date in a single i2c transaction rtc: rx8025: revise single register write to use offset drivers/rtc/Kconfig | 1 + drivers/rtc/rx8025.c | 166 ++++++++++++++++--------------------------- 2 files changed, 63 insertions(+), 104 deletions(-)