Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3807653pxb; Fri, 11 Feb 2022 08:10:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPsOjWw5ahQB81AkHQxygfsuUoIS2DYnS1ZV1O1cnQyC75nRjJUtjjKXxbLr8pXa6wvcRs X-Received: by 2002:a05:6830:918:: with SMTP id v24mr843128ott.246.1644595800204; Fri, 11 Feb 2022 08:10:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644595800; cv=none; d=google.com; s=arc-20160816; b=L7e+V2S4/Unh0dVW0R7wVvkE5cnV0/aTNYEZUaLfi3g/wu7YN0PbUcdFjOmapgay2K JnkbRTFqaCC1//Z6cYCZcrPDApAXhGkOvNLKJOsP9ARymWQ77v2J27KYfIAsoBwbZAQQ VBF1QpJYBV/L23x2eudEHAE+Inz5C9dq41kQ/bCc7b/dDbFpzYNI/1vS1ADM9wU8rado cAPl0/zuvpF5wUyt6fRZA63NBa+mVg8KxkWjxRupShYIOBAjOVBfvY5Khils9ybojPXB TFZIOF7MGwDMMRM4IPV+2NJNPB3GClYll0iGSSLjDosTjPyI56YP0VyAq+t/B4bu0gjm TcDw== 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=e2XY8fgsE9P7blhTWifxc87SLaDIl9Wqbf29Qk/PCB0=; b=xSr8jn08SDYyWo7JvjidUahXZGpQLzo1KP+AoWWKzrYGClryMzjMfvTIcLblBlY6GZ unFG+AF+h775yI0E2nhZC1eu12erk/IxHZPgKXNnbvV1MGX5z1nZOBpUvdoldArhY6cb TDayr1y+X7wr+bDzznpBpRry7PtGM5FleTZLYCvYFalxj2oo2buD5EN94zWc3OCx/V0S xgVJQLDr1M3zzJppQnXcEIR8YKMAmKtFmRaq3/CwmLHL3ewJh2Li7p3gZtd1mNGzPMy8 mEwPPmRe06jHyYD1HzcCPehjWa5RkueC5OKnupja4+iLt6SZRzcZawgS2rS+8xarAJ6r oAmw== 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=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cz16si1358540oab.301.2022.02.11.08.09.44; Fri, 11 Feb 2022 08:10:00 -0800 (PST) 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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350043AbiBKM1M (ORCPT + 99 others); Fri, 11 Feb 2022 07:27:12 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350006AbiBKM1B (ORCPT ); Fri, 11 Feb 2022 07:27:01 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4C799F28; Fri, 11 Feb 2022 04:27:01 -0800 (PST) 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 1A9AD1477; Fri, 11 Feb 2022 04:27:01 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.196.172]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 655FD3F70D; Fri, 11 Feb 2022 04:26:59 -0800 (PST) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Cc: Rob Herring , Ondrej Jirman , Icenowy Zheng , Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org Subject: [PATCH v10 06/18] rtc: sun6i: Add Allwinner H616 support Date: Fri, 11 Feb 2022 12:26:31 +0000 Message-Id: <20220211122643.1343315-7-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220211122643.1343315-1-andre.przywara@arm.com> References: <20220211122643.1343315-1-andre.przywara@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The H616 RTC changes its day storage to the newly introduced linear day scheme, so pair the new compatible string with this feature flag. The RTC clock parts are handled in a separate driver now, so we skip the clock parts in this driver completely. Signed-off-by: Andre Przywara --- 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 799d98ee6df6..5252ce4cbda4 100644 --- a/drivers/rtc/rtc-sun6i.c +++ b/drivers/rtc/rtc-sun6i.c @@ -831,6 +831,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.25.1