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=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 6752FC2B9FB for ; Sat, 22 May 2021 07:29:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 46D2061164 for ; Sat, 22 May 2021 07:29:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbhEVHa4 (ORCPT ); Sat, 22 May 2021 03:30:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229979AbhEVHaz (ORCPT ); Sat, 22 May 2021 03:30:55 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3823FC061574; Sat, 22 May 2021 00:29:30 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id f6-20020a1c1f060000b0290175ca89f698so8567374wmf.5; Sat, 22 May 2021 00:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BteD19/XIMy7sPKSp1FwggzNL7lWZZ0MvdiM4zhFQzc=; b=Bo15U9Y20Hqb3NlsFgxT3yszVwDyhuDGbpVOBCujpbnsPmteKa/z8y5SpAhnV2Gnyp SoJxCuBigGF+QWO69FsRYTvpvqr7FWs90dhyFheLpGldqzTW7nY2uUZorHFRM35jz/Ug 2VDPS7Y3Kpi6R5XyE06Nad+Jl0DGIO/bkULFA45jO+lT05B+3valBRi5YGeS8CxiQp1Y DljyhPdR+r9+Fugom1ciFE2c1EFKJ5JTOC8Z1h6PySU5NXsaR2yDoi16fQEzD0QNEMuk UsUpF+Jscf0ujBCx3uRiIF34fL45zEDMfy5wp1wOX9RcN6qAFGZlqvWbsYvNXe1JXnWw inNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BteD19/XIMy7sPKSp1FwggzNL7lWZZ0MvdiM4zhFQzc=; b=CieWTJu8P8kHuskHwEHPuELYExsWXMpG3ACEqx5zvQiFYegWA1p0OtiqC77sIZCbj/ ZnujmCelfKron0ryRtr5SlgAr+n6xVO3BRBDFUxiwX/tInCP5EVzJFp85OSJtZowt6jF RmWPfGx/87XabgIXtRJ3Jfq0peo+tBeg345DLUIs8pO9KMcy486rQCcrlraMNpkCMb4R UwlQvOeiDRD/UrottqyjESAOFoLsoKg2k8kUXU8dQk+aEqsfjpZn2FLTjf/h4UgXdK62 7RiSpeXpvL5PDD2tPxuRYyD8qGm7tPNlqGbGlDWNOAlqtinm7B3IJdU48yBvmQ5r1UNO y+MQ== X-Gm-Message-State: AOAM532rrtsFO+6QHFzwcdKyyna7y1nNlpUGek7dDkjzp8U0J/Aa7I1/ +9iXD0ydXclSUmgcWMk3V7w= X-Google-Smtp-Source: ABdhPJxdyxnpBOl7HA9WGGTO11eaFSwsnPhX0cbz4gXc8j4i+pmAwPZLypk9MiEz337ZzicvShO/Xg== X-Received: by 2002:a1c:402:: with SMTP id 2mr11902978wme.7.1621668568203; Sat, 22 May 2021 00:29:28 -0700 (PDT) Received: from kista.localnet (cpe-86-58-17-133.cable.triera.net. [86.58.17.133]) by smtp.gmail.com with ESMTPSA id r5sm2044992wmh.23.2021.05.22.00.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 May 2021 00:29:27 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard , Chen-Yu Tsai , Andre Przywara Cc: Rob Herring , Icenowy Zheng , Samuel Holland , Ondrej Jirman , linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org Subject: Re: [PATCH v6 05/17] rtc: sun6i: Add Allwinner H616 support Date: Sat, 22 May 2021 09:29:26 +0200 Message-ID: <10265315.EKgO2cQaHd@kista> In-Reply-To: <20210519104152.21119-6-andre.przywara@arm.com> References: <20210519104152.21119-1-andre.przywara@arm.com> <20210519104152.21119-6-andre.przywara@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andre! Dne sreda, 19. maj 2021 ob 12:41:40 CEST je Andre Przywara napisal(a): > The H616 RTC changes its day storage to the newly introduced linear day > scheme, so pair the new compatible string with this feature flag. > So far the clock parts seem to be the same as the H6, so combine the > compatible string with the existing H6 support bits. There is one more difference - H616 alarm value is now broken down to days, hours, minutes and seconds. Best regards, Jernej > > Signed-off-by: Andre Przywara > --- > drivers/rtc/rtc-sun6i.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c > index 0228e9dfd969..ec0cd0ee539a 100644 > --- a/drivers/rtc/rtc-sun6i.c > +++ b/drivers/rtc/rtc-sun6i.c > @@ -382,6 +382,8 @@ static void __init sun50i_h6_rtc_clk_init(struct device_node *node) > } > CLK_OF_DECLARE_DRIVER(sun50i_h6_rtc_clk, "allwinner,sun50i-h6-rtc", > sun50i_h6_rtc_clk_init); > +CLK_OF_DECLARE_DRIVER(sun50i_h616_rtc_clk, "allwinner,sun50i-h616-rtc", > + sun50i_h6_rtc_clk_init); > > /* > * The R40 user manual is self-conflicting on whether the prescaler is > @@ -773,6 +775,8 @@ static const struct of_device_id sun6i_rtc_dt_ids[] = { > { .compatible = "allwinner,sun8i-v3-rtc" }, > { .compatible = "allwinner,sun50i-h5-rtc" }, > { .compatible = "allwinner,sun50i-h6-rtc" }, > + { .compatible = "allwinner,sun50i-h616-rtc", > + .data = (void *)RTC_LINEAR_DAY }, > { /* sentinel */ }, > }; > MODULE_DEVICE_TABLE(of, sun6i_rtc_dt_ids); > -- > 2.17.5 > >