From patchwork Tue Oct 15 10:51:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13836166 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 5353DCFC287 for ; Tue, 15 Oct 2024 10:54:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type: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=G2ZoT/o0BbX+Csgj+qBZ2+0Lpbgr8GJxoJnuxScG7do=; b=0QXZy7ehKE/bYbQ37xWo6WqP58 NTsFZPr/sMJ6MmGIirGRXRI3H5NMlhjwpcSsnM0w/tAgyG2/VFQzmPuWSuKc0+wfze2l0QQAdpO7F n/vuNm83oqqk8kbYot9SpALvrfkKBNeBafBwKRqb7jxOsEMUybecLhodEXzn1bAAlik66AjiTErGf JLjrnDlwt+RPST45bdJnICWMl3sBcJO2ZEI6bMz+AexzAvAWZ82iCNpFxMA8JSGniYFoPTmo4WIrP j+OPeLzBUhE0c6rLem5rY0EQgsls6SAFeAkRVy1LjoHzaoDkbAJnNNneLbTwzoaI6rYdZsh9FvHaz dlzIbhmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0fCN-00000007v2Y-1CAI; Tue, 15 Oct 2024 10:54:43 +0000 Received: from mail-db5eur02on2060e.outbound.protection.outlook.com ([2a01:111:f403:2608::60e] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0f9W-00000007uLv-1qQE for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 10:51:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hgV6K5inuYFo3p8nmAX+paSjGaw4c+Ommwaeoq6arFrqJU3Xk48Xv1wmU/kKdYXrZyjv4KK4WbDSZ2aqUAkmxj3ZyRGef5nSCAGiTwlix4SWS6Vn25VOHMfqOC3OrEm0lYNzPwS+xBlg3T6vtIhZTgEp0LyCySgnCZyE6bHcAe5COsg4WcdhW/HElM9SHKnvPyI/Fs+prLDwdLFRF9sUXPYwToFwUOMehUGHdUEOSbgH9htKssrUOfnKVgoZSVvwaKZm6pWNvhWZbM+Z45RpCmBm1q34paBSNROghmz4qh/uivq4gCEsUGZGgGg+wQsid+XxzBFPonaHxxgnDVOKwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=G2ZoT/o0BbX+Csgj+qBZ2+0Lpbgr8GJxoJnuxScG7do=; b=lG7/x8/tDGsXvoaGHvjYe+irCLInLiYD3g66ayvg6glRDy8W80HeC3GafFi+HZn8pzdDUg4v8HegvkTTwap0tfrJEEjYeuGxTvPEmNSvVh51LVY6w6bcBR8ajkka+2wcdQdMxfPiUyCK5ELOGTigZh2o7dPgZkg/bWpd9v8c0q4QuJR76uhXwg8tqdcCHh1T78J2g6whSh2aUWyjxs+LXJ+9PjSBBJq6ga2/DiY2dqGKX0ziyCmhFKn6rkSepkfUdVodXU+ULgsvgiCiB0E8Xa92sAMArQ6ggo3yW9ibgbpIDLhiX/PdAfiULfz2Db60XP8wMwC8w9nvZliYLvC4LQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=G2ZoT/o0BbX+Csgj+qBZ2+0Lpbgr8GJxoJnuxScG7do=; b=SjFaqYAmi2nVTfDS/wq/s0+ntQEnAzCxZd4V8ZYME3KTAyk5/KOwVfNASifHzeGWST6C7bMf9ToqAjX5mBB9DCnJXAxU2BTYtcRlgqMkNu2o8UTqDd6PaGJBB74WqbEnLQxRJbEBR/oIPvIOcuI6M8c+3X4lDwhZLW5OiqbcimSuuvV9fjpNHP++H7Ns5qvmoxPLMis9A1nnVoeVVZlg45P7pBDBcOhMX05EZArCjoYZZv35c1p0+QH76Tk+JrcHALUBAelrQ6BOtDYc3v+bTzgn87f3nDowkZDFHYPCnhxGNLsrKapDlUoYY0gDSGUcLmV/ZGcT4jCX03KTlOL9Rg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by AS1PR04MB9238.eurprd04.prod.outlook.com (2603:10a6:20b:4c6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Tue, 15 Oct 2024 10:51:40 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 10:51:40 +0000 From: Ciprian Costea To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP S32 Linux Team , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea , Bogdan-Gabriel Roman , Ghennadi Procopciuc Subject: [PATCH v2 1/4] dt-bindings: rtc: add schema for NXP S32G2/S32G3 SoCs Date: Tue, 15 Oct 2024 13:51:30 +0300 Message-ID: <20241015105133.656360-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241015105133.656360-1-ciprianmarian.costea@oss.nxp.com> References: <20241015105133.656360-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM9P193CA0026.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:21e::31) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AS1PR04MB9238:EE_ X-MS-Office365-Filtering-Correlation-Id: e654446d-3b98-4f33-c837-08dced075961 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?5px+BAEk9FLH4JaA7V+O2LETg9cjTPw?= =?utf-8?q?5BnMbBKTkH3hezLP7f6MIuJpSlYDF2pehKusBn1/3I/Fx0qnLrp1Nn1oeogFCBTrE?= =?utf-8?q?SNF1Wg77j0yiBTl5QcKmPbaKEFBSDmHD87rcyE3w262ASWKpgqtiANocwZ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JcWiUxQqETh2EGIs/mX0hgaXe?= =?utf-8?q?qz3iLZfEn7qbpE3PHbVFIrasp8AbAMImiMvWxIR8HgiNJbmE4KPK/8Uy37wv1KqeY?= =?utf-8?q?Hy2Fwk8tuKFfbMY5gUaJ/nSuUdCPHe2FwqzmgcPlhQXuFr4vNGipugOwJIuKQDIhm?= =?utf-8?q?LqskdOPsXbObn2Hy+RqQH0u8ivePXVbf1Q2Beij6dYuPbIBYBAyn9tWbMc=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?J/38/HM6Q0IExg5kh0xU5aWd5WdS?= =?utf-8?q?T3qRo2JTTVxFV49j13hktNIHre6kKPCxcDxmOmTpXXjsaYvX+zIz2sRBdqwnGOBUC?= =?utf-8?q?7wr49jaGOF1hx9fp774fRgMN5LxK1DS4un+kG01NfaNs5/OshWMbT/7LBVutKa4My?= =?utf-8?q?ta0xX+IPzqHtDzEsBJASnqoHijHBJrQfZH/vsqiRiKbE6sROi5E1Egw3fqi1x98PX?= =?utf-8?q?OV04GhXrV8FqjddRfvsu6Y3LDzTo8WQPUZdMUp/rIqcByY4q07foepw3atQg/Q/CW?= =?utf-8?q?KhqaUbZquKyMtGwWlDdExFmjl4il9Cx5IjkPhCbS859qmdqRjXnfazkhubsw4aAXv?= =?utf-8?q?w7ZDOzuzYBb9A2iE3RnnwenezZh4AiNJ07pXVDly3XtvD5WUrwuB+tqsbfPEFZy0A?= =?utf-8?q?IcIafv84rpWkYa6bHOGwSwFkMGSMws0PdxkVrCW2t0dAt3blb8Fn3lYCmZhXEhAHM?= =?utf-8?q?5O3aWA0FsUGXQeWhwphJKXR15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3BwTBdz0Kd+bc/I2PiaDB2?= =?utf-8?q?vgvU70r9DIxYaPR7b9/8zOynGx0eFHpeB8m0LHTclJDKH0+xWC2ZxGa8ihwDE+1lN?= =?utf-8?q?FkrBVEYoyH4DA8p41fl1D9nm6ZVwxQhtRiZaDsYlVkB7DtGmUZvJ4PcL9ptLiU8dP?= =?utf-8?q?dzBEI3Xd8+3PiHUCyQiykt15AOsBB6WdKQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e654446d-3b98-4f33-c837-08dced075961 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 10:51:40.1438 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: oJTqWPxJbwHQ9OEwiEq2ahLueAOUWtKUzqwamqYojcGmAF5Z6+EFQTIAh9uAqh0Uc86kpsiiR3dDmfLLw9V6Y6p2mmyjGykrQEpps9DPibQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9238 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_035146_518148_90569507 X-CRM114-Status: GOOD ( 16.32 ) 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: Ciprian Marian Costea This patch adds the dt-bindings for NXP S32G2/S32G3 SoCs RTC driver. Co-developed-by: Bogdan-Gabriel Roman Signed-off-by: Bogdan-Gabriel Roman Co-developed-by: Ghennadi Procopciuc Signed-off-by: Ghennadi Procopciuc Signed-off-by: Ciprian Marian Costea --- .../devicetree/bindings/rtc/nxp,s32g-rtc.yaml | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml diff --git a/Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml b/Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml new file mode 100644 index 000000000000..3a77d4dd8f3d --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml @@ -0,0 +1,102 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rtc/nxp,s32g-rtc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP S32G2/S32G3 Real Time Clock (RTC) + +maintainers: + - Bogdan Hamciuc + - Ciprian Marian Costea + +properties: + compatible: + oneOf: + - enum: + - nxp,s32g2-rtc + - items: + - const: nxp,s32g3-rtc + - const: nxp,s32g2-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#clock-cells": + const: 1 + + clocks: + items: + - description: ipg clock drives the access to the + RTC iomapped registers + + clock-names: + items: + - const: ipg + + assigned-clocks: + minItems: 1 + items: + - description: Runtime clock source. It must be a clock + source for the RTC module. It will be disabled by hardware + during Standby/Suspend. + - description: Standby/Suspend clock source. It is optional + and can be used in case the RTC will continue ticking during + platform/system suspend. RTC hardware module contains a + hardware mux for clock source selection. + + assigned-clock-parents: + description: List of phandles to each parent clock. + + assigned-clock-rates: + description: List of frequencies for RTC clock sources. + RTC module contains 2 hardware divisors which can be + enabled or not. Hence, available frequencies are the following + parent_freq, parent_freq / 512, parent_freq / 32 or + parent_freq / (512 * 32) + +required: + - compatible + - reg + - interrupts + - "#clock-cells" + - clocks + - clock-names + - assigned-clocks + - assigned-clock-parents + - assigned-clock-rates + +additionalProperties: false + +examples: + - | + #include + #include + + rtc0: rtc@40060000 { + compatible = "nxp,s32g3-rtc", + "nxp,s32g2-rtc"; + reg = <0x40060000 0x1000>; + interrupts = ; + #clock-cells = <1>; + clocks = <&clks 54>; + clock-names = "ipg"; + /* + * Configuration of default parent clocks. + * 'assigned-clocks' 0-3 IDs are Runtime clock sources + * 4-7 IDs are Suspend/Standby clock sources. + */ + assigned-clocks = <&rtc0 2>, <&rtc0 4>; + assigned-clock-parents = <&clks 56>, <&clks 55>; + /* + * Clock frequency can be divided by value + * 512 or 32 (or both) via hardware divisors. + * Below configuration: + * Runtime clock source: FIRC (51 MHz) / 512 (DIV512) + * Suspend/Standby clock source: SIRC (32 KHz) + */ + assigned-clock-rates = <99609>, <32000>; + }; From patchwork Tue Oct 15 10:51:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13836167 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 48F5BCFC287 for ; Tue, 15 Oct 2024 10:56:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type: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=scdQMh1u3pFKc8xvDYykNJLGfhv/s+xVq1xIloBoUto=; b=MsEoPYiSnHNBgVdoW8NOC+cdtW zOD4CNfeTsy4VGM4zdVz4mTe9omu/R4JrOWx0MqiYdI1HGUnUpl7g3xsUnO19oG6IWO8xWKjjzd5d Ar4XY5Xbx7yBBD0tsSOcQB8XlAX+GWb9jLTv2ShqWxXyFCjCZui10LSpjbqTUUwSIU+PMVnujV4+x VcQmsSNwZx3/m2338R8Taj3vwohjvURG5pKwX3jIn2h8XK6RfrC9icsyC6M56Sww1o7EaEmVmjfc3 /4DNAokK7Wvs5JsCulfDpruuU+t1ADZkbSS/6zLodyW93FvqZFL/MTRf5reDir7J31nXdsuEB+CDI YYMOZVqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0fDm-00000007vNM-1xI0; Tue, 15 Oct 2024 10:56:10 +0000 Received: from mail-db5eur02on2060e.outbound.protection.outlook.com ([2a01:111:f403:2608::60e] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0f9Y-00000007uLv-1HxE for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 10:51:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UY7Hpaw94dk5YLlu9ST6qwzOGeeps0cDB6CkWtyuvbJLL/C6w3/MRRRFIp6somCQx9UA0jTGfZ8D+zh4zaPRe4AlAZ1OZ/Dq3Z+KxBXmFR8x0fAbYGBNo0YqrqExYHUUKcqoKSeR0PVuZkHCPpHdGjEPccpBQ9xIzwkrQ4AR5+YOVjyWeGlT/k+vGlfe1GoOZX0GBOHxtrioz+xMUvmJxi/oUc+Q+TCQk4I4fsfo8N0gC5TpqI9g5LIO9O5EJBljqO79e1aAWKkSdOGId9m05Q6Mfoxz7HpdnhBPz7Eux1YrtBxpuOiM2bM+HJPsDFNp959TWx480bsFjf/qOlvG7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=scdQMh1u3pFKc8xvDYykNJLGfhv/s+xVq1xIloBoUto=; b=lW41f5fjRYjwCk5rwLJzmUvv0RdrQXxNQ9c10aZUtbS/lrznBonUoeDJ+bqPXzJrlHBsXz1fiSpoeRuAi65vQMAQFZjhJt+NKjQ+Z46Mz10bKgZHSCWzJKJNZFPrbaD0gNCjixzGftxiTIV497k9DtMVrBTddNmRLRBFtcf6SnSybYGArK4LHIInBjoZdkPy0ctRUEoH9Dk4yz/80hQVjwQxYDU7wAoqQYboA2B/M40ofvrXbs4vE4RxVz60qWwp11a2X14NB4akZkP126Ro5ur4wVrliseBjMkiUOquYhv7Xhy0eQLxvBrX6rhD/jCXP4l8l36oqdjrzlySbxLMDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=scdQMh1u3pFKc8xvDYykNJLGfhv/s+xVq1xIloBoUto=; b=H55vjS2u1GfBho9Hl4J1hckW4WNpW04Ev06IOq5wNQrOcGnLB1rSA6GFSMk0z9CSRNwr0HGAeJ1zk7Io8rtKG5dkLliL3/OCAhjLQcNOsBypX1gWbij6N1lrpQaj3jjILNLMI/El6wV/3GOMJSfqNyFgk9V/y7yrQx8108akFVSQFr/KToAM8+Oe3oSq9biKPluViVa6NA9hIuAhrPkkVZy7IQB6Q3v+MVhyDZhh31+Po/CT4yGrNsilq+AQIu5DxNKrc+Z4jFYXdMAgdLqGzMGkhVhMKAjJypSAC+cVXxixK/uHhV0Szl8pIduRE9eACG2eeRToaKBqPQ984QrYXQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by AS1PR04MB9238.eurprd04.prod.outlook.com (2603:10a6:20b:4c6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Tue, 15 Oct 2024 10:51:42 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 10:51:42 +0000 From: Ciprian Costea To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP S32 Linux Team , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea , Bogdan Hamciuc , Ghennadi Procopciuc Subject: [PATCH v2 2/4] rtc: s32g: add NXP S32G2/S32G3 SoC support Date: Tue, 15 Oct 2024 13:51:31 +0300 Message-ID: <20241015105133.656360-3-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241015105133.656360-1-ciprianmarian.costea@oss.nxp.com> References: <20241015105133.656360-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM9P193CA0004.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:21e::9) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AS1PR04MB9238:EE_ X-MS-Office365-Filtering-Correlation-Id: 32f498ae-a0fb-4e40-fe8d-08dced075a6c X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?QEMN1b4oDhRQboOheXgSTXzqyzzWzQr?= =?utf-8?q?EbKwqgtcVns0GTCX+8OdABiADN+OE7ZB3Myuk6fXyxkS2Y9qaA8xhe7LjQhm7+mut?= =?utf-8?q?nz+HS3xkihT3FLQGRZ2NyZKp7hHAkjLa1rCf+NXg29nGxMktGHTLR7r5VbGpbbfUb?= =?utf-8?q?KuMtWMiCeh/eXTjq3T/gpDWsUSkqAEfXpb2SwWzTd7b4WdRC93Dl/bKKmoXvtcbTe?= =?utf-8?q?7IaQdt5/w3OzR9hcp6y3eKIVepi7Rttxrck2GNprGCzKhGSyAbrvxC8/b/b9T5avz?= =?utf-8?q?IVT4fbr96Lbk5V4C1G2J3cL8wvvBTo2Lec/o/OwhlB9LldM8MZlGNH2grWHpOF+mX?= =?utf-8?q?e75w+B+v3q+wobNDZHdOx8t3cg6ZXstiEpGOnzInYTuZTl2IiEMDbMvgii+Rc21Sr?= =?utf-8?q?8MXrHeTMysFxY395gLZN/CRWSf8gXT4vHv+GZuVS9oBfzkxPM6AMsLhV0L6FbkSon?= =?utf-8?q?HPQCB/OIUbsojtTvEJz8RDBVBuvPT/sFUJ6iGD9e3zD9lfT8weyhL+KarYUEkBCg2?= =?utf-8?q?cDvXWdwgo2PiHADbl/0tpxS5MFlDfWSPLZgyhVtIEgv2LUCvJxB6jKpl6ARHW39tE?= =?utf-8?q?bIJO2p8tqYBjoW8OSNZeggchOtRJczsabdmj0dxt5iKVzBB69/c6ye2EMbGg4Nu+y?= =?utf-8?q?MrwKjp0j8RLWcCiABZ2v9+q13JgC3I3uvmTxioOaRGGuS/5IPPLFcH9HNCt/1sJ3G?= =?utf-8?q?6HYodBiVhNIv2S83EbvKGWerNxVFeV/AjfIUydfLgY4aCL3YL1ZjB3tgBKS1SkAxT?= =?utf-8?q?jNFD8th3qBXHnU+dqYFck7N4kBaxKJ/zi7qPSgb9ZK34i4jZTQsb8fkCUjSN+W8pE?= =?utf-8?q?jBDiIzH4VmNVyz8cPdWAbgYF5/Hw9EQ9OPd9OYOfzCONrMjTOlCsufrSx5mQDU1rz?= =?utf-8?q?GTpbv1LP+zFYWxutDi7Bjo57uQqchUg6vpe73O9ECMaljGh6wo21In3aeLqvTXreP?= =?utf-8?q?FWOfAa36TclIUCzykOgmqzGFk/SviyUWST9bRrGR1wrbLGgVmPQRNAUamubcgGwWw?= =?utf-8?q?0BUuf+Npm9yT7EX9oOdKwcGvhda2TE3xP0cSipW1GSGX+5rm4zrsAcxrTqoEBDFkJ?= =?utf-8?q?b9hLvfggBgnZ9hLvcyDHuBxmgR5pw8aL7kXvL+2xem1nDIZuUNhWom5Vuf2keDddU?= =?utf-8?q?aELzHwZIepSJ957tPRsgAtdVfNKJoD3kppkSVayGIJ7lPxbz7mccn6L28/V4HkRTO?= =?utf-8?q?k/c0Qi0zCoZuEHe/kblJLIwjeEhoZV8CVI4A=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?I6VnKbQ7Pj+KQmfwTVEJBVaXlIbH?= =?utf-8?q?mbgDABZFbnpRUisSHiGBlNFMLPl8wmykyg9GrLZki8wBUbd5WAXmIY6LPYtrIs2WZ?= =?utf-8?q?sQnEM07Wo6nrzHQ8Ro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j0cNp4HApMAFqEj+Xe5GIcl?= =?utf-8?q?fe3AgKYl8V7dFIMO4ZzElW2/+Ys+dmDzudu4elJp0s9kndZn5uuvNGlye+/ucbbOn?= =?utf-8?q?+vr2S8+FX7rmrKLQXkHzd90wm4ZOw9kL7b/cCufD8jmvdah6g382cYgBHdE1KorZB?= =?utf-8?q?Sz16/i5Q41ZE6CoVZPpK7Jem2Tr5jqg3sOmrAQyWakeA1jncxdeIC/xfARTZlq0wQ?= =?utf-8?q?kBwKOagFmFudF6+wwXzUS6e3n9eGARy++kF1tQDo69lUkYYN11ivKVEBW62xPPD25?= =?utf-8?q?LqdaJfHA+2vzyRRdEQkiGsUnh9hZKLHhQjWVdve/oEq2f9EPREHq+zt2Rxp/9SFbD?= =?utf-8?q?gutqgm4mKlUjvgR8CcUVhhAjyAyFWBjeDJOoy8ekXiakAOlFmXK0xqyFUymU7hhsb?= =?utf-8?q?VXpKxeXlFd6gmHeDxdbz7F34pUQhviW16VkCPW+B/3O5HNtUmtNJADC8VbdYL2hVT?= =?utf-8?q?xFj/1SjIxFDRYYPzVsUcPVYgB4RePvDjE1hgmJxq1XP+d8SNBMMiWzsJn1c5NJIzx?= =?utf-8?q?HR3juRVDaxOqb5VGxH6j2Dmy3/ftteNzDQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32f498ae-a0fb-4e40-fe8d-08dced075a6c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 10:51:41.9668 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sgFu5kAUdU+8Ub/TdgJhwHtxsw+iNzhcgy8u593XyPxggg7S7lLe3jKtiAQ9C9o0zupwa38oyiTWPCtRwoVuxujjff8TgGnpVnrYceAgvzg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9238 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_035148_415734_759E42FA X-CRM114-Status: GOOD ( 24.81 ) 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: Ciprian Marian Costea Add a RTC driver for NXP S32G2/S32G3 SoCs. The RTC module is used to enable Suspend to RAM (STR) support on NXP S32G2/S32G3 SoC based boards. RTC tracks clock time during system suspend. RTC from S32G2/S32G3 is not battery-powered and it is not kept alive during system reset. Co-developed-by: Bogdan Hamciuc Signed-off-by: Bogdan Hamciuc Co-developed-by: Ghennadi Procopciuc Signed-off-by: Ghennadi Procopciuc Signed-off-by: Ciprian Marian Costea --- drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-s32g.c | 778 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 790 insertions(+) create mode 100644 drivers/rtc/rtc-s32g.c diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index e87c3d74565c..18fc3577f6cd 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -2054,4 +2054,15 @@ config RTC_DRV_SSD202D This driver can also be built as a module, if so, the module will be called "rtc-ssd20xd". +config RTC_DRV_S32G + tristate "RTC driver for S32G2/S32G3 SoCs" + depends on ARCH_S32 || COMPILE_TEST + depends on COMMON_CLK + help + Say yes to enable RTC driver for platforms based on the + S32G2/S32G3 SoC family. + + This RTC module can be used as a wakeup source. + Please note that it is not battery-powered. + endif # RTC_CLASS diff --git a/drivers/rtc/Makefile b/drivers/rtc/Makefile index 8ee79cb18322..a63d010a753c 100644 --- a/drivers/rtc/Makefile +++ b/drivers/rtc/Makefile @@ -158,6 +158,7 @@ obj-$(CONFIG_RTC_DRV_RX8025) += rtc-rx8025.o obj-$(CONFIG_RTC_DRV_RX8111) += rtc-rx8111.o obj-$(CONFIG_RTC_DRV_RX8581) += rtc-rx8581.o obj-$(CONFIG_RTC_DRV_RZN1) += rtc-rzn1.o +obj-$(CONFIG_RTC_DRV_S32G) += rtc-s32g.o obj-$(CONFIG_RTC_DRV_S35390A) += rtc-s35390a.o obj-$(CONFIG_RTC_DRV_S3C) += rtc-s3c.o obj-$(CONFIG_RTC_DRV_S5M) += rtc-s5m.o diff --git a/drivers/rtc/rtc-s32g.c b/drivers/rtc/rtc-s32g.c new file mode 100644 index 000000000000..d6502d8bf616 --- /dev/null +++ b/drivers/rtc/rtc-s32g.c @@ -0,0 +1,778 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright 2024 NXP + */ + +#include +#include +#include +#include +#include +#include +#include + +#define RTCC_OFFSET 0x4ul +#define RTCS_OFFSET 0x8ul +#define RTCCNT_OFFSET 0xCul +#define APIVAL_OFFSET 0x10ul +#define RTCVAL_OFFSET 0x14ul + +/* RTCC fields */ +#define RTCC_CNTEN BIT(31) +#define RTCC_RTCIE_SHIFT 30 +#define RTCC_RTCIE BIT(RTCC_RTCIE_SHIFT) +#define RTCC_ROVREN BIT(28) +#define RTCC_APIEN BIT(15) +#define RTCC_APIIE BIT(14) +#define RTCC_CLKSEL_OFFSET 12 +#define RTCC_CLKSEL_MASK GENMASK(13, 12) +#define RTCC_CLKSEL(n) (((n) << 12) & RTCC_CLKSEL_MASK) +#define RTCC_DIV512EN BIT(11) +#define RTCC_DIV32EN BIT(10) + +/* RTCS fields */ +#define RTCS_RTCF BIT(29) +#define RTCS_INV_RTC BIT(18) +#define RTCS_APIF BIT(13) +#define RTCS_ROVRF BIT(10) + +#define ROLLOVER_VAL GENMASK(31, 0) +#define RTC_SYNCH_TIMEOUT (100 * USEC_PER_MSEC) + +#define RTC_CLK_MUX_SIZE 4 + +/* + * S32G2 and S32G3 SoCs have RTC clock source 1 reserved and + * should not be used. + */ +#define RTC_QUIRK_SRC1_RESERVED BIT(2) + +#define to_rtcpriv(_hw) container_of(_hw, struct rtc_priv, clk) + +enum { + RTC_CLK_SRC0 = 0, + RTC_CLK_SRC1, + RTC_CLK_SRC2, + RTC_CLK_SRC3 +}; + +enum { + DIV1 = 1, + DIV32 = 32, + DIV512 = 512, + DIV512_32 = 16384 +}; + +struct rtc_time_base { + s64 sec; + u64 cycles; + u64 rollovers; + struct rtc_time tm; +}; + +struct rtc_priv { + struct rtc_device *rdev; + struct device *dev; + u8 __iomem *rtc_base; + struct clk_hw clk; + struct clk *ipg; + const struct rtc_soc_data *rtc_data; + struct rtc_time_base base; + u64 rtc_hz; + u64 rollovers; + int dt_irq_id; + int runtime_src_idx; + int suspend_src_idx; + u32 runtime_div; + u32 suspend_div; +}; + +struct rtc_soc_data { + u32 quirks; +}; + +static const struct rtc_soc_data rtc_s32g2_data = { + .quirks = RTC_QUIRK_SRC1_RESERVED, +}; + +static int is_src1_reserved(struct rtc_priv *priv) +{ + return priv->rtc_data->quirks & RTC_QUIRK_SRC1_RESERVED; +} + +static u64 cycles_to_sec(u64 hz, u64 cycles) +{ + return cycles / hz; +} + +/* + * Convert a number of seconds to a value suitable for RTCVAL in our clock's + * current configuration. + * @rtcval: The value to go into RTCVAL[RTCVAL] + * Returns: 0 for success, -EINVAL if @seconds push the counter at least + * twice the rollover interval + */ +static int sec_to_rtcval(const struct rtc_priv *priv, + unsigned long seconds, u32 *rtcval) +{ + u32 rtccnt, delta_cnt; + u32 target_cnt = 0; + + /* For now, support at most one rollover of the counter */ + if (!seconds || seconds > cycles_to_sec(priv->rtc_hz, ROLLOVER_VAL)) + return -EINVAL; + + /* + * RTCCNT is read-only; we must return a value relative to the + * current value of the counter (and hope we don't linger around + * too much before we get to enable the interrupt) + */ + delta_cnt = seconds * priv->rtc_hz; + rtccnt = ioread32(priv->rtc_base + RTCCNT_OFFSET); + + if (~rtccnt < delta_cnt) + target_cnt = (delta_cnt - ~rtccnt); + else + target_cnt = rtccnt + delta_cnt; + + /* + * According to RTCVAL register description, + * its minimum value should be 4. + */ + if (unlikely(target_cnt < 4)) + target_cnt = 4; + + *rtcval = target_cnt; + + return 0; +} + +static irqreturn_t rtc_handler(int irq, void *dev) +{ + struct rtc_priv *priv = platform_get_drvdata(dev); + u32 status; + + status = ioread32(priv->rtc_base + RTCS_OFFSET); + if (status & RTCS_ROVRF) { + if (priv->rollovers == ULONG_MAX) + priv->rollovers = 0; + else + priv->rollovers++; + } + + if (status & RTCS_RTCF) { + iowrite32(0x0, priv->rtc_base + RTCVAL_OFFSET); + rtc_update_irq(priv->rdev, 1, RTC_AF); + } + + if (status & RTCS_APIF) + rtc_update_irq(priv->rdev, 1, RTC_PF); + + iowrite32(status, priv->rtc_base + RTCS_OFFSET); + + return IRQ_HANDLED; +} + +static int get_time_left(struct device *dev, struct rtc_priv *priv, + u32 *sec) +{ + u32 rtccnt = ioread32(priv->rtc_base + RTCCNT_OFFSET); + u32 rtcval = ioread32(priv->rtc_base + RTCVAL_OFFSET); + + if (rtcval < rtccnt) { + dev_err(dev, "RTC timer expired before entering suspend\n"); + return -EIO; + } + + *sec = cycles_to_sec(priv->rtc_hz, rtcval - rtccnt); + + return 0; +} + +static int s32g_rtc_get_time_or_alrm(struct rtc_priv *priv, + u32 offset) +{ + u64 cycles, sec, base_cycles; + u32 counter; + + counter = ioread32(priv->rtc_base + offset); + cycles = priv->rollovers * ROLLOVER_VAL + counter; + base_cycles = priv->base.cycles + priv->base.rollovers * ROLLOVER_VAL; + + if (cycles < base_cycles) + return -EINVAL; + + cycles -= base_cycles; + sec = priv->base.sec + cycles_to_sec(priv->rtc_hz, cycles); + + return sec; +} + +static int s32g_rtc_read_time(struct device *dev, + struct rtc_time *tm) +{ + struct rtc_priv *priv = dev_get_drvdata(dev); + u64 sec; + + if (!tm) + return -EINVAL; + + sec = s32g_rtc_get_time_or_alrm(priv, RTCCNT_OFFSET); + if (sec < 0) + return -EINVAL; + + rtc_time64_to_tm(sec, tm); + + return 0; +} + +static int s32g_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm) +{ + struct rtc_priv *priv = dev_get_drvdata(dev); + u32 rtcc, sec_left; + u64 sec; + + if (!alrm) + return -EINVAL; + + sec = s32g_rtc_get_time_or_alrm(priv, RTCVAL_OFFSET); + if (sec < 0) + return -EINVAL; + + rtc_time64_to_tm(sec, &alrm->time); + + rtcc = ioread32(priv->rtc_base + RTCC_OFFSET); + alrm->enabled = sec && (rtcc & RTCC_RTCIE); + + alrm->pending = 0; + if (alrm->enabled && !get_time_left(dev, priv, &sec_left)) + alrm->pending = !!sec_left; + + return 0; +} + +static int s32g_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) +{ + struct rtc_priv *priv = dev_get_drvdata(dev); + u32 rtcc; + + if (!priv->dt_irq_id) + return -EIO; + + /* + * RTCIE cannot be deasserted because it will also disable the + * rollover interrupt. + */ + rtcc = ioread32(priv->rtc_base + RTCC_OFFSET); + if (enabled) + rtcc |= RTCC_RTCIE; + + iowrite32(rtcc, priv->rtc_base + RTCC_OFFSET); + + return 0; +} + +static int s32g_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) +{ + struct rtc_priv *priv = dev_get_drvdata(dev); + struct rtc_time time_crt; + long long t_crt, t_alrm; + int ret = 0; + u32 rtcval, rtcs; + + iowrite32(0x0, priv->rtc_base + RTCVAL_OFFSET); + + t_alrm = rtc_tm_to_time64(&alrm->time); + + /* + * Assuming the alarm is being set relative to the same time + * returned by our s32g_rtc_read_time callback + */ + ret = s32g_rtc_read_time(dev, &time_crt); + if (ret) + return ret; + + t_crt = rtc_tm_to_time64(&time_crt); + if (t_alrm <= t_crt) { + dev_warn(dev, "Alarm is set in the past\n"); + return -EINVAL; + } + + ret = sec_to_rtcval(priv, t_alrm - t_crt, &rtcval); + if (ret) { + /* + * Rollover support enables RTC alarm + * for a maximum timespan of ~3 months. + */ + dev_warn(dev, "Alarm is set too far in the future\n"); + return ret; + } + + ret = read_poll_timeout(ioread32, rtcs, !(rtcs & RTCS_INV_RTC), + 0, RTC_SYNCH_TIMEOUT, false, priv->rtc_base + RTCS_OFFSET); + if (ret) { + dev_err(dev, "Synchronization failed\n"); + return ret; + } + + iowrite32(rtcval, priv->rtc_base + RTCVAL_OFFSET); + + return 0; +} + +static int s32g_rtc_set_time(struct device *dev, + struct rtc_time *time) +{ + struct rtc_priv *priv = dev_get_drvdata(dev); + + if (!time) + return -EINVAL; + + priv->base.rollovers = priv->rollovers; + priv->base.cycles = ioread32(priv->rtc_base + RTCCNT_OFFSET); + priv->base.sec = rtc_tm_to_time64(time); + + return 0; +} + +static void rtc_disable(struct rtc_priv *priv) +{ + u32 rtcc = ioread32(priv->rtc_base + RTCC_OFFSET); + + rtcc &= ~RTCC_CNTEN; + iowrite32(rtcc, priv->rtc_base + RTCC_OFFSET); +} + +static void rtc_enable(struct rtc_priv *priv) +{ + u32 rtcc = ioread32(priv->rtc_base + RTCC_OFFSET); + + rtcc |= RTCC_CNTEN; + iowrite32(rtcc, priv->rtc_base + RTCC_OFFSET); +} + +static int get_div_config(unsigned long req_rate, + unsigned long prate) +{ + if (req_rate == prate) + return DIV1; + else if (req_rate == prate / (DIV512 * DIV32)) + return DIV512_32; + else if (req_rate == prate / DIV512) + return DIV512; + else if (req_rate == prate / DIV32) + return DIV32; + + return 0; +} + +static void adjust_dividers(struct rtc_priv *priv, + u32 div_val, u32 *reg) +{ + switch (div_val) { + case DIV512_32: + *reg |= RTCC_DIV512EN; + *reg |= RTCC_DIV32EN; + break; + case DIV512: + *reg |= RTCC_DIV512EN; + break; + case DIV32: + *reg |= RTCC_DIV32EN; + break; + default: + return; + } + + priv->rtc_hz /= div_val; +} + +static unsigned long get_prate_by_index(struct clk_hw *hw, + u8 index) +{ + struct clk_hw *parent; + + parent = clk_hw_get_parent_by_index(hw, index); + if (!parent) + return -EINVAL; + + return clk_hw_get_rate(parent); +} + +static int rtc_clk_determine_rate(struct clk_hw *hw, + struct clk_rate_request *req) +{ + struct rtc_priv *priv = to_rtcpriv(hw); + int i, num_parents = clk_hw_get_num_parents(hw); + u32 config; + + for (i = 0; i < num_parents; i++) { + config = get_div_config(req->rate, get_prate_by_index(hw, i)); + if (config) { + if (i < RTC_CLK_MUX_SIZE) + /* Runtime clk source divisors */ + priv->runtime_div = config; + else + /* Suspend clk source divisors */ + priv->suspend_div = config; + + return 0; + } + } + + dev_err(priv->dev, "Failed to determine RTC clock rate\n"); + return -EINVAL; +} + +static u8 rtc_clk_get_parent(struct clk_hw *hw) +{ + struct rtc_priv *priv = to_rtcpriv(hw); + + return (ioread32(priv->rtc_base + RTCC_OFFSET) & + RTCC_CLKSEL_MASK) >> RTCC_CLKSEL_OFFSET; +} + +static int rtc_clk_src_switch(struct clk_hw *hw, u8 src) +{ + struct rtc_priv *priv = to_rtcpriv(hw); + u32 rtcc = 0; + + switch (src % RTC_CLK_MUX_SIZE) { + case RTC_CLK_SRC0: + rtcc |= RTCC_CLKSEL(RTC_CLK_SRC0); + break; + case RTC_CLK_SRC1: + if (is_src1_reserved(priv)) + return -EOPNOTSUPP; + rtcc |= RTCC_CLKSEL(RTC_CLK_SRC1); + break; + case RTC_CLK_SRC2: + rtcc |= RTCC_CLKSEL(RTC_CLK_SRC2); + break; + case RTC_CLK_SRC3: + rtcc |= RTCC_CLKSEL(RTC_CLK_SRC3); + break; + default: + dev_err(priv->dev, "Invalid clock mux parent: %d\n", src); + return -EINVAL; + } + + priv->rtc_hz = get_prate_by_index(hw, src); + if (!priv->rtc_hz) { + dev_err(priv->dev, "Failed to get RTC frequency\n"); + return -EINVAL; + } + + if (src < RTC_CLK_MUX_SIZE) + adjust_dividers(priv, priv->runtime_div, &rtcc); + else + adjust_dividers(priv, priv->suspend_div, &rtcc); + + rtcc |= RTCC_RTCIE | RTCC_ROVREN; + /* + * Make sure the CNTEN is 0 before we configure + * the clock source and dividers. + */ + rtc_disable(priv); + iowrite32(rtcc, priv->rtc_base + RTCC_OFFSET); + rtc_enable(priv); + + return 0; +} + +static int rtc_clk_set_parent(struct clk_hw *hw, u8 index) +{ + struct rtc_priv *priv = to_rtcpriv(hw); + + /* + * 0-3 IDs are Runtime clk sources + * 4-7 IDs are Suspend clk sources + */ + if (index < RTC_CLK_MUX_SIZE) { + /* Runtime clk source */ + priv->runtime_src_idx = index; + return 0; + } else if (index < RTC_CLK_MUX_SIZE * 2) { + /* Suspend clk source */ + priv->suspend_src_idx = index; + return 0; + } + + return -EINVAL; +} + +static const struct rtc_class_ops rtc_ops = { + .read_time = s32g_rtc_read_time, + .set_time = s32g_rtc_set_time, + .read_alarm = s32g_rtc_read_alarm, + .set_alarm = s32g_rtc_set_alarm, + .alarm_irq_enable = s32g_rtc_alarm_irq_enable, +}; + +static const struct clk_ops rtc_clk_ops = { + .determine_rate = rtc_clk_determine_rate, + .get_parent = rtc_clk_get_parent, + .set_parent = rtc_clk_set_parent, +}; + +static int priv_dts_init(struct rtc_priv *priv) +{ + struct device *dev = priv->dev; + struct platform_device *pdev = to_platform_device(dev); + + priv->ipg = devm_clk_get(dev, "ipg"); + if (IS_ERR(priv->ipg)) { + dev_err(dev, "Failed to get 'ipg' clock\n"); + return PTR_ERR(priv->ipg); + } + + priv->dt_irq_id = platform_get_irq(pdev, 0); + if (priv->dt_irq_id < 0) { + dev_err(dev, "Error reading interrupt # from dts\n"); + return priv->dt_irq_id; + } + + return 0; +} + +static int rtc_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct rtc_priv *priv; + static const char *parents[RTC_CLK_MUX_SIZE * 2] = { + "rtc_runtime_s0", + "rtc_runtime_s1", + "rtc_runtime_s2", + "rtc_runtime_s3", + "rtc_standby_s0", + "rtc_standby_s1", + "rtc_standby_s2", + "rtc_standby_s3" + }; + struct clk_init_data clk_init = { + .name = "rtc_clk", + .ops = &rtc_clk_ops, + .flags = 0, + .parent_names = parents, + .num_parents = ARRAY_SIZE(parents), + }; + int ret = 0; + + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); + if (!priv) + return -ENOMEM; + + priv->rtc_data = of_device_get_match_data(dev); + if (!priv->rtc_data) + return -ENODEV; + + priv->rtc_base = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(priv->rtc_base)) + return dev_err_probe(dev, PTR_ERR(priv->rtc_base), + "Failed to map registers\n"); + + device_init_wakeup(dev, true); + priv->dev = dev; + + ret = priv_dts_init(priv); + if (ret) + return ret; + + ret = clk_prepare_enable(priv->ipg); + if (ret) { + dev_err(dev, "Cannot enable 'ipg' clock, error: %d\n", ret); + return ret; + } + + priv->runtime_src_idx = -EINVAL; + priv->suspend_src_idx = -EINVAL; + + priv->clk.init = &clk_init; + ret = devm_clk_hw_register(dev, &priv->clk); + if (ret) { + dev_err(dev, "Failed to register rtc_clk clk\n"); + goto disable_ipg_clk; + } + + ret = of_clk_add_hw_provider(dev->of_node, + of_clk_hw_simple_get, priv->clk.clk); + if (ret) { + dev_err(dev, "Failed to add rtc_clk clk provider\n"); + goto disable_ipg_clk; + } + + if (priv->runtime_src_idx < 0) { + ret = priv->runtime_src_idx; + dev_err(dev, "RTC runtime clock source is not specified\n"); + goto disable_ipg_clk; + } + + ret = rtc_clk_src_switch(&priv->clk, priv->runtime_src_idx); + if (ret) { + dev_err(dev, "Failed clk source switch, err: %d\n", ret); + goto disable_ipg_clk; + } + + platform_set_drvdata(pdev, priv); + + priv->rdev = devm_rtc_allocate_device(dev); + if (IS_ERR(priv->rdev)) { + dev_err(dev, "Failed to allocate RTC device\n"); + ret = PTR_ERR(priv->rdev); + goto disable_rtc; + } + + priv->rdev->ops = &rtc_ops; + + ret = devm_rtc_register_device(priv->rdev); + if (ret) { + dev_err(dev, "Failed to register RTC device\n"); + goto disable_rtc; + } + + ret = devm_request_irq(dev, priv->dt_irq_id, + rtc_handler, 0, dev_name(dev), pdev); + if (ret) { + dev_err(&pdev->dev, "Request interrupt %d failed, error: %d\n", + priv->dt_irq_id, ret); + goto disable_rtc; + } + + return 0; + +disable_ipg_clk: + clk_disable_unprepare(priv->ipg); +disable_rtc: + rtc_disable(priv); + return ret; +} + +static void rtc_remove(struct platform_device *pdev) +{ + struct rtc_priv *priv = platform_get_drvdata(pdev); + + rtc_disable(priv); +} + +static void __maybe_unused enable_api_irq(struct device *dev, unsigned int enabled) +{ + struct rtc_priv *priv = dev_get_drvdata(dev); + u32 api_irq = RTCC_APIEN | RTCC_APIIE; + u32 rtcc; + + rtcc = ioread32(priv->rtc_base + RTCC_OFFSET); + if (enabled) + rtcc |= api_irq; + else + rtcc &= ~api_irq; + iowrite32(rtcc, priv->rtc_base + RTCC_OFFSET); +} + +static int __maybe_unused rtc_suspend(struct device *dev) +{ + struct rtc_priv *init_priv = dev_get_drvdata(dev); + struct rtc_priv priv; + long long base_sec; + int ret = 0; + u32 rtcval; + u32 sec; + + if (!device_may_wakeup(dev)) + return 0; + + if (init_priv->suspend_src_idx < 0) + return 0; + + if (rtc_clk_get_parent(&init_priv->clk) == init_priv->suspend_src_idx) + return 0; + + /* Save last known timestamp before we switch clocks and reinit RTC */ + ret = s32g_rtc_read_time(dev, &init_priv->base.tm); + if (ret) + return ret; + + /* + * Use a local copy of the RTC control block to + * avoid restoring it on resume path. + */ + memcpy(&priv, init_priv, sizeof(priv)); + + ret = get_time_left(dev, init_priv, &sec); + if (ret) + return ret; + + /* Adjust for the number of seconds we'll be asleep */ + base_sec = rtc_tm_to_time64(&init_priv->base.tm); + base_sec += sec; + rtc_time64_to_tm(base_sec, &init_priv->base.tm); + + ret = rtc_clk_src_switch(&priv.clk, priv.suspend_src_idx); + if (ret) { + dev_err(dev, "Failed clk source switch, err: %d\n", ret); + return ret; + } + + ret = sec_to_rtcval(&priv, sec, &rtcval); + if (ret) { + dev_warn(dev, "Alarm is too far in the future\n"); + return ret; + } + + s32g_rtc_alarm_irq_enable(dev, 0); + enable_api_irq(dev, 1); + iowrite32(rtcval, priv.rtc_base + APIVAL_OFFSET); + iowrite32(0, priv.rtc_base + RTCVAL_OFFSET); + + return ret; +} + +static int __maybe_unused rtc_resume(struct device *dev) +{ + struct rtc_priv *priv = dev_get_drvdata(dev); + int ret; + + if (!device_may_wakeup(dev)) + return 0; + + if (rtc_clk_get_parent(&priv->clk) == priv->runtime_src_idx) + return 0; + + /* Disable wake-up interrupts */ + enable_api_irq(dev, 0); + + ret = rtc_clk_src_switch(&priv->clk, priv->runtime_src_idx); + if (ret) { + dev_err(dev, "Failed clk source switch, err: %d\n", ret); + return ret; + } + + /* + * Now RTCCNT has just been reset, and is out of sync with priv->base; + * reapply the saved time settings + */ + return s32g_rtc_set_time(dev, &priv->base.tm); +} + +static const struct of_device_id rtc_dt_ids[] = { + { .compatible = "nxp,s32g2-rtc", .data = &rtc_s32g2_data}, + { .compatible = "nxp,s32g3-rtc", .data = &rtc_s32g2_data}, + { /* sentinel */ }, +}; + +static SIMPLE_DEV_PM_OPS(rtc_pm_ops, + rtc_suspend, rtc_resume); + +static struct platform_driver rtc_driver = { + .driver = { + .name = "s32g-rtc", + .pm = &rtc_pm_ops, + .of_match_table = rtc_dt_ids, + }, + .probe = rtc_probe, + .remove_new = rtc_remove, +}; +module_platform_driver(rtc_driver); + +MODULE_AUTHOR("NXP"); +MODULE_DESCRIPTION("NXP RTC driver for S32G2/S32G3"); +MODULE_LICENSE("GPL"); From patchwork Tue Oct 15 10:51:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13836170 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 CEBDECFC287 for ; Tue, 15 Oct 2024 10:57:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type: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=RiuOkCfpsNxZrkFZMYxjLbzR4TnUVZDDLO1KoGr8M6Y=; b=BkGURkYfPWlOkz8K2NH4Kq+Ep4 feTXhkqQF5m4ISV13Luv3SdlWddm7RQYvq64HBeXL3RmuBP0L+ZJeXWxubOBGQgrM8IvQIlOGV2Sq 6E1puaqzFA5Cv+M15KOiaDlnzXtqFSulLSg+h0D6LGjxKYpgcCcMVh4dYm7wCuj7ue3HgDx6QVSG2 sHXmkeCn5FUvSLY9NEyj6yZloEBBKV7m5KaOWvw1nhHWAMiNBNOd4vgwybglsADNqeidNCbhPa71A jEKvgshg6C2J+H7EwOKLTrm/Naq6FfHT2b02mzFCbfXBHVsYo35NbS/kdt4b9cO9zRU17orwSELqH ll4PAT3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0fFD-00000007vjY-3Wl9; Tue, 15 Oct 2024 10:57:39 +0000 Received: from mail-db5eur02on2060e.outbound.protection.outlook.com ([2a01:111:f403:2608::60e] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0f9a-00000007uLv-2zqz for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 10:51:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cBWnBuCQkYFYT1UqubiC/eCHbuDcnYc2B72hR30XXCBsPyQKBGnDXY+S4uUYqpccw54R2QdQ3EtM8DsNZ9Y6x7D975msKxyyU4DWLias/+Y6xl7sJx1uzgjCU7uujMJBg4f4/uywkegBVz6of96LU+JydRz81PxA7cggfKTfd0zkqrrFifciuz3imBXtXjD6CM+EywX1/DripTVamY6QYZP4EgRZLQFVk8ninvcY/4trffwmu2fy/If1tlXy9jctw99/V8oQXCdiwSR1kxumwLBubs8tn31rJotopAdafNJqOm+2o5lw70uXWWbVIfOe1clfKELqcva3uNzrLD4ocw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=RiuOkCfpsNxZrkFZMYxjLbzR4TnUVZDDLO1KoGr8M6Y=; b=l4aKBIjNzgM+93qYcBM7taYTtKtAp1dZ1g5BjLY1cx9QjpAEgCXbCnzVwNXphwLa7Rz4soY/ewmqy0muuNez7wj7kLwKdwCxYJFjg+nMIhBWKjPyWhLL57yH74BVenjWpOXRCCcYjw3JNOH9ehxBYm9FuDRMp9vZLMapP2yKIlyOW+kscMITUG9vNSMkAkZPc+Kx68lm2xTi4AyhAw9EUQrNpH35qkp+dW3iy19x3GlKXwzB2Q8YO5VIDV/JAvj6KInTjuVvn2gIny0uHQ7f+qGL5tVhDcapI2cfpyrOo0i1+5g7YDiu1RTmTeK9jaTLuHhzdOiTKd0713slaLS6bA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RiuOkCfpsNxZrkFZMYxjLbzR4TnUVZDDLO1KoGr8M6Y=; b=cDWl2d/tuMmshE1JDOGuy6Uo7xbtSYkoJ0LaKnIWXyHVnCIrP7C2UVI63vLl2v400fXpUucyMPP9Yd/jqyw1EcrwBNFcxxuDvK5cS1sTD0yEBnwnJeoVxtZfBMMcHANYU0ygQd/qzfu17TJmSmTe3eAegXnXBHHb6OpfbJrdtt6kxTKqIIGi4vGdMAjQB2tHvEj4uF0l6cQvFzG4n6Jzl3Ymtiwu7wMJhg7VACF+lA2SikvShlXISq4OHRb8pYhghg5tinqYjkFhHHaLCYcKMdKkTaM0eOkw0hhIn/upPbCgRO12Z/+Pc/Kms4OJ35/WxY+EsSuoqMBvFJkwCI9KKQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by AS1PR04MB9238.eurprd04.prod.outlook.com (2603:10a6:20b:4c6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Tue, 15 Oct 2024 10:51:43 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 10:51:43 +0000 From: Ciprian Costea To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP S32 Linux Team , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v2 3/4] arm64: defconfig: add S32G RTC module support Date: Tue, 15 Oct 2024 13:51:32 +0300 Message-ID: <20241015105133.656360-4-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241015105133.656360-1-ciprianmarian.costea@oss.nxp.com> References: <20241015105133.656360-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM9P193CA0006.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:21e::11) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AS1PR04MB9238:EE_ X-MS-Office365-Filtering-Correlation-Id: e29278ca-cf92-42a2-96a0-08dced075b88 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?6ezt2be9glhOQuCOc/jfECrtxem6k3p?= =?utf-8?q?NE37OId1R37WCQzJhFKi6iWGLlp1+bV12nmMALFg1dIfTtx1AzfyRQIdIa5h86osY?= =?utf-8?q?bKtddskA7zH55sn4HkH0dSgDCVl3dGlNcr0zOdtpMqRHIRe6urM923ruDOjiN4KW6?= =?utf-8?q?878wyQejMZBc0VALcfHQdX5wTgSPzIjr5cTiNNH5HLXpOPncPB7Vh5n6Xgp6WWA7n?= =?utf-8?q?H3iVyA11lat1SX1Ri9QLeanvmrL2lrHguXvn6Ww1LWPFfzRRzSmYLo1lNSXP4FZJH?= =?utf-8?q?A2GeZOiAP4ocB+X9Vp4rURMCTAeid9KfMDCwDfDLEhjUstsw+GvMYwriitUZN8ImI?= =?utf-8?q?QsyWbo2jcgu+UffrrhO/W9ujg0XBfacjaGkljSMm/oCGZ1N7ZWAmaERu8QOk5537/?= =?utf-8?q?ka16aO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;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?f+pGFJJlmbCR8ALNKMPkbp0g0yXT?= =?utf-8?q?77lHmX5wAjkiQpgAS1I7sqC7Zz+A7hSE/6bAY5E7m6XRaCpc7623Qd/0KOq0vG3Zy?= =?utf-8?q?D9CqcWE7+A47epNT9PPBULtM6VKmdvs2i1jweuvQK1DhLUnj6iH6fFyHpvBntK4XI?= =?utf-8?q?dMqOtJrzPwir4/ZrMxwT9keoZwqNvhjv8LteR1tbcQcJodXBmb97RjKMXniZQlu3M?= =?utf-8?q?/jBMl0ia10ZMaT4BnpNOxVdGVeDU6CJ0NJE72m7JVMEF3jEYsbbJqZhOyglp/oQ/w?= =?utf-8?q?WMRCUQV0UuH5Rda8hpQgt/sREOm0l3i4G4/dVbqheZjdRnfTf9QCmbKC1PA4QL3ro?= =?utf-8?q?ugsR+txVVoaR1OADBQtJmN4Bzlk/OL60OvgYpWlteTKbpHvE9Vqzx+M6hGd9nHm6B?= =?utf-8?q?/aQWMHS6vShWOl2cbV097XUAsy1rpEG5+NFNW/lj0KaxQMT+BD8HuFqjBJd9A/oZ9?= =?utf-8?q?5djDCi+5Ex88GwA3QcXPJdhVX85rubqowFxxIi0Q/IaaCmuK0PHNqXJomh1hcwaXX?= =?utf-8?q?JbzjwTeA1pB4Ib9IG0ML0h1L8PO+BpbXevx9iGTZDdqWamG1AjgxKosLw68atF9Cz?= =?utf-8?q?c1l3UxXg9UbYfGoMzPfpldRlStnYWTz0i3ZZLawLo1vWwB/8RRUvDzMq/lIlJlaXu?= =?utf-8?q?jTLxevraVhoCCIo9ncsj8ZbqPu4f1x/wnnh3DlbUedCDuvm3zH8cC5hXAjRxam/A1?= =?utf-8?q?EbCdp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Network-Message-Id: e29278ca-cf92-42a2-96a0-08dced075b88 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 10:51:43.7661 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: y+PxSrYY729lJwUAPVj0XrysxCauXlBJN40jkgI8Ty7r0PNzjok9/8edx4rsgM+nC7ZY0OEvMS/FCZC+wvgvBqwFdSvKc9tU0kO0d+sS+G4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9238 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_035150_784544_917E47A3 X-CRM114-Status: UNSURE ( 8.67 ) X-CRM114-Notice: Please train this message. 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: Ciprian Marian Costea The RTC module enables Suspend to RAM (STR) support on NXP S32G2/S32G3 SoC based boards. Signed-off-by: Ciprian Marian Costea --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 5fdbfea7a5b2..584cef78c984 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1209,6 +1209,7 @@ CONFIG_RTC_DRV_DA9063=m CONFIG_RTC_DRV_EFI=y CONFIG_RTC_DRV_CROS_EC=y CONFIG_RTC_DRV_FSL_FTM_ALARM=m +CONFIG_RTC_DRV_S32G=m CONFIG_RTC_DRV_S3C=y CONFIG_RTC_DRV_PL031=y CONFIG_RTC_DRV_SUN6I=y From patchwork Tue Oct 15 10:51:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Marian Costea X-Patchwork-Id: 13836171 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 40B78CFC287 for ; Tue, 15 Oct 2024 10:59: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version: Content-Transfer-Encoding:Content-Type: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=Wh3dxdiFnnlVrzcHjBrhgCcglC+z8h3oypiIHqgl9ZY=; b=c0ig7Tmhnrmsy4+E7cdXAVblCn RHgYj6IJ5ES2JIsL06II/9G5CXxrqWHuNBj1s1twdFm3d5gDZO9Gy61vH9kRfvIjGY7bxgvA4J4+m WzPNe2VL8xTPJ7n7MIPi14gQcmdnpdYIpkKegoihEvurrmHDFytsvE5S7lv2r9TZWvxT8p0Ra9zyA a6F8AWGJQEOOao8ouZWb9laf5RPoUA9riLiBYyr8ExQWfv8soG6M4I53aa+3nCMBNkKtL3QItTIHQ RL4IMQLX2COkpj835OFMBoGljnjhczMWWQGT21HTuixaVIIALTgzhMF/3OR+Kz4ogagF+ZMTxxZJs sYn//jBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0fGd-00000007w4T-0XBd; Tue, 15 Oct 2024 10:59:07 +0000 Received: from mail-db5eur02on2060e.outbound.protection.outlook.com ([2a01:111:f403:2608::60e] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0f9c-00000007uLv-18Tv for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 10:51:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=e7kYcB2YYAntJl7xB1c+9dTWNqqJ9DKuuTiXm97R0rXAnbNQWwsva7tda5TiZNoAqNCtfkEKeHhRYqXBjjBBjmyZrgggEfAEjKJ0mrg7bzyGzLSuHgBlZkFmZzOEu3mS2HBS/uIifLhVr78HajzeQK4DXEQQflbL1AEc5rEpsPmkZ1JptIk874cZ3ga0SLiWJupV0Un45SDat1TALw7gWJ9qFzHPnHGmF0P4mzdgz/B9AaAYNVKeqaF3wuhY4zCJgYoJgrxWsEN8eeCQlnvRr1gRdcZI2KiMg54/Zlr45BQbk+ZluVbzzH4tgmNP6S+vawYYlRk3XbIK4qzvMep74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Wh3dxdiFnnlVrzcHjBrhgCcglC+z8h3oypiIHqgl9ZY=; b=rV6dKS4N7jgYKuXZ0FROkKY3l1FNe7Y1JGTQvKR6SDbmkt3e3AIJJPaQkwlujKxZv/9653hgMuyk2ydF+Vy3U4j20pZ/JNTq1AXxNwy2MCZ90GrR/xHydN80G7Py91B/DS0ffDN/Ykfx++alEPPJaW04PbzqJgHDRrztxMGN6Y4tUcQx6CTKGHXyvktxVnIF074cXruK7RLAK3xp2hJ4gSK3QDbxYpR9OEE+z59zl1/ljJPYISgJPOvzIxY0pOYvbBIeVPm/5JxlEWu8j1/9mR8NMzNODYOuJohddiFilQCoAZKrfRtJx754EMdppqKsyeZ1XweLC4zHCfismKqp8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wh3dxdiFnnlVrzcHjBrhgCcglC+z8h3oypiIHqgl9ZY=; b=AFhi0BTWTEB36M4gSjoPOoeVve4+7wT4+BjLaBROrh+tXi1Lq2XMsxccnlzxq27M4qFWu8jKKxsHWXDi0CJyM57/vsJCujI5NqqDubVSjucfrAzFozU9aZfdFEGffmSrXFseFnpqS6izLKYLvC+4wvBGpk1InAyieHyz0LhWECXVpMFGtejj8Mt0amQ4FDF2MJ13fe9a9SGF62YmzwiLMI4JdU+K9yCHc7gnAP7PricmjXuOYv6Gpu4ipTkH28iM0wXLkznzFoybOROz4iUGi+r6komIbg70Wwvygd90XVKxMYH29UMEtut+jeYu/jGgTX/Lo0V1di6n8B7ieJpkfQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) by AS1PR04MB9238.eurprd04.prod.outlook.com (2603:10a6:20b:4c6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.26; Tue, 15 Oct 2024 10:51:46 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%5]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 10:51:46 +0000 From: Ciprian Costea To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP S32 Linux Team , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea Subject: [PATCH v2 4/4] MAINTAINERS: add NXP S32G RTC driver Date: Tue, 15 Oct 2024 13:51:33 +0300 Message-ID: <20241015105133.656360-5-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241015105133.656360-1-ciprianmarian.costea@oss.nxp.com> References: <20241015105133.656360-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM9P193CA0029.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:21e::34) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AS1PR04MB9238:EE_ X-MS-Office365-Filtering-Correlation-Id: d805810a-956b-4dea-309e-08dced075ca4 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|366016|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?N1xR+08euFIYj59WV4B6bybJI8MAaWj?= =?utf-8?q?ZKoa+IA5HEOgbFarN3AiNlSOVntyxVMHrQyB9IW7/5fh2CER/HSVxB5iER15mJKKn?= =?utf-8?q?EyipFPS5IgIQJmPgWqv2vjk6RgfP2fWmuaS8Y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e8ynbS3XopgMf6CgYgS8VIEtVaUD?= =?utf-8?q?kzoTgTd6cEn5Jh6qwTOFeYDrwjkyYjQcW3cquMTp36EaIYLxtQVVXL0HEicyjetBh?= =?utf-8?q?9vJtwYiYSqijFQMad1oxnFzHR2sBKhZ6SVx7Vsxf7/5YnAR0wVfT7WRbPwVm0fiKv?= =?utf-8?q?hNZhSZqGKQvHPk+f7lxwMdNdOnlXP5cHfXQjX9Tmqnc2yhsiwbY52Pn4WyJ3hm23f?= =?utf-8?q?lwC8zbf3Hk98oZHR3KXfMxNMFAtEXqT7zARg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9251.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(366016)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?5CSrBIlaJT9LMi/1OlzB/86csq9l?= =?utf-8?q?yMGJKgKvo18+j2p4BGhpnwGhpK+hM7t2fZvfs3ITNMMRZiSXIJCsQTzkZsx0PVCII?= =?utf-8?q?s938mQOL/aif4uVqhw3LBEDcJxGmuETZx+cc4L2k4s+K8vENIL+hn8gflWTRRqvlo?= =?utf-8?q?k8DF38gUqzCfLvyp/65gDZ9sSjMD0Ul9XevMPLOr0fUv4xoUzek9lpnC2xIh3FGEN?= =?utf-8?q?uQqn0v6oGo1Zr5u10cL+9ahW2o12GJB8IloWYjxS/aDOzkJLVRAOX6dOvIOpDklx/?= =?utf-8?q?yinvdWp9IeOJIqP0NYnadD7Q2unavGFUuz5riUadnF7Nm9vKFXF7D9KHDC3iQGHsS?= =?utf-8?q?097dJj+sUn0lUEsysVBaO/CLk5oz/YaY2JjdvQ+LY+EHfgLmATnCtgZBv8Avrpa02?= =?utf-8?q?7viGk/9LWGumvDg7HtkDxAVTIyS7xce3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R6gAlxfC4eXyVUUMYX4D/RGze+Q?= =?utf-8?q?Uu+trtCnyXB9LXZxyFRNIAMmm09P4rn5aqVtW6ZlIr3ca5PK7DRkiivQbu+dmBcVL?= =?utf-8?q?auYZYxHpFd1a7Uzs8Q55355ehHeMbwL3C/1iiE6VXEWoYFpY+zImPkM0REQM+7uIr?= =?utf-8?q?D3kOFwtxhgA2EJbK2LBLvK2hBZKzhGY/3QxqIZTv/2qquIUIGXfbiAmwxFDD8/WFG?= =?utf-8?q?AJIcbHGJhT1dlWZX7B0UrOsZuIHGrt8vYw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d805810a-956b-4dea-309e-08dced075ca4 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 10:51:46.2292 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HYJqJ+emzUirV8xZmQVqLtEmpn0ohwvWPgZKQcKrU289A/cxwqCEjyywFpvgmp3X5LqrujiisHfwMOml0uPZJORyAMOuBQ5WHB+2/TsPVIw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9238 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_035152_343689_705BE337 X-CRM114-Status: GOOD ( 10.53 ) 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: Ciprian Marian Costea Add the NXP S32G RTC driver as maintained so further patches on this driver can be reviewed under this architecture. Signed-off-by: Ciprian Marian Costea --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7bfef98226d9..991a9df6819d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2763,8 +2763,10 @@ R: Ghennadi Procopciuc L: NXP S32 Linux Team L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained +F: Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml F: arch/arm64/boot/dts/freescale/s32g*.dts* F: drivers/pinctrl/nxp/ +F: drivers/rtc/rtc-s32g.c ARM/Orion SoC/Technologic Systems TS-78xx platform support M: Alexander Clouter