Message ID | 20250207163808.1208552-1-ciprianmarian.costea@oss.nxp.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 58434C02194 for <linux-arm-kernel@archiver.kernel.org>; Fri, 7 Feb 2025 16:56:55 +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: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:In-Reply-To:References:List-Owner; bh=kqVXnWGF1TWgmywzXYv9Ek6t7rHKazexFVa/d8U0OdY=; b=QEhyBBr1aRs7PpajDynOtpDAbN US6kK8F6bvIVLanSRCtTr33eqPYQhPQmLnSfy8I9+7FRSmSx8o18tQQFGK2S86D/ae83ithiet6+K nUv+sW1slhnDYX13sS4/XYZsxCycTKenfwM5ZVXBsdd025cJGofostXrW8SQAP+QQMMNwG+t6I2pl FpYFs5u7/kzXwOvILq1WwUUDA/Yt3wFSqpvG8rf9YsQCkuFMhf11yb6Nl3x7BuqWldjGebohsBMFP xUkBlIHBdLEi7zSiQcKQ4tc5Z8KXKzYVgTO+Maydjp71F3jWr72nYYNQRmjgrRtiwyKi54PJBYjUV UoTa9J4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tgRep-0000000ANfA-1pL2; Fri, 07 Feb 2025 16:56:47 +0000 Received: from mail-am7eur03on2060c.outbound.protection.outlook.com ([2a01:111:f403:260e::60c] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tgRMz-0000000AJq7-1OQO for linux-arm-kernel@lists.infradead.org; Fri, 07 Feb 2025 16:38:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DWAAQZGfLdzSDcAkf9PrCc3b48bjQufkQSd0pLWK3vJwmw4u2NvcLXL18smwnCGQTlIx8b5seq2cViELn4W+FPIEGPFZCQlzUDFg/Fhmrov96tGQ/jhvMtsQsWJCvfmDuua3uSd/OIxYWwS3KtyJ0LMjtT+iGR7ptjJ6rUkwhcpH1f7ulNAjz5iDJA8lsAG+CKX/dYDJkZonodNaql5wl+oiwkEhyvXoSMjw6GDrxdHnUYJh2qAsmnGNn6Gg/AH5d0loed1jsWoxO2laaUbsY8DO4RAOfBUg86v3CsHiJ1qsG6wq5WCvtvFrKKm/Q7HIzl19TzTEfysOeYO0y5zJHg== 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=kqVXnWGF1TWgmywzXYv9Ek6t7rHKazexFVa/d8U0OdY=; b=Q3gucbJqzxZSl89hT3c83C04Xd3w325WVIXXgZ/PgCmA9h7OsN4I+SiLhr1EdOg52gqX3KtM9NS/JqV/oBBFhQG9/+oonulQRH050zvqaYkPGQRKuKTDLuN4PGx05siogGS5UQbXjWomBHNAzC6hriPVXDbdOU3hw5XGScTMIPs+W7pJwNfgmWb5Tcn92ottzvIIBt8LpUbvAPduXWL1TUCVyN4OHhZrKl1eCd9ZytUTqqsOuCdzCGJ0xhyqw8kVSUFZPf2dl6dbBiaSw8VTQTLWbGAGm/jWpwzqPrSnFbkYKtJm4Ei7ZYDFZghmpbdkrqEY+ycQ7LipHAKFZr4WFw== 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=kqVXnWGF1TWgmywzXYv9Ek6t7rHKazexFVa/d8U0OdY=; b=ShK1O9eAajFjJ5AmraUUgI7j0F8Ynw+eP8nQxKSj+M95eeXEBTrq0ifdJZMl18m5Abgs9fZfWMaPu4mcBdK9KPMVXDrf1uyzTj6qHk6Bo8KpIjdGlai+tCeKOP84xJ2TeB0HoWxtkq6kQjvKf39/lbi4g1/PsiPo9hnlY9MMAID2gDihw6NQrfm+40DI/UzXtAZnvOYGZKDsDqtI5F3vbUDC4CxsniLv1MfQbTPxGMbsECsWp5SL89KvezByIkUnk++TSKHD2Lzceb6s8iXSvBI3N1/P1t/KSja33AJ36n4EAUW5EfUP9W8k5zjPD+Qeg9Ql/m7X3HSVjsubcm2o9g== 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 DU4PR04MB10840.eurprd04.prod.outlook.com (2603:10a6:10:58a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8422.12; Fri, 7 Feb 2025 16:38:15 +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.8398.021; Fri, 7 Feb 2025 16:38:15 +0000 From: Ciprian Costea <ciprianmarian.costea@oss.nxp.com> To: Alexandre Belloni <alexandre.belloni@bootlin.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org> Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP S32 Linux <s32@nxp.com>, imx@lists.linux.dev, Christophe Lizzi <clizzi@redhat.com>, Alberto Ruiz <aruizrui@redhat.com>, Enric Balletbo <eballetb@redhat.com>, Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com> Subject: [PATCH v7 0/4] add NXP RTC driver support for S32G2/S32G3 SoCs Date: Fri, 7 Feb 2025 18:38:04 +0200 Message-ID: <20250207163808.1208552-1-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AM0PR03CA0085.eurprd03.prod.outlook.com (2603:10a6:208:69::26) 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_|DU4PR04MB10840:EE_ X-MS-Office365-Filtering-Correlation-Id: 10c41b6b-a068-40df-4d4e-08dd4795d1a5 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|7416014|366016|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?vtFpswaMTeZlV3+/mAsUKFpfVU9apyC?= =?utf-8?q?ogk6J3NXsCeyv5umk59Wgi8O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p/9V3eCduXtBJTZ2bxTFlLMFQgZsDqtqh?= =?utf-8?q?e5ZWoImJLW4U7Zl1GQ902MDvnq7jvkGUWONMlRhdhHxjHcsRjJmpwFQO+4bVoT78b?= =?utf-8?q?lxANKiDrOvpLyb0rqFFvXioiRr9BExEuuHSxbd10BBrHO30Ng65ar1V1BgXZIDTLP?= =?utf-8?q?nEUdMJZJwe57GcuM5sySC6k9fWqXcd9VV6JhJMIozB+lbqD3ty6f0SC7QKUexoxB/?= =?utf-8?q?QNdE2RmhASGvjXp9RaYXOxzNFWgD8nssxPwKvh79KbI9/79zKoJ+UgFx2FwVfVB1y?= =?utf-8?q?nCzwsfqGvqpYjp69c41294iGvWgxKvuccCtKXfcpKmj0F9mTYGmHIRDWSYj6zmv87?= =?utf-8?q?dZXdyMRqCfhD7E9YMsIRGGArEaIwBbX0qjtVYiVHnxEg3/Iev811WUjiIzdy8izgh?= =?utf-8?q?zeJzB8M3/+6m?= 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)(7416014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?UstKNLts4zsage1YVJILg2jlk2kh?= =?utf-8?q?cjleEgaYT7hXc9OsIquKuBu9JVXm3++cNBq9+SbtLX+5MK2joj/cmrKOgA3ouZJCb?= =?utf-8?q?02/4nBL8nNFVfsNXcUehcQircgHX3qfIU1UBkmRLjyCkd7PZh5aWdgSMWpGOF3S4I?= =?utf-8?q?3winDjZyuK/tfQf8ys0IMw6OpLhGi0Z8h/5Hm9pdoKvWLRK7JLFN4A6KMUDjNU3jF?= =?utf-8?q?ibIN+B4wzwVabTPYmxy11/QR1WOvpuKynnPmeHt2Vcf9cqYbIs9SiOyyQURvfhRwZ?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-8?q?CNXQhkVFceg12Gdr0eNE/rhkczsbX8u3y7tYP0QmjDmMWAVEpXRngTNEFS+p89wmr?= =?utf-8?q?wph2MWZK506ime7UWNJkpXfToYoJXbOqRiJvcgChxVyaf9p69g3luridtj+eqevcP?= =?utf-8?q?G5hjU9osobasSh4DxtDxby0rsLDqSq9WnJ5YcZ0by+HRvy3RQXnRjc/Jm6TCL6FLG?= =?utf-8?q?gSQmfLLN08l6DvoUM2EIKnjX6RRy7BsTuUpAxKaVD/f/nq5v/UuvP0Ln5wAk8THVn?= =?utf-8?q?vQf0nxiV6QBxJrA73OzkcxD4zAxQzGjssyFMVP3HY8heFPk/RSp6k/e+ODttPdpEB?= =?utf-8?q?5dvPew5CjZNh1GQN+zc1a2M+pWCcBYT/vJq5ypdWRJW66VnsOCAg0S+tjhQjekLjU?= =?utf-8?q?w2GsccwKHdgRLbRn2XOUjDxvgvf9rnsjTQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 10c41b6b-a068-40df-4d4e-08dd4795d1a5 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2025 16:38:15.1573 (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: PNtqwtrcy4+XJMkpqNqH5tbJQ+oKK3t8Rk5YDLd378Dgm8xkTeHUHYUPK2YDmpp1iyf/mcdjUROQCi6bXYwk+tXjzT5fOz7KrIAmIAQJyYQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10840 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250207_083821_384187_84847B5A X-CRM114-Status: GOOD ( 17.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
add NXP RTC driver support for S32G2/S32G3 SoCs
|
expand
|
From: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com> This patch series add support for the NXP RTC hardware module present on S32G2/S32G3 SoCs. RTC tracks clock time during system suspend. It is used as a time-based wakeup source for the S32G2/S32G3 SoCs. RTC is not battery-powered and it is not kept alive during system reset. Following is an example of Suspend to RAM trigger on S32G2/S32G3 SoCs, using userspace tools such as rtcwake: # rtcwake -s 120 -m mem # rtcwake: assuming RTC uses UTC ... # rtcwake: wakeup from "mem" using /dev/rtc0 at Wed Feb 6 06:28:36 2036 # Changes in V7: - Changed 'ioread32/iowrite32' calls to more common 'readl/writel'. - Removed calculations performed in 'suspend' and 'resume' routines by using RTC API ('APIVAL') functionality instead of relying on setting 'RTCVAL'. - Simplified 'set_alarm' and 'read_time/read_alarm' by usage of RTC APIVAL functionality and relying on kernel system time. - Added comment about the available RTC hardware frequency divisors in the RTC driver. - Used both available frequency divisors to increase the RTC rollover time. - Removed a redundant error check on 'priv->irq'. Changes in V6: - Fixed a coding style issue regarding kernel doc reported by kernel test robot - Refactored small sections from the S32G RTC driver without impacting functionality - Fixed an error probe path issue on S32G RTC driver. - Added 'rtc' schema in S32G-RTC bindings Changes in V5: - Removed rollover support. - Removed clock switching support between Runtime and Suspend. A clock source which is always available has been used instead. - Enabled 512 value RTC hardware frequency divisor to achieve higher rollover time - Removed unneeded 'remove' callback. - Decreased driver print verbosity on error paths. - Provided 'clock-names' actual names in bindings documentation - Remove __maybe_unused notations. Used the DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr() macros to handle the .suspend/.resume callbacks. - Fixed some alignment issues. Changes in V4: - Dropped 'assigned-*' clock management approach. Simplified RTC Runtime and Suspend/Standby clock configuration. - Simplified error paths on probe function - Removed node label from bindings example - Several cosmetic coding style fixes Changes in V3: - Removed 'nxp,s32g3-rtc' compatible string - Change to 'remove' callback from 'remove_new' - Used 'dev.parent' from 'struct rtc_device' instead of defining a specific 'struct device' in driver data - Fixed several errors reported by kernel test robot - Removed 'assigned-clocks', 'assigned-clock-parents' and 'assigned-clock-rates' from required properties in the binding documentation. - Refactored S32G RTC driver such that a default clock source and divisors configuration will be applied in case 'assigned-clocks' and 'assigned-clock-parents' properties are missing. Changes in V2: - Removed 'clksel' support from dts bindings. Used clock parents support from CCF to better illustrate the RTC hardware IP from S32G2/S32G3. - Removed frequency dividers support from dts bindings. Used assigned clock frequencies support from CCF instead. - Reduced the interval while RTC is voluntarily disabled to a simple register write in order to avoid any race condition between a possbile rollover and 'suspend' callback execution flow. - Updated bindings documentation with respect to clocking support. - Fixed a potential unused variable warning reported by kernel test robot. - Updated to usage of 'devm_rtc_allocate_device' and 'devm_rtc_register_device' instead of deprecated 'devm_rtc_device_register'. Ciprian Marian Costea (4): dt-bindings: rtc: add schema for NXP S32G2/S32G3 SoCs rtc: s32g: add NXP S32G2/S32G3 SoC support arm64: defconfig: add S32G RTC module support MAINTAINERS: add NXP S32G RTC driver .../devicetree/bindings/rtc/nxp,s32g-rtc.yaml | 72 ++++ MAINTAINERS | 2 + arch/arm64/configs/defconfig | 1 + drivers/rtc/Kconfig | 11 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-s32g.c | 383 ++++++++++++++++++ 6 files changed, 470 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml create mode 100644 drivers/rtc/rtc-s32g.c