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>; + };