Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1548299lkv; Wed, 19 May 2021 12:30:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysRr8QouxDx+8RL08iLk/JHllFpZG7hDKx7Jc9/+EaEF/J6eiQIubfVH566SXOmTHqsZz+ X-Received: by 2002:a05:6e02:2149:: with SMTP id d9mr726517ilv.162.1621452518949; Wed, 19 May 2021 12:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452518; cv=none; d=google.com; s=arc-20160816; b=uSAHTK+eyIKwfnmE4YTFElm/86sxCJJ/a8eBoJMIxK5q2HI3b5ZVTYkccEPEToCJcn INWOiIouA/XOTNzib3IhhhkCwNEx82kDRxVn4WELuNaZy+n5MlQ1+dc8vYd64a6SBXpc DkOyusqdjg+dXiBa7UvfRlAS/JQ8nkkfTwJ0GwowCnHE+qvs/vFhf1KHHHcxwoHMvDj0 rZLl4jK7CdXSuy7PAuUnwlKRMB/6yN80uQFMrZN1Gz5d5ESHygDQeFXrtM3pohVagyeX 3EMNFDgFL8OcoEEVoCTYozyfcS9Ctz3e8mlmhogjka3EjDTd/PvqG6Tul4Ij7zXD+MZy NQVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=s1Fhvz3CKNZ6fhrutdBf9B3N8RFbthTeisvuEjZecqQ=; b=UWlYoGt7nFJ6mE0dPGyjguvEoSDZv8UUq5ljoNweyegt/vhirMUmRPqKrOl/G0Wqz0 2f4jdn8qdReatpJIDTDRKtWXcnS+OcytKGsRP3yhRBkDtuV0nLPASNUI/AXHfX3MrS8m puUiEhwT5HWsylsgQh9c2A9o81I3eYdHpVFkYVms0O6fYBZOkvUISXsrWVW8+bFu8qKs ldI4ncjgIEDPiONvwb33nu86KTVGVpYCyWLeuDSKN7TO6rwaIWX9u2RN37HWT2EPiniM MnGqmxpQVXM3A7Oazhfk1VBD9M8tUa/aBehG57EMQsjBz4aZipe0oamudRI1hzDBt/eQ PF2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si186316iow.13.2021.05.19.12.28.26; Wed, 19 May 2021 12:28:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348703AbhESKns (ORCPT + 99 others); Wed, 19 May 2021 06:43:48 -0400 Received: from foss.arm.com ([217.140.110.172]:58920 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348432AbhESKnj (ORCPT ); Wed, 19 May 2021 06:43:39 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 945F1101E; Wed, 19 May 2021 03:42:19 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7C8CE3F719; Wed, 19 May 2021 03:42:17 -0700 (PDT) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec 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: [PATCH v6 05/17] rtc: sun6i: Add Allwinner H616 support Date: Wed, 19 May 2021 11:41:40 +0100 Message-Id: <20210519104152.21119-6-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20210519104152.21119-1-andre.przywara@arm.com> References: <20210519104152.21119-1-andre.przywara@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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