From nobody Sun Apr 19 21:58:27 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D28F9C433EF for ; Sun, 26 Jun 2022 04:28:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233809AbiFZE2N (ORCPT ); Sun, 26 Jun 2022 00:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231406AbiFZE2H (ORCPT ); Sun, 26 Jun 2022 00:28:07 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02B9DCDC; Sat, 25 Jun 2022 21:28:01 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 33832320055E; Sun, 26 Jun 2022 00:27:59 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 26 Jun 2022 00:28:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1656217678; x=1656304078; bh=hRF+I95UJxqPYyeXN8EYFMKCR 8uRybetp/GgkAZvqNY=; b=UgogN9O6ApCHwdLBnlbf6p3Hbmc+RzKkXeY5330e/ H90NJ2BunN2wS20rCEpWwc6a09sIMpP4K9Wm+Y3mBqYUSBNEw6YkzI9U+gvZvwyK IyfZpyvcWH3e8urt2AcPheSzCOKTLh39aOxG2TPGf0kjVZvhl0qyTl0c2krR7GGH hvd1Pq7/iOhKVGwTy9sU9K1xt+hDm8EOvar+DOK2K27fZ+cc7g8q4hR24dlmDF9D QoXEe8747y94drqBur80fu1+LLPVmpM2zmU+eJfzCk/gj3SLHt14IWjwYJW9xkKz fXvuW3SOXNcVHzlSiL9IQataCl7c5gJSZ0X8hG6Fzec7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1656217678; x=1656304078; bh=hRF+I95UJxqPYyeXN8EYFMKCR8uRybetp/G gkAZvqNY=; b=kBb/Ju001J1aZWFImoH0YeKHuscG7ZSv+E4/6OmzsNXYW5yQfIS Ox7KhZYqSykJOM8FZlRBYA+cqtx21i+kceD9bVyXBAuHhcHv1+bThd/nCklXSNlK 4IlL6C5icg5E1r9mhEFSl+/5k3FR9Wx3TBksyQXA89uAdyZv6OQ4UIoZ7hw4DIKY omS8QPPM8+6H5/TOSGadZqEOnKFYaM3kApGM//qgzK2VQTdLOjkaqNnYdi9o/khu 7evM16ffbL/rYjkuGohx9qUfOx4XUqd25vBzdyNz3ObdnHC8HkxyNvKvw2Vekrov UlbdcoNUQ0pEvle+cLtvV2OzBWJYB4qgnOg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudegvddgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepkeehffethedtteffgfefteetjedvfeelueevudffgfeutdejvdehledv vdffhfevnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgvlhesshhhohhllhgrnhgu rdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 26 Jun 2022 00:27:57 -0400 (EDT) From: Samuel Holland To: Alessandro Zummo , Alexandre Belloni Cc: Icenowy Zheng , Samuel Holland , Chen-Yu Tsai , Jernej Skrabec , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [RESEND PATCH] rtc: sun6i: add support for R329 RTC Date: Sat, 25 Jun 2022 23:27:56 -0500 Message-Id: <20220626042756.58961-1-samuel@sholland.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Icenowy Zheng Allwinner R329 has a RTC with a similar time storage with H616 but a slightly different clock part. As we have already handled the R329 RTC clocks in the CCU driver, add a compatible string to RTC driver to allow probing of the RTC. Signed-off-by: Icenowy Zheng Signed-off-by: Samuel Holland Reviewed-by: Heiko Stuebner Reviewed-by: Jernej Skrabec Tested-by: Heiko Stuebner --- Resending this patch separately from Icenowy's R329 series[1] because it is also needed for D1 (which has R329 as its fallback compatible[2]), so I would like to get it in to 5.20. [1]: https://lore.kernel.org/lkml/BYAPR20MB2472C608678F3FAEDA7B7541BCF79@BY= APR20MB2472.namprd20.prod.outlook.com/ [2]: https://lore.kernel.org/lkml/20220203021736.13434-3-samuel@sholland.or= g/ drivers/rtc/rtc-sun6i.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c index 57540727ce1c..ed5516089e9a 100644 --- a/drivers/rtc/rtc-sun6i.c +++ b/drivers/rtc/rtc-sun6i.c @@ -875,6 +875,8 @@ static const struct of_device_id sun6i_rtc_dt_ids[] =3D= { { .compatible =3D "allwinner,sun50i-h6-rtc" }, { .compatible =3D "allwinner,sun50i-h616-rtc", .data =3D (void *)RTC_LINEAR_DAY }, + { .compatible =3D "allwinner,sun50i-r329-rtc", + .data =3D (void *)RTC_LINEAR_DAY }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, sun6i_rtc_dt_ids); --=20 2.35.1