Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1261770imi; Fri, 1 Jul 2022 06:27:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1swDUNbKu6KVcSPFiru5zgb9R3RepFaG87Yqkl6p5MiRG6n/rYrMZ4zKAV+ZC21+vgh+T2/ X-Received: by 2002:a05:6a00:179c:b0:525:6823:2972 with SMTP id s28-20020a056a00179c00b0052568232972mr21176418pfg.60.1656682022182; Fri, 01 Jul 2022 06:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656682022; cv=none; d=google.com; s=arc-20160816; b=p4xazzLlpbJbqerlHlRWL2uGH7cS6mzIphF/+wxseMC/ePJYK5rR4sTvGOcv9Xuvsb d/5x8w6BhO2DXlO4peARuroYr1vDGdpZqlchZqBY4CRowbUYfS122X6DTTIui8YZ3WLc vpOBTI/fsTBxkHLblnlxtbub8cyCH1EbBoHE1mKt923W+IuuFqtC9cU3nb8mtQOM4Gut HTvQg8TXzWM+7VQ1ikulW7KQa+wwznsFAYE/9EpVNqq0SWeDrzU65tglqJE5Cm47+N+0 IAdSPhBF6rrE1I93dhJ3cPa8EMxGJxjVLhMDFCoHe4W/d0MtaotgDjEsqoD86e/33OI6 HOiQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=PWcUX9O5Efol+B5RQtRlTFbnjUehrVMqE73DcwOGhVs=; b=HEdmm5BVdDbUDPVZgPQejKLqb0KPP9inh6GQNF+3eWi08OgUR137hWGjR6UdyX7YGq E8HXoLw/nVnuBk9p2CleP9ZZrAqSUNbedSCS8SWMiFoSiKQ4GCwl0B6JtROmoTyNjbvD S8smvpBhI6ZyoeLF0777joPiY3pci+NAw2NHpaxFqxH7QvFHTWXt75Yse8ze/ZoKglN9 MFkPeqEZiW3Balos24HBUQK5mw+KptqQyzKETydWIgTIm53IAhKVJjL+8KkCF8ybXfLC qCBA1LFhvgurRnNpK2YIXtJMUYAlSx3qEYFeOTBhUk5zWjNc99czZW5HoLNF/3hK7rKE X8QQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f30-20020a63755e000000b003fcb3adf3cbsi1125008pgn.809.2022.07.01.06.26.50; Fri, 01 Jul 2022 06:27:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbiGANAq (ORCPT + 99 others); Fri, 1 Jul 2022 09:00:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234982AbiGANAn (ORCPT ); Fri, 1 Jul 2022 09:00:43 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE0B44161B; Fri, 1 Jul 2022 06:00:40 -0700 (PDT) Received: from p508fd39e.dip0.t-ipconnect.de ([80.143.211.158] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o7GG4-0001Vv-Rz; Fri, 01 Jul 2022 15:00:28 +0200 From: Heiko Stuebner To: Alessandro Zummo , Alexandre Belloni , linux-arm-kernel@lists.infradead.org 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, Samuel Holland Subject: Re: [RESEND PATCH] rtc: sun6i: add support for R329 RTC Date: Fri, 01 Jul 2022 15:00:28 +0200 Message-ID: <5026101.q0ZmV6gNhb@phil> In-Reply-To: <20220626042756.58961-1-samuel@sholland.org> References: <20220626042756.58961-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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: X-Mailing-List: linux-kernel@vger.kernel.org Am Sonntag, 26. Juni 2022, 06:27:56 CEST schrieb Samuel Holland: > 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 On a D1-Nezha Tested-by: Heiko Stuebner Reviewed-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@BYAPR20MB2472.namprd20.prod.outlook.com/ > [2]: https://lore.kernel.org/lkml/20220203021736.13434-3-samuel@sholland.org/ > > 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[] = { > { .compatible = "allwinner,sun50i-h6-rtc" }, > { .compatible = "allwinner,sun50i-h616-rtc", > .data = (void *)RTC_LINEAR_DAY }, > + { .compatible = "allwinner,sun50i-r329-rtc", > + .data = (void *)RTC_LINEAR_DAY }, > { /* sentinel */ }, > }; > MODULE_DEVICE_TABLE(of, sun6i_rtc_dt_ids); >