From patchwork Fri Apr 22 15:41:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: icenowy@outlook.com X-Patchwork-Id: 12823679 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B7ADC433FE for ; Fri, 22 Apr 2022 15:43:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZZ83rbHAXN8VvqRHJL4I3lUqm2PgwqN4+A3RYFO+5lU=; b=l9VnXHKMrXj4FF zeePkJANusI6By/Xac9d9prQvVP6EBBX2KzaZ9cjVZydD5qyD5LE92wOShMLwA2XRevRqcx7Sk0Xz zJOlwpdQHRLRvBk1lvBscnpI7GWgcjTIbFj3FkHBEp2GBpITQeYWxGNYGWXuvCiCgF10XbO/T1XsH 5Pz1ganluYP+UaDDz5NJPfjDTkucygD+GVwdoyBrSU+qCXYcOrAGFFZH8QhwB0YqVWA5JKcajdPQB YkoHzOuR+OjxTRkOhV2WyygjhpNM/tRPpEhG4cr7xxL0c+qSSivbF75UwmlKqqYm30cqWDzgt2XeL L8tAfp+5fNcYqO6cGq6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhvPv-001Adn-Of; Fri, 22 Apr 2022 15:41:55 +0000 Received: from mail-bn8nam11olkn20826.outbound.protection.outlook.com ([2a01:111:f400:7eae::826] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhvPs-001AcN-RF for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 15:41:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nRaHV2xdrKlTnztMWr3ShF0NNJkxGsxfErquBWVa5CbmcznaML6eG8JZ9zfLGvG9w9UYduGZRaLwZGny9AmaLeaxXO3HbZ46/QWW/L3FmAf8gwM8tNMvf+wvydf2V9be13RsWT00CV87RqRWMDirrSZL1rvzfL21bvDDHZuKanUQ/XXDCNn9HVmNKA7Fn+hLjElRBG+jFyrayuhtNP9ULPsRTi1CKtJHV0ZSoVQCJP3Q95U3rH3E1gaSfNM0YP4f+Q7dYb9lV9skjQfkVp4JCEK4HcgVQX8iFN5SyENJBdONg78wEKvsA1BxJp0MNZQqlvOFOTUjC7U794qlN7JnOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gvoIg0xCoDbQbFXZmqH9PfX08WH/AvKhr5AHr7a1Bxg=; b=fSmY5Qqzk0TdDXG1rRVBmJoQtQ3ZLX7zG8medgH/02NYI4Wjbe0tzMNVSF+3jt6ZP2FSVEzwqybtFtIeL5zGsjv3ugqVeRkSJ0N/thRqAAE9BVJBvWZazDuOqAeqv2YTi6V6va9ta7lYJhCqqdCj7OWNuzgqvgBO9+n3P+CJzJi9dg/kayYA+VClfe+lpdzmsPD5PIFkIpcPvYfdizRep6HdnV0kvotgL3Ni5gOeSJ17o19Oww8T5Rj149fAFFYV+276dOQDQk2U8wnJG1HT2Da069Ce6m+leAkve82f2xeabYepWmCXfQSLHVdiJ5UjIbecZEV/aPNfxkJPnBmqgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gvoIg0xCoDbQbFXZmqH9PfX08WH/AvKhr5AHr7a1Bxg=; b=EhI7dqhBK4K3Yh2o+2mTHWbJcyYwkknJB+NG3wARiqcjSRpnb4PuOmUz58pEyXyYpBWi1aU9k156h+mKyGjc3NmQ1Atht32LBLauzKG56QHU5hpu7DgpySp+3ACSMWCPBuKe3xvZRu/qHgIvQ5C+SyLw4oBd6zY2fa2fPNqpHIZbsK4GleiJmkES9uPLEmnz1Fi8sPTUTz9aLmOP1+GUEtGzMC2TZT6HeBqJno3qvI0IblWxzwFs3HwldINg2IVuHoQeBIrJ0awkmSG9mQXv4eh+EDyKt6xLosyumfILADRlGOjHnvdn3pHAKCTaWIA5vWEgFZviFW3kFi1Lyew/2Q== Received: from BYAPR20MB2472.namprd20.prod.outlook.com (2603:10b6:a03:155::16) by SJ0PR20MB3642.namprd20.prod.outlook.com (2603:10b6:a03:2e9::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Fri, 22 Apr 2022 15:41:48 +0000 Received: from BYAPR20MB2472.namprd20.prod.outlook.com ([fe80::3480:160a:eb92:d6e3]) by BYAPR20MB2472.namprd20.prod.outlook.com ([fe80::3480:160a:eb92:d6e3%6]) with mapi id 15.20.5186.015; Fri, 22 Apr 2022 15:41:48 +0000 From: icenowy@outlook.com To: Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Ulf Hansson , Linus Walleij , Andre Przywara Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 04/12] rtc: sun6i: add support for R329 RTC Date: Fri, 22 Apr 2022 23:41:07 +0800 Message-ID: X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220422140902.1058101-1-icenowy@aosc.io> References: <20220422140902.1058101-1-icenowy@aosc.io> X-TMN: [Dyt7YlPL/rJcXW6LKWcMHIxSxU5OtKRS] X-ClientProxiedBy: HK0PR03CA0116.apcprd03.prod.outlook.com (2603:1096:203:b0::32) To BYAPR20MB2472.namprd20.prod.outlook.com (2603:10b6:a03:155::16) X-Microsoft-Original-Message-ID: <20220422154115.1068642-2-icenowy@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8e11d460-19f8-4650-7703-08da24769ce5 X-MS-TrafficTypeDiagnostic: SJ0PR20MB3642:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3GQQ9S7ArIv4zr6gXV7o/gBbpG4iU5CHxqMR+KRBJRLpZ20N7ImI6OU3vJUQG2EcQlroqIGZk4uiAj9HKGy1wJjCAFF3pEtDGPNXoQpOkLvAYsBy1eCHsStcBTIT1ucmBBH7+BIQpTYrGUikJj/P31ji4UQ5DGVnT7RpUgWgTrDSjzLHqIzyVKNVxegXGUFH41BtlGqMM5T1QaYQ8v0+AqkAn1o2XAOLmi7QmqsPwpRQogM3Op0zxlimu32CvGJuD7pxn8iM+1sFQSnY3YdWqTx7U3vZCX+IGFcX9QbmrFSs7BHvoMri5n4yA8trBDHtkH3UBIY8K3lLpNG6TVpVer7N5DfVAkUpPoGppdu7I56EIg0pV70TFCzkmJqgKPGLwFudBevkJiVg+5x2o/JjDhf3UQ2e3tTHbvtDcW3T7d1GYTn0LPKJx9mR482+BBRqoau1oK5Wk1+oZP0wHTPCugt5/xkOweP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yIeWf1HbCRvmvs6t1rCWf4dP2LI0wmwrcqROEAYXqobQUBsdz7n7f3XF4BhEHcG9dBet0rfJzEySRlkgYh8Scd/qO9K1X80O0Imj8XmeEsm1uzanrH6nEcChNi2mXPS6JdrrHsr/TyQuweGiFmulcSdYrFqR9EJUzrLAkSwDEGZDdIielj6TdadYdsiWZaXTO83HyKm6b2cL2t4PjgU9JAGa2QV6iHZnuDqeoVIbgu0G3On8CzDSRq25DRXudirGhfNt+i48e938AOcybQMtSQuMcODkcTBx5GMiEu1+IN1RMLU+tsXN+mpbiQzE2lBLeAXeIF3Cc0IjwK7Q2905ERcUucw1xH4PTipFrDHjAi0AqRlIB/0QgkmsF02bWUo/zZ06f+GliNFoccz5qQBZyHD1oA3jD924dXA0uSZCt0BW+9mdWk+VL2RPAvtaWaXce9xjkeMBjeEKgV+utzWL7MPo9Qj2uCAMHWgzt2Q+l1AGFYqw3UmAPnrvfCYFMsbJ9nyEhj+8EHX87nhytv2dPdBSKut7gdUQfRfyJol+PdlJA0JuByw= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e11d460-19f8-4650-7703-08da24769ce5 X-MS-Exchange-CrossTenant-AuthSource: BYAPR20MB2472.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 15:41:48.7589 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR20MB3642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_084152_941205_C99A2673 X-CRM114-Status: GOOD ( 12.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Acked-by: Samuel Holland --- 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 5b3e4da63406..522e28fb05c9 100644 --- a/drivers/rtc/rtc-sun6i.c +++ b/drivers/rtc/rtc-sun6i.c @@ -816,6 +816,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);