From nobody Sat Nov 30 05:43:08 2024 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2060.outbound.protection.outlook.com [40.107.105.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FEB37BAEC; Wed, 11 Sep 2024 07:00:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.60 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726038044; cv=fail; b=fIGpISVI1ptmttIiRI6XrftXIl+b00GPeWppqd6W7Innw4sDX408EOmFNQG4r/+btHqlSvUoxkXID35NWIbcTzCdK9hxuz3y6DChDOvtVH7WOuFIOtMEv7NFdwAY6wyEP+HxenljqPGIqlT5AaaHpfH1KED3adGmTJwoMpCNPII= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726038044; c=relaxed/simple; bh=fWWrMDP1uAmFEszj1LKtpNXRy7xmSTDEU+SOeMfvx+g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=CcKXUGBJBDKZkFyCgohk5ktQ8TyJepZM+yr5yDP+JrJyw8L1W/w0ms4QkpDuOs3t5E8grTQwBL4JXr/CTY0RS4i0DEQLXU7ek1LfNmkicvtaD7rn4Dhf6gWvn3XHkcRcsmiuQjTDbVd09rJmDi1KeAY42abvZrfjctA5Y03w9tA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=VAlazYil; arc=fail smtp.client-ip=40.107.105.60 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="VAlazYil" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=O4tUqV+2r3GjBIG+MvC/e5blZbp5Wp6mqhpPf7KSWlnViN7hdedDk03qJMMYpYNX17+1+oJGeoGfDm0Wpd6LgFaPdElM/AGesFeWZvE2pjuQimtLKhFT3ctAUEcxEvo/hAsze3v7a2ZPfFTgEC/v731V/yYdJ87IZFEI6ZAtAY331gDqImQqTyNoAffqhFxLBPiDrGbLqdX3UBoEU7Wy7LBlaZKXena1RONWpEMn08B2j7VTXYXivklEv8f/n8ACe2k+Fyuo71g3P0UZpyv12K1N0/tHWlwPXshchGjuxdDvaO553nPWCHMrvW75C9THBnJz6jKX26OSEK15w31RQA== 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=2hsHTznEW7ngD/Pp6pcAyuu5w3h1g4FRD2BWlGhYwS4=; b=bZvr2qr5nGA3Ld/qadMCxlsVa9UY+x2YT4GUVX1FHxQZDqHJPvuaqC8Egt/RKm5b3oB3Ddgdb0OKKkInceLDVH9BBIDvYcfC4XsvQqZkh0c/uLSXyJNfqgRzsiI59h/tRVXjRvhSHRZyjIxYACx2iakU55TOZ5IHYrFmehEG/BRgyl3T4LlWrx90OHm7CL5tP+dOrIE7cqCl/OVvu4XUPozidUMk2woZRYHk0hvoeYWWeGTVGIGr7dI6yagrs3RQEwhTpLxTjoLyuKWLC/shrpLV2asdyQ5l5RxymO3holOUjKQvw/kwqv7uDfOQwCzFW27z+Ld7BVxlpil1+o5p7w== 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=2hsHTznEW7ngD/Pp6pcAyuu5w3h1g4FRD2BWlGhYwS4=; b=VAlazYil9b4EmimCdxSFpZSdwm7yd1LjpHRhuMslrJnMjtd3jvk08Ncl3UQiwMoWSQn3zvz1eDDuv9Ioi5H7RcouGpKyUQ8bdNVnSJc0jZJ/v4gsBLqoL1F/Lz85VMUnn1OpcH9JaAaZMB6QCprNUlEEvgIpJ66gVYMy1xfYslUEUTiRO1kVm8id82slJ0MTBizFqwEFVYXCZWR3PKMCTQLmRNgM/p2WtGiFEASJG9jCsmn86mMQEuvdnWFxYhxDiORcUf81gKuodJBJsGxRgQhKw15w95JhORlZ14PB2Cfxm5/f2KDHRdTxoIsywKbuadDR12NXoFreA2IVOCmbwA== 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 AS4PR04MB9507.eurprd04.prod.outlook.com (2603:10a6:20b:4ca::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Wed, 11 Sep 2024 07:00:37 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%7]) with mapi id 15.20.7939.022; Wed, 11 Sep 2024 07:00:37 +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 , Ciprian Marian Costea , Bogdan-Gabriel Roman , Ghennadi Procopciuc Subject: [PATCH 1/4] dt-bindings: rtc: add schema for NXP S32G2/S32G3 SoCs Date: Wed, 11 Sep 2024 10:00:25 +0300 Message-ID: <20240911070028.127659-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240911070028.127659-1-ciprianmarian.costea@oss.nxp.com> References: <20240911070028.127659-1-ciprianmarian.costea@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR02CA0126.eurprd02.prod.outlook.com (2603:10a6:20b:28c::23) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AS4PR04MB9507:EE_ X-MS-Office365-Filtering-Correlation-Id: b140c6a8-db97-43f3-0a48-08dcd22f6ff6 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|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?Q3lYczRSdXF6VUZmeUpHbUF0NFBZMk5VZUtnV3lNanRhbVhkREYwZUp3SExE?= =?utf-8?B?STFTNDFkbVJjVCtpTUpKL1dOMVFOMnVvKzQwT3F5M1YzTWhrOXd1NkxrQmVQ?= =?utf-8?B?dHhHWWswMEc3MC9CK1JleDZWNWZoSEFSazhKejRTVmJXWm9pWWRSS1JHUkNz?= =?utf-8?B?Rm9WRjE5RFc0N0JQclNYaGJPN21BM0dJSWNJL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2JRUmNtMU9uL083ZzQzdmZaWHZEdGw0NFB3N0lN?= =?utf-8?B?SGhWM0pZYThvYU1EcFZic1VQVG1EVkFTK3o2WHl0QmJaVGRhM1NWQjZQTmVj?= =?utf-8?B?WmtnTHJ1TUc2eTBkRWlWRFR1SWJYRU1CSTZlRklCVEhjcklrb0VhcmxJMDZr?= =?utf-8?B?VTNjYjdkZjZLQy9MRWVpQnlqeHZaY2hpWC8venE4azdrMWZOZWkrWDRjeENr?= =?utf-8?B?eWd4WlAxbHMzUXRlMGtnNmNHQzRyWkJHcDdnMW11Z2Y0NE5wc1NqZ3lWaEti?= =?utf-8?B?bEM1alRjd1dWNU9FbVl0bGEzSlVjVktxT0ZQRDlBVUpTV1hCZkxldGtVL3F2?= =?utf-8?B?aENZZGpxUnBTR0F0RjRPcUN3QVp3dUh5d3Z2djVnT05xSCtXT1FVT2lmdHc0?= =?utf-8?B?SitCaEFiR2hQR2w4U0FKSklFeE83T2FSeVJ1SEh0TzJrbzJyeGJNSDhUR21k?= =?utf-8?B?NjFKVkRmN25wSlluc2lSUzI0djFwYkJ5NTZRU3ZucDQ0dFpRbnU1cWdpTERZ?= =?utf-8?B?UW9QVzFHUlRaMFFIajFVUHB5TVowTnk1ZjZ3SEhkd2txV0pCdXNBbmY4N1I3?= =?utf-8?B?WjBUY3NuUVJhQjhib0VRMTJ6d0UrL0VpUUtPeW5HaEdXdlBrL1d2SFUzL0c1?= =?utf-8?Q?M1dGzYBEptJst9YQgc=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)(7416014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TW9kRFhSeGN2RzAybzdVZ2NDcXlOUHAvVGRpU0Z6T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GJSNUM0dkIxck5vb2ZjSzY3bkNjNnZLWkw1UFB1b3g0WndBczRwSEdsSmla?= =?utf-8?B?MWVCZk5DeFlQMEowN2FSOEZjdFhPVGg4NTNRbmVURjZhOGtzYVlzYUJ0TFFS?= =?utf-8?B?ZUs4emhxclJiZStzUEV2U2h5bzd1ckVBNlViODc1VlROTS96M2RtbG9HdFMv?= =?utf-8?B?NXVpeVBqeitWRmdYeTJPcDduRk15YjNMNytwU3FEejZqVDY0Smw5aUcwczVM?= =?utf-8?B?R1l4WTZSTG1uUzlEbW5VNVprRXVYVFRMMUgwTE5tdGlTQzVuc29EOHhvK3Q0?= =?utf-8?B?U2NTNjZUOFFZcVlMVnNDUWVVbzhtOGZkWVlpOEVudVZnM3pVRE1uTDF3NURQ?= =?utf-8?B?a2c9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b140c6a8-db97-43f3-0a48-08dcd22f6ff6 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 07:00:36.8303 (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: K4HwW5lEw5Rr8r6Dqhz1UVnQzPPMfZQgHgwMhU6/7H4PLrK0Poq1kadpsuDolSJzoVmlqUW3lda2oK+NyeHvjuc0jNnHdHVFNXs7A1uFKXg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9507 Content-Type: text/plain; charset="utf-8" From: Ciprian Marian Costea This patch adds the dt-bindings for NXP S32G2/S32G3 SoCs RTC driver. Signed-off-by: Bogdan-Gabriel Roman Signed-off-by: Ghennadi Procopciuc Signed-off-by: Ciprian Marian Costea --- .../devicetree/bindings/rtc/nxp,s32g-rtc.yaml | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml diff --git a/Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml b/Docu= mentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml new file mode 100644 index 000000000000..8f78bce6470a --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml @@ -0,0 +1,79 @@ +# 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: + const: nxp,s32g-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + nxp,clksel: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Input clock selector. Choose between 0-SIRC and 2-FIRC. + The reason for these IDs not being consecutive is because + they are hardware coupled. + enum: + - 0 # SIRC + - 2 # FIRC + + nxp,dividers: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + An array of two u32 elements, the former encoding DIV512, + the latter encoding DIV32. These are dividers that can be enabled + individually, or cascaded. Use 0 to disable the respective divider, + and 1 to enable it. + items: + - description: div512 + - description: div32 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: ipg + - const: sirc + - const: firc + +required: + - clock-names + - clocks + - compatible + - interrupts + - nxp,clksel + - nxp,dividers + - reg + +additionalProperties: false + +examples: + - | + #include + #include + + rtc0: rtc@40060000 { + compatible =3D "nxp,s32g-rtc"; + reg =3D <0x40060000 0x1000>; + interrupts =3D ; + clocks =3D <&clks 54>, + <&clks 55>, + <&clks 56>; + clock-names =3D "ipg", "sirc", "firc"; + nxp,clksel =3D <2>; + nxp,dividers =3D <1 0>; + }; --=20 2.45.2 From nobody Sat Nov 30 05:43:08 2024 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2060.outbound.protection.outlook.com [40.107.105.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9B8D13AA3F; Wed, 11 Sep 2024 07:00:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.60 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726038047; cv=fail; b=jk6tGRFH8NvzpA/lJC4Af0l0yyqUb17kovSESUkbCKnDON198nJEPKC8NaR382RnerrRAl3MVe9NTHTzZu0L+cAxRKH/Kk8PDIcuEE5ggFvgn90ceR8y4FWY8l0Zl3K+dguUszbHDuRYe1edMaswLycS2AHNd0hU8+jpmTs9KPE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726038047; c=relaxed/simple; bh=n+BH1dz6Ru0K2IYaN3Qdw0sEu5nqFFBXq75jET1wem8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=gSdD1YBv2jE+1YC54ijeTdMutGYa/VeXX5iEmwHZM2OnEzbv7XtQYDLL8GX7nFrPlB9BtiJ0spng6nchRM++AMzKJ1JutsZXE5hqMNuN47Y9gVioasmx4xkoYnyxdsf1D/jXfwenfDaFtUer/CSLQAydR6J/QA44IHigr13XP3A= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=ivgmpW8t; arc=fail smtp.client-ip=40.107.105.60 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="ivgmpW8t" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QVwUQ5gAn+zZDmyMkgmYEfzfQx7wuaZtybNFNUQz14d/W9x4hgVNDa16Yr9y9jcBpsqxtjtuo8DY7PqkvMiW6MHeqNOOH1i54gyMJ1yhmw1uBCTqwEyQvVJrFtGrLnmn/WwrFtrYFs1B41AEXKghW5zhbDn6vTlxaBRZ7xwHv8QtC3PmFJ7g/uyFt3eVoM3sQtmmxzuZ1wxs1kqvBzvVeAlKmhbYAH7QjH7/r4GRofsKUwzNY40ij7gKkkZkmToir/9ZF2pPvAnl+/NesBYrjSJwySDVZ4r02llQ4PmcfcLGdHMdUtqOaAetWh957rM5tKmawtx65YnDtaBn839J3g== 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=NLDjVZYuc+vDait61JE/NxDy77AT/IWt/g4VFQffAzI=; b=ESY7Wfp5jKQfNtAhV3rAOLPZmWv75mjjmp/l6D9LFwD4a2b0vBOCW1498jGjxrvchx+u9PPieHviPb8/RuOXyk1ZTNwhdmVCUzEf6agaNHo1ZGrMxwzIkMr/riWR4nQ1xe/wqwnB8+Wkeuc/wZRDZ2HMN+6z9cZ8RV/B9MOWfgGCbG4Ij8LoNp3kjt+LAoWVca1cY9EisdTyMIqITArlFeU+5qIvBadScRgVrOYGECdHyRzksv+s9yI3g/wiRY47szWpJPGipw8WU+kO/jVKfykvR5rnfTDesNjiuTBPMwjACR9/wsjN30EYZ69tzpls4i9JnIMd8dEd7Tj8qvna4g== 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=NLDjVZYuc+vDait61JE/NxDy77AT/IWt/g4VFQffAzI=; b=ivgmpW8tJEZpsy/tF7DJqKONP1vBwBqdoy5lhrk8WCZ0vPKqmexX1pwrNkYA9guKNj4EwToH3WssGQPhbJrnEp3yY+cOAzltA/caZqDMbf/On/cKk1hoJhMQm+LcrCbf1PWENtyj0AiVjLM4SFLzVnhHO9bUPxVAQ6TjdQ9qWtofb+Aj7UU4gNJx24aiDmmToGA4WKVLolG87i0RGht7JxUwbeFIBDmNDul3nkcGV8shacxIdq9GykHHuUu+3ukNqB2RTAMr7Xf8yFtPJS9qa3b0Tb/FO3agJXWmJLUlA6xfzljoaJSc/IoFb1exQ5rywnTx8jG0a6WX8eCi/tADiw== 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 AS4PR04MB9507.eurprd04.prod.outlook.com (2603:10a6:20b:4ca::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Wed, 11 Sep 2024 07:00: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%7]) with mapi id 15.20.7939.022; Wed, 11 Sep 2024 07:00:39 +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 , Ciprian Marian Costea , Bogdan Hamciuc , Bogdan-Gabriel Roman , Ghennadi Procopciuc Subject: [PATCH 2/4] rtc: s32g: add NXP S32G2/S32G3 SoC support Date: Wed, 11 Sep 2024 10:00:26 +0300 Message-ID: <20240911070028.127659-3-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240911070028.127659-1-ciprianmarian.costea@oss.nxp.com> References: <20240911070028.127659-1-ciprianmarian.costea@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR02CA0127.eurprd02.prod.outlook.com (2603:10a6:20b:28c::24) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AS4PR04MB9507:EE_ X-MS-Office365-Filtering-Correlation-Id: 198a16e7-2c9a-42ae-5056-08dcd22f71d3 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|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?cnFKYnlNZnZUdFRvN3QzMHFKRHBISk9EbFBNT1dWUmMvOHg0TFRyMC9LRFYz?= =?utf-8?B?WWc0eVZUTEppL3hmdk4zRFMxdXdOb3lWZmI4VnFyS0lOcHRBVnY5ZXFEUUFh?= =?utf-8?B?ODJySWl6bmdXN0Qwb0NmRmpuYlBMbkFMNGdvWG5TT2hNWXd5OEpPM1hGekpY?= =?utf-8?B?RklPd2Rmb2VzLzB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aGJmSjZKQUhIUHpGVHNMclNFL0ZmMng1MGZiMXdiNjJtcUgrWHNF?= =?utf-8?B?UGxGOEpDYThqcDNRTkdQVGFhT2tmR1VIVFBSenBYaXRQaTgvbERNRE95d3NX?= =?utf-8?B?L0tGbzY2aXJCbEp5Z1dCaTREcVk0cDF6NEVBL3MrZ2krVHVuVEh3bk5wY1NL?= =?utf-8?B?MHJ3TWM3MTJOeHBvRFRWSHhuRmlKRkplWWtLNStCd092OTVjYUw5d3hLU2ZU?= =?utf-8?B?eDJKbm9kOHBKN0JFdHdoblVnL0lVbWYyUFFPWkNxVTBRdGM1Wjg3MW4zV2p2?= =?utf-8?B?VDBlVVFSRUN0M3dJbUlVbzFwZXpHWmZqS1hKeFZkWFV2UklTZzFuOUlBbXdV?= =?utf-8?B?SHdESzQ0MlIvenliQmpHOERoN2ZyQ1BKTGZyNEtDckRVSzhzekExcmtYa0dq?= =?utf-8?B?dGhLWjg3bVpRanpObUNJSmpwSFFOYlZ3VjJLdDdsdWxMVkNuYmJheVdQdWky?= =?utf-8?B?aFROQ0JrVlRJdG1GUElaREloUktiQkdVNDdHZ2RzYzdnRGx5ZS9zdGtVQVZj?= =?utf-8?B?WUNvM0ltMU51Nkw3S2JUZFJ1Tlloancza09WUDJ5UEgzYU9TRFFVWGphZzlO?= =?utf-8?B?Rzg4dkJlQ2VaV1lsME8zNVJwT0ZZYXJ3ZW9HZ204MUhuYmdQVEhjcDM5T284?= =?utf-8?B?bEQ4MDlFanJQN1I4dnVNRndicFREQjZ1UUl2UnpiYUpST0MrL2NVOU5DajZW?= =?utf-8?B?TXVXeXd2and1ckxnc1NWUT09?= 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)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: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B?RTRoVDRZdlU0VjRuUjlRL1dvb2pCWER2OHNjMmxzYm5aa2hoQStlTWNFOGRl?= =?utf-8?B?elpCd1JqMDg4bFpOVkFlOWpFSXVrTThCenA4aDNVemxPVXljQVBNT3pid3lF?= =?utf-8?B?U2M3R0dCdTZrTVU0dUR0OTZUVUZGczRyL2dBODRPMkFkMUxEajdhYk5oYzhs?= =?utf-8?B?NmlUU1dkUXpCalFuV1lSL2lNZVhpeWxEU0tJQndwUkdMM1RhOEIwRWdGTjk4?= =?utf-8?B?eDErcWtDY1BDN0FLdmZ6bmtzU3pUZzY0L1ZaKzc4eXJiei9VMHh0b0duZDZZ?= =?utf-8?B?cUNZUmZzT2JTdWlwd1Rod09jb0NpNVI2a2ZON3BLRXAwOVQ2NUF3Sngya3Q2?= =?utf-8?B?NUpjdjB1R1kwNDRDYVIra0xsS0pRc0VqN2I0YnJmOGt1blN1WjZJWWEzK3BD?= =?utf-8?B?TGc9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 198a16e7-2c9a-42ae-5056-08dcd22f71d3 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 07:00:39.8445 (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: NpW8WE3/DLfk9H5629xrHd2EWEbSifAsdqISsAlIHCcJP9JXnfVcn2qrjroZqaFIvsllpSbhVPaoNVnIt0mV8dY2uV9o1aUCuKrPbqYRKuk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9507 Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Bogdan Hamciuc Signed-off-by: Bogdan-Gabriel Roman Signed-off-by: Ghennadi Procopciuc Signed-off-by: Ciprian Marian Costea --- drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-s32g.c | 689 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 700 insertions(+) create mode 100644 drivers/rtc/rtc-s32g.c diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 2a95b05982ad..552eecd78f88 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -2043,4 +2043,14 @@ config RTC_DRV_SSD202D This driver can also be built as a module, if so, the module will be called "rtc-ssd20xd". =20 +config RTC_DRV_S32G + tristate "RTC driver for S32G2/S32G3 SoCs" + depends on ARCH_S32 || COMPILE_TEST + 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 3004e372f25f..36d2ed5d0ae2 100644 --- a/drivers/rtc/Makefile +++ b/drivers/rtc/Makefile @@ -157,6 +157,7 @@ obj-$(CONFIG_RTC_DRV_RX8025) +=3D rtc-rx8025.o obj-$(CONFIG_RTC_DRV_RX8111) +=3D rtc-rx8111.o obj-$(CONFIG_RTC_DRV_RX8581) +=3D rtc-rx8581.o obj-$(CONFIG_RTC_DRV_RZN1) +=3D rtc-rzn1.o +obj-$(CONFIG_RTC_DRV_S32G) +=3D rtc-s32g.o obj-$(CONFIG_RTC_DRV_S35390A) +=3D rtc-s35390a.o obj-$(CONFIG_RTC_DRV_S3C) +=3D rtc-s3c.o obj-$(CONFIG_RTC_DRV_S5M) +=3D rtc-s5m.o diff --git a/drivers/rtc/rtc-s32g.c b/drivers/rtc/rtc-s32g.c new file mode 100644 index 000000000000..e77ff0c065ba --- /dev/null +++ b/drivers/rtc/rtc-s32g.c @@ -0,0 +1,689 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright 2024 NXP + */ + +#include +#include +#include +#include +#include +#include + +#define RTCSUPV_OFFSET 0x0ul +#define RTCC_OFFSET 0x4ul +#define RTCS_OFFSET 0x8ul +#define RTCCNT_OFFSET 0xCul +#define APIVAL_OFFSET 0x10ul +#define RTCVAL_OFFSET 0x14ul + +/* RTCSUPV fields */ +#define RTCSUPV_SUPV BIT(31) + +/* 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_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 0xFFFFFFFFULL +#define RTC_SYNCH_TIMEOUT (100 * USEC_PER_MSEC) + +/* Clock sources - usable with RTCC_CLKSEL */ +#define S32G_RTC_SOURCE_SIRC 0x0 +#define S32G_RTC_SOURCE_FIRC 0x2 + +struct rtc_time_base { + s64 sec; + u64 cycles; + u64 rollovers; +#ifdef CONFIG_PM_SLEEP + struct rtc_time tm; +#endif +}; + +struct rtc_priv { + struct rtc_device *rdev; + struct device *dev; + u8 __iomem *rtc_base; + struct clk *firc; + struct clk *sirc; + struct clk *ipg; + struct rtc_time_base base; + u64 rtc_hz; + u64 rollovers; + int dt_irq_id; + u8 clk_source; + bool div512; + bool div32; +}; + +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 =3D 0; + + /* For now, support at most one rollover of the counter */ + if (!seconds || seconds > cycles_to_sec(priv->rtc_hz, ULONG_MAX)) + 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 =3D seconds * priv->rtc_hz; + rtccnt =3D ioread32(priv->rtc_base + RTCCNT_OFFSET); + + if (~rtccnt < delta_cnt) + target_cnt =3D (delta_cnt - ~rtccnt); + else + target_cnt =3D rtccnt + delta_cnt; + + /* + * According to RTCVAL register description, + * its minimum value should be 4. + */ + if (unlikely(target_cnt < 4)) + target_cnt =3D 4; + + *rtcval =3D target_cnt; + + return 0; +} + +static irqreturn_t rtc_handler(int irq, void *dev) +{ + struct rtc_priv *priv =3D platform_get_drvdata(dev); + u32 status; + + status =3D ioread32(priv->rtc_base + RTCS_OFFSET); + if (status & RTCS_ROVRF) { + if (priv->rollovers =3D=3D ULONG_MAX) + priv->rollovers =3D 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 =3D ioread32(priv->rtc_base + RTCCNT_OFFSET); + u32 rtcval =3D ioread32(priv->rtc_base + RTCVAL_OFFSET); + + if (rtcval < rtccnt) { + dev_err(dev, "RTC timer expired before entering suspend\n"); + return -EIO; + } + + *sec =3D 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 =3D ioread32(priv->rtc_base + offset); + cycles =3D priv->rollovers * ROLLOVER_VAL + counter; + base_cycles =3D priv->base.cycles + priv->base.rollovers * ROLLOVER_VAL; + + if (cycles < base_cycles) + return -EINVAL; + + cycles -=3D base_cycles; + sec =3D 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 =3D dev_get_drvdata(dev); + u64 sec; + + if (!tm) + return -EINVAL; + + sec =3D 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 =3D dev_get_drvdata(dev); + u32 rtcc, sec_left; + u64 sec; + + if (!alrm) + return -EINVAL; + + sec =3D s32g_rtc_get_time_or_alrm(priv, RTCVAL_OFFSET); + if (sec < 0) + return -EINVAL; + + rtc_time64_to_tm(sec, &alrm->time); + + rtcc =3D ioread32(priv->rtc_base + RTCC_OFFSET); + alrm->enabled =3D sec && (rtcc & RTCC_RTCIE); + + alrm->pending =3D 0; + if (alrm->enabled && !get_time_left(dev, priv, &sec_left)) + alrm->pending =3D !!sec_left; + + return 0; +} + +static int s32g_rtc_alarm_irq_enable(struct device *dev, unsigned int enab= led) +{ + struct rtc_priv *priv =3D 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 =3D ioread32(priv->rtc_base + RTCC_OFFSET); + if (enabled) + rtcc |=3D 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 =3D dev_get_drvdata(dev); + struct rtc_time time_crt; + long long t_crt, t_alrm; + int ret =3D 0; + u32 rtcval, rtcs; + + iowrite32(0x0, priv->rtc_base + RTCVAL_OFFSET); + + t_alrm =3D 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 =3D s32g_rtc_read_time(dev, &time_crt); + if (ret) + return ret; + + t_crt =3D rtc_tm_to_time64(&time_crt); + if (t_alrm <=3D t_crt) { + dev_warn(dev, "Alarm is set in the past\n"); + return -EINVAL; + } + + ret =3D sec_to_rtcval(priv, t_alrm - t_crt, &rtcval); + if (ret) { + dev_warn(dev, "Alarm is set too far in the future\n"); + return ret; + } + + ret =3D 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 =3D dev_get_drvdata(dev); + + if (!time) + return -EINVAL; + + priv->base.rollovers =3D priv->rollovers; + priv->base.cycles =3D ioread32(priv->rtc_base + RTCCNT_OFFSET); + priv->base.sec =3D rtc_tm_to_time64(time); + + return 0; +} + +static const struct rtc_class_ops rtc_ops =3D { + .read_time =3D s32g_rtc_read_time, + .set_time =3D s32g_rtc_set_time, + .read_alarm =3D s32g_rtc_read_alarm, + .set_alarm =3D s32g_rtc_set_alarm, + .alarm_irq_enable =3D s32g_rtc_alarm_irq_enable, +}; + +static void rtc_disable(struct rtc_priv *priv) +{ + u32 rtcc =3D ioread32(priv->rtc_base + RTCC_OFFSET); + + rtcc &=3D ~RTCC_CNTEN; + iowrite32(rtcc, priv->rtc_base + RTCC_OFFSET); +} + +static void rtc_enable(struct rtc_priv *priv) +{ + u32 rtcc =3D ioread32(priv->rtc_base + RTCC_OFFSET); + + rtcc |=3D RTCC_CNTEN; + iowrite32(rtcc, priv->rtc_base + RTCC_OFFSET); +} + +static int rtc_init(struct rtc_priv *priv) +{ + struct device *dev =3D priv->dev; + struct clk *sclk; + u32 rtcc =3D 0; + u32 clksel; + int ret; + + ret =3D clk_prepare_enable(priv->ipg); + if (ret) { + dev_err(dev, "Cannot enable 'ipg' clock, error: %d\n", ret); + return ret; + } + + ret =3D clk_prepare_enable(priv->sirc); + if (ret) { + dev_err(dev, "Cannot enable 'sirc' clock, error: %d\n", ret); + goto disable_ipg_clk; + } + + ret =3D clk_prepare_enable(priv->firc); + if (ret) { + dev_err(dev, "Cannot enable 'firc' clock, error: %d\n", ret); + goto disable_sirc_clk; + } + + /* Make sure the RTC ticking is disabled before we configure dividers */ + rtc_disable(priv); + + clksel =3D RTCC_CLKSEL(priv->clk_source); + rtcc |=3D clksel; + + /* Precompute the base frequency of the clock */ + switch (clksel) { + case RTCC_CLKSEL(S32G_RTC_SOURCE_SIRC): + sclk =3D priv->sirc; + break; + case RTCC_CLKSEL(S32G_RTC_SOURCE_FIRC): + sclk =3D priv->firc; + break; + default: + dev_err(dev, "Invalid clksel value: %u\n", clksel); + ret =3D -EINVAL; + goto disable_firc_clk; + } + + priv->rtc_hz =3D clk_get_rate(sclk); + if (!priv->rtc_hz) { + dev_err(dev, "Invalid RTC frequency\n"); + ret =3D -EINVAL; + goto disable_firc_clk; + } + + /* Adjust frequency if dividers are enabled */ + if (priv->div512) { + rtcc |=3D RTCC_DIV512EN; + priv->rtc_hz /=3D 512; + } + + if (priv->div32) { + rtcc |=3D RTCC_DIV32EN; + priv->rtc_hz /=3D 32; + } + + rtcc |=3D RTCC_RTCIE | RTCC_ROVREN; + iowrite32(rtcc, priv->rtc_base + RTCC_OFFSET); + + return 0; + +disable_firc_clk: + clk_disable_unprepare(priv->firc); +disable_sirc_clk: + clk_disable_unprepare(priv->sirc); +disable_ipg_clk: + clk_disable_unprepare(priv->ipg); + return ret; +} + +static int priv_dts_init(struct rtc_priv *priv) +{ + struct device *dev =3D priv->dev; + struct platform_device *pdev =3D to_platform_device(dev); + u32 clksel =3D S32G_RTC_SOURCE_SIRC; + /* div512 and div32 */ + u32 div[2] =3D { 0 }; + int ret; + + priv->sirc =3D devm_clk_get(dev, "sirc"); + if (IS_ERR(priv->sirc)) { + dev_err(dev, "Failed to get 'sirc' clock\n"); + return PTR_ERR(priv->sirc); + } + + priv->firc =3D devm_clk_get(dev, "firc"); + if (IS_ERR(priv->firc)) { + dev_err(dev, "Failed to get 'firc' clock\n"); + return PTR_ERR(priv->firc); + } + + priv->ipg =3D 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 =3D 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; + } + + ret =3D device_property_read_u32_array(dev, "nxp,dividers", div, + ARRAY_SIZE(div)); + if (ret) { + dev_err(dev, "Error reading dividers configuration, err: %d\n", ret); + return ret; + } + + ret =3D device_property_read_u32(dev, "nxp,clksel", &clksel); + if (ret) { + dev_err(dev, "Error reading clksel configuration, err: %d\n", ret); + return ret; + } + + priv->div512 =3D !!div[0]; + priv->div32 =3D !!div[1]; + + switch (clksel) { + case S32G_RTC_SOURCE_SIRC: + case S32G_RTC_SOURCE_FIRC: + priv->clk_source =3D clksel; + break; + default: + dev_err(dev, "Unsupported clksel: %d\n", clksel); + return -EINVAL; + } + + return 0; +} + +static int rtc_probe(struct platform_device *pdev) +{ + struct device *dev =3D &pdev->dev; + struct rtc_priv *priv; + int ret =3D 0; + + priv =3D devm_kzalloc(dev, sizeof(struct rtc_priv), + GFP_KERNEL); + if (!priv) + return -ENOMEM; + + priv->rtc_base =3D devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(priv->rtc_base)) { + dev_err(dev, "Failed to map registers\n"); + return PTR_ERR(priv->rtc_base); + } + + device_init_wakeup(dev, true); + priv->dev =3D dev; + + ret =3D priv_dts_init(priv); + if (ret) + return ret; + + ret =3D rtc_init(priv); + if (ret) + return ret; + + platform_set_drvdata(pdev, priv); + rtc_enable(priv); + + priv->rdev =3D devm_rtc_device_register(dev, "s32g_rtc", + &rtc_ops, THIS_MODULE); + if (IS_ERR_OR_NULL(priv->rdev)) { + dev_err(dev, "Error registering RTC device, err: %ld\n", + PTR_ERR(priv->rdev)); + ret =3D PTR_ERR(priv->rdev); + goto disable_rtc; + } + + ret =3D 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_rtc: + rtc_disable(priv); + return ret; +} + +static void rtc_remove(struct platform_device *pdev) +{ + struct rtc_priv *priv =3D platform_get_drvdata(pdev); + + rtc_disable(priv); +} + +#ifdef CONFIG_PM_SLEEP +static void enable_api_irq(struct device *dev, unsigned int enabled) +{ + struct rtc_priv *priv =3D dev_get_drvdata(dev); + u32 api_irq =3D RTCC_APIEN | RTCC_APIIE; + u32 rtcc; + + rtcc =3D ioread32(priv->rtc_base + RTCC_OFFSET); + if (enabled) + rtcc |=3D api_irq; + else + rtcc &=3D ~api_irq; + iowrite32(rtcc, priv->rtc_base + RTCC_OFFSET); +} + +static int adjust_dividers(u32 sec, struct rtc_priv *priv) +{ + u64 rtcval_max =3D U32_MAX; + u64 rtcval; + + priv->div32 =3D 0; + priv->div512 =3D 0; + + rtcval =3D sec * priv->rtc_hz; + if (rtcval < rtcval_max) + return 0; + + if (rtcval / 32 < rtcval_max) { + priv->div32 =3D 1; + return 0; + } + + if (rtcval / 512 < rtcval_max) { + priv->div512 =3D 1; + return 0; + } + + if (rtcval / (512 * 32) < rtcval_max) { + priv->div32 =3D 1; + priv->div512 =3D 1; + return 0; + } + + return -EINVAL; +} + +static int rtc_suspend(struct device *dev) +{ + struct rtc_priv *init_priv =3D dev_get_drvdata(dev); + struct rtc_priv priv; + long long base_sec; + int ret =3D 0; + u32 rtcval; + u32 sec; + + if (!device_may_wakeup(dev)) + return 0; + + /* Save last known timestamp before we switch clocks and reinit RTC */ + ret =3D s32g_rtc_read_time(dev, &priv.base.tm); + if (ret) + return ret; + + if (init_priv->clk_source =3D=3D S32G_RTC_SOURCE_SIRC) + return 0; + + /* + * Use a local copy of the RTC control block to + * avoid restoring it on resume path. + */ + memcpy(&priv, init_priv, sizeof(priv)); + + /* Switch to SIRC */ + priv.clk_source =3D S32G_RTC_SOURCE_SIRC; + + ret =3D get_time_left(dev, init_priv, &sec); + if (ret) + return ret; + + /* Adjust for the number of seconds we'll be asleep */ + base_sec =3D rtc_tm_to_time64(&init_priv->base.tm); + base_sec +=3D sec; + rtc_time64_to_tm(base_sec, &init_priv->base.tm); + + rtc_disable(&priv); + + ret =3D adjust_dividers(sec, &priv); + if (ret) { + dev_err(dev, "Failed to adjust RTC dividers to match a %u seconds delay\= n", sec); + return ret; + } + + ret =3D rtc_init(&priv); + if (ret) + return ret; + + ret =3D 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); + + rtc_enable(&priv); + + return ret; +} + +static int rtc_resume(struct device *dev) +{ + struct rtc_priv *priv =3D dev_get_drvdata(dev); + int ret; + + if (!device_may_wakeup(dev)) + return 0; + + /* Disable wake-up interrupts */ + enable_api_irq(dev, 0); + + /* Reinitialize the driver using the initial settings */ + ret =3D rtc_init(priv); + if (ret) + return ret; + + rtc_enable(priv); + + /* + * 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); +} +#endif /* CONFIG_PM_SLEEP */ + +static const struct of_device_id rtc_dt_ids[] =3D { + {.compatible =3D "nxp,s32g-rtc" }, + { /* sentinel */ }, +}; + +static SIMPLE_DEV_PM_OPS(rtc_pm_ops, + rtc_suspend, rtc_resume); + +static struct platform_driver rtc_driver =3D { + .driver =3D { + .name =3D "s32g-rtc", + .pm =3D &rtc_pm_ops, + .of_match_table =3D of_match_ptr(rtc_dt_ids), + }, + .probe =3D rtc_probe, + .remove_new =3D rtc_remove, +}; +module_platform_driver(rtc_driver); + +MODULE_AUTHOR("NXP"); +MODULE_DESCRIPTION("NXP RTC driver for S32G2/S32G3"); +MODULE_LICENSE("GPL"); --=20 2.45.2 From nobody Sat Nov 30 05:43:08 2024 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11013034.outbound.protection.outlook.com [52.101.67.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F186F13B58D; Wed, 11 Sep 2024 07:00:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.34 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726038047; cv=fail; b=XkA9D7PIPq61KF1Cu3p5ZxW4W+s8z2Y28NHdXko0sUOSwTDE4rpAbtDOIqDalbiIoxzRCOIc1QAolMfOMI1IztsE+A3hox+PVpOHCjj9ChV+RZbZ9C0mXa5uAcitkH1MWJrHb9a8II1mTxTaGscv3lLcbfGIb9Igu0tVzwVYPWE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726038047; c=relaxed/simple; bh=GAfyXvVgT9HR8DxF+8NKoDPYH1hOMQEagTZ5gxNNlM0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=oE735+mqdIt+eJTzs+PjsmaLOyPSK9ZSCYqQ3TBw8QZf/dD9bDAVcqoACwCpiEcTX8qckIer2JJ3iRvufgqNCzmapEwUcZQV3akxXQB2r1bFwVv1wJzZeiKKbG/TnXGRmmrIpkIU45uZfvgCHRNmZDOzjUQ1C3OZV1lpPK0i9QM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=b5vdI6vs; arc=fail smtp.client-ip=52.101.67.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="b5vdI6vs" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Mt1iqjoS9U3DFjCCwPsjYzoowdojuC2e2RaULT+8zUP2lCUjN/AQgMOIO5t0vyHq6YRp/Zc9DRW/mPSsSf/TEzlUyM8WkmfBA/Y6/DK2rBjw48beHUMtdNZQaVYcfagWQqSOt+/owYnYDxDwhyOb8zjMBwlM+56++7CROXgyLDiRxrgfkBBxgYD0QAGbqBa2OhltByo+4aoXVpahPKfU/RI1PA7PpHfRgrc1+xGdDy7VmuomMNA+6LIR3JxtmHTvcHh5hFPS0Hb6LW4NxUDB+Gja/xnqK894GKGFYpZEDZ8GpiqHWBjlzqLqGRrm/wqQJn2NmXAEhI0XE3oyVhEnrQ== 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=8hw3u+ji/D6a3smRWsavQ9Tny1CLf4w11xJoaPdMow8=; b=av5q64YATam4EylGuKJyTyBabEfQs/tzRNoPvSS3mqgnPgj0DByYTNYzjhEVWpJ6VC3oYqwyLyb24Lfw/EsFdkQAN/sOUJdch4HuJ6kLA/Hud/54HR5RULcjMKw4j2dFuOfOvH2pQbCjBY6sF1mQxdCkiau23VQK6O/CIBdb2KiZxYOR3TH5YDwiS1blMhI6GEaWoAVeGYLHBaQP/Mvzq/IQYeqxkLoIahWQRgYWsjgJIqL9cBuyNwrTMRSse3ncSBsiplonaRRuR45cF/zbrM2Doc/31nk+PWqWa0l2DFllp2Ks8R85LyFKtovLlGpnkFYEsWe+JeKcZqGB/TSCug== 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=8hw3u+ji/D6a3smRWsavQ9Tny1CLf4w11xJoaPdMow8=; b=b5vdI6vsEbUGmNipdOr2b4ca53efFzebIn1mnDUVlUSI0Hl7DT8UEfoyCnGEU2w7kDSYD4H+XO0MzJGLwwtiLJQU4NNzkT9CihhtlJGsZkV0iWA/y2719dTfqZ3+TLdWMoF3izy/Tucp65ANYi02XLLmPOYZq5FbKcIwUPmJoIUQ932sqh76GtseLpPlPctyc0r+QmfAMo7IpjzjvtlpNSZhV+b7+DcCYtlA4xw5ZwKTpZ/HnG9EwX2xoznLdFPclntw4oV5JKX2xZ2cP9ojIm1cK4Y2/aZzv4qdJpFtI79l9I80FD83mLvftF1+68zXamZmP+f69wop2foXM4X14w== 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 PAXPR04MB8286.eurprd04.prod.outlook.com (2603:10a6:102:1cd::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24; Wed, 11 Sep 2024 07:00: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%7]) with mapi id 15.20.7939.022; Wed, 11 Sep 2024 07:00: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 , Ciprian Marian Costea Subject: [PATCH 3/4] arm64: defconfig: add S32G RTC module support Date: Wed, 11 Sep 2024 10:00:27 +0300 Message-ID: <20240911070028.127659-4-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240911070028.127659-1-ciprianmarian.costea@oss.nxp.com> References: <20240911070028.127659-1-ciprianmarian.costea@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR02CA0123.eurprd02.prod.outlook.com (2603:10a6:20b:28c::20) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|PAXPR04MB8286:EE_ X-MS-Office365-Filtering-Correlation-Id: cbf679b8-f979-4f0a-ec40-08dcd22f7341 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|366016|376014|7416014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?B?UWgxQUFvMHNDNUFmUmZHVGl0YS84RnQzU2pCb0JObS9MWXFkdG94dnIzQXRR?= =?utf-8?B?RmtZb3BpdWFMNjUvMEE0Y2VWQXVJY3owRzZtejUzS1pkQ1VubEdWS1Q4SzFY?= =?utf-8?B?RVFsYUU1SjI1MkN5bjdwTkJFbFZvTWhTTVhtU2pqdTRQRHp5SFgwMTBwZHRq?= =?utf-8?B?UWJ6L3B4L1NKUS9GMEtUcGIrZ2djejlieFBXU00wY3RJRS95WmpINlAwVXM4?= =?utf-8?B?UmNTeGIweHRYdUZKbC9hdVRvbzVJK083VnhtMG96c2VIWnFFZ25ydVJGL3Ev?= =?utf-8?B?ZUR3VEFGSWdoRnd6V0oxQm9QRHlOc09iUXR0RUw5cm9aRTd0am5wUU1nVHN3?= =?utf-8?B?WUJybysxeU1GSWw2cUZveE5ZREZuRWJmaFVSUXM0YUhqSzl3ZHRIK3RKUmlY?= =?utf-8?B?SnNSRmZFMCs1b1RFa1BXMzZ6aExuVG1mVGhQNFJCb0h0U0FmRUlwWlJ5bU93?= =?utf-8?B?a05jWWlUNE1XajRrNGZ5QUlSSnVHWTNvUVovb3VIQlNnV2FqZGxMNjJ1aDA1?= =?utf-8?B?b21iQXgwT1hTdk5QWTBtUlZLVFgvMnhnd3EraVZNbDNCSlRzaUpuZVNrZDAv?= =?utf-8?B?K2hWZ3c3VWFRd0svZzlhdzhBYnlYajMwWk5GbjJ0ZWdEOHN4Y1JLLzAwNVhs?= =?utf-8?B?STd5L1FhTG91RFZxT0VFai9jbC9FRUNxdkpjaXE3NzRkVjhXQXNyekQyOXlj?= =?utf-8?B?N3F3WWZLTGxDWkNGYjE5dlhxdCtTRGx3S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zRm81ZkR6aFZta3F4NllQUEZPUzhqb1FWNWh1WVVnOVpzRFpi?= =?utf-8?B?NmJpSStIUU9HZHJTd1MyRlRIQUNyRk5qbEV6eGFodVA1M3BTRDBrT1AxOHlT?= =?utf-8?B?cWNjNG8zb1ZUUXdZRmw5ODFyWjJjZlNzRVRNRE5DYis4cnpBWlYxbDZrL2lx?= =?utf-8?B?czc2OVhzVC9MRmpFQnpVZz09?= 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)(366016)(376014)(7416014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZmNIbEIrNW5WVll0c3ZCUDZZSEphMEE4OWZWWEg3UExWM2hqL2RSOWdnQXRG?= =?utf-8?B?L1g0czJXQ0tzS2pJMjFqZFZGQWhmWEJFT0htcHFHS0xEcEtjRGRqbS8rRGk3?= =?utf-8?B?SDhUNi91ekRGcFR5R2Nyem1TVVFORlhZMkhWWkx6ZWZyZlhSV2JzK2Y1VENq?= =?utf-8?B?eTJtZ0hXZDNINitxbkdFQ243MDRGN2lMOGprNThJZG9KYXhkdTFuendoYjFo?= =?utf-8?B?K1JLTURVRHE4eWlHOXF3Tlg3NXZhUzhsWTRQTGZnVTM2aTZHMzZzTkNTeXlt?= =?utf-8?B?cVlHc0VqL1oxQnNXYUxRVElNWURtUEtaTjJNbS9iRlptVmlzWk1FZDZzZ1Vo?= =?utf-8?B?ZU93cXlUUmFhcHZ0OXlkVXBUWWFIdGhaZFZHNFpsSUhCakNiYnFRVGhNR0pu?= =?utf-8?B?K3VGWi9MaVd1d1VFbm43ZTN2NGlPbVBDZmhyaVhRWWNaYnZhcmVBc01sMCtz?= =?utf-8?B?Smp2ZFlQT2MwRlZkMWZCN1prcEk4U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bXhRcEVncW56dk5yVmVJbVk4eXB6OEZv?= =?utf-8?B?UzdxcG1xMDRzWHdQbTlvakY3aGZrUlZxdUFqWHBiNTNDeXN5N1JrSWVwaXB6?= =?utf-8?B?SHdTL2xHRWE1Z1pDVzhUSkdmaEl4Q2hMcFE4K0VKaDM0QVRyWHJIcG5wenpS?= =?utf-8?B?bnk2QXJHTk1NTEVCUFVkVi8wY28xU3YzbGNRdEhDWWowUEZsakhZVGpSeXY4?= =?utf-8?B?cjBGUXNPMzgxRkJmb00yS2IvZitRaFgwajJ1ZVBrUkQ5MXJXLytCZmJlRUNR?= =?utf-8?B?OGRCMmdFWHlrVUx0elZvRVVEYjYxNzZZTEZqL3VnQ3dDSWg5akQ4MkUreTBI?= =?utf-8?B?cWlYVmt3eDhCNVJzUjVBYXpKSjJzYlRIa3p4OXl3aU9VZytkVGNlektDWnRQ?= =?utf-8?B?bUZqWUZsa3BpcXhhZlllb245RkJ2VFZGcjZLYm5qdGR5anQxMUhtaEdDcUJ0?= =?utf-8?B?Tm55RU9FMHIvWWN2S0pXenVLblkxcC9UZjBaeDc3RWpWeHB4WGtCV1c1UXo3?= =?utf-8?B?cEdKcFV0T2tyRzE5VDIyMWxBQm9iVEJMbVJpMzFpcjA3RXJJUmFnTmsxbnBi?= =?utf-8?B?SkRqYmJCL0pWeDI4OWVHUmU4N1VWaUJCaFVhOG5ROG9BcVB3Vzl0b3c1VW01?= =?utf-8?B?YTZ6bEtGNzhxY1BJL0M1Y3NaN2pwTGVtaitZdDhMR0YwN3JkSTNGUzhjcVdT?= =?utf-8?B?M3ZZdTllTkRWQS9IdWpaZ0tYTFl2UTBFczg0K3g2QU03N1g5dktVejB6ZElq?= =?utf-8?B?TkE9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cbf679b8-f979-4f0a-ec40-08dcd22f7341 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 07:00:42.0714 (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: eIGrbuxMRz8UYiGwzAJ9a3UdZM9lP4NhlqpULq4v0ZWt1FWhbU7eEOSH+i676WsRxofYVW/l8xrnTzUR1UOFu83f/wLFMyOrPjRcDAkumBg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8286 Content-Type: text/plain; charset="utf-8" From: Ciprian Marian Costea This patch enables CONFIG_RTC_DRV_S32G as module by default. 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 7d32fca64996..5de9ae08294c 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1198,6 +1198,7 @@ CONFIG_RTC_DRV_DA9063=3Dm CONFIG_RTC_DRV_EFI=3Dy CONFIG_RTC_DRV_CROS_EC=3Dy CONFIG_RTC_DRV_FSL_FTM_ALARM=3Dm +CONFIG_RTC_DRV_S32G=3Dm CONFIG_RTC_DRV_S3C=3Dy CONFIG_RTC_DRV_PL031=3Dy CONFIG_RTC_DRV_SUN6I=3Dy --=20 2.45.2 From nobody Sat Nov 30 05:43:08 2024 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2060.outbound.protection.outlook.com [40.107.105.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACE5613C80A; Wed, 11 Sep 2024 07:00:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.60 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726038049; cv=fail; b=bNP0JymEu1FSerPXlWxuQeknRG/FIXnutli2hU27qscarZwUdA/WYucbfa85hRLYd83o1j/NBiU7hWztzPd0MG6RxRdNIiTCJgmrAxORRgHzQy0TzpTL4rYhLCtBGq8oDPTKK5pwtJ6j1yxpVve5E/PAmRsjnxAn2X0Yu962O1g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726038049; c=relaxed/simple; bh=8i8thz3NXSmsWI6AEtypGc1RDUtskOVriGGgPNPEzfI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=uMRiFdqWnIIjjjfksYfdONpIJMvzR/TB+8gnhe7J5TxHD60gV9EOEi3Z0PUFfVASo/4lEzS2WASP+Ilnfc4te+XYyU10Ej4m1BeHOl84crFbXghQOv0cEhpgqVQVcROC66A3OC/CBTnKUhOZ98cKZX2jyY0pLIiIV9KjiTv4YyE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=A/TesZyZ; arc=fail smtp.client-ip=40.107.105.60 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="A/TesZyZ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rITl0borFJl3URlGvJnDM0ox3Zsu69/1oVOjPdZdEIeYCuwT71PUvjSDVpU2BjO5J7idTgbA0UL84BAiBenPr2jjEJsO7sclAVMMIT0w1ZxOT9xEOWJBM628h9V8n3JOGQ+Cvwbng87fynMyr1B+H2MRnQrrj94quy/lA4gE9rpIhxGf1Nm7U8VuueMxgJ8jvy3URlg3XWvRxPfYzjldC53FnWLDgNBrnl455aMGPDCcT/PCrvFCQ/YGwdMwTWDeOdILtFEdKRbiS9TwE3dz6cHc3hBTtMo1PFWu78W8OAqkMK7G1Xo1kyRDrDEc2B2YYqXYs43hwA/4g39JZosmWw== 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=1PAMSGH8txMMBpXJwPyodEagL9nov+U9fFwO3UOKfZ4=; b=V+UPZ37fBja9gDOO10sM+Yx18UhUHC5F++kb4jdiRmsXBWurILyjGcUZ6doSL/4ag2O4Ir32C0pAMLuY6QGupYGJLYoXWMhoJndvcou2aM55rFy2WlUO4I+xPF3eN0kOCj80wKZfkCjjHb7Y3nbrhZkmv+r0HM9a7M3SYr5LbX6sDnvuVqIzWmQgwKp5l9AxUkk0bFefMiMp7VRyuhqGr2mTYdcf5wn3jHAxjmUK+wPba6u1jAG63PR6bhl6TK2/q8Fh7A44+g9WO0/YQEojh4AKGTVKzqKV9YN9Rm/pfI7dC34YN7UQkzRtleNiSB1y9r9ONPJgDD/ew5I++J6aiw== 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=1PAMSGH8txMMBpXJwPyodEagL9nov+U9fFwO3UOKfZ4=; b=A/TesZyZRben0ndhPG4fj0a2MHnXQcvvFdMADFK3Cmhb2DiZSHdEyEHAmocxz/WhTMNeB1ASia14VUzYOKFjQXJOcz15hS8kKEA5UzQPFeBKHNvtZ4VDpGZyVBWiqvoUwzLKxjaf0/svjgE7rf368xhDF8xspW49peX3VY4s99IHx0CpbpcBSwd0PK5BTehVlaWKQYjZRK29MzSXTf8FW/mInZPGO5iUWokhSXF04fXkVq8kNeOCVuMu4KEcsxRsIk39wFi+2+TIJRGoD6mb0ZCqM6AELT+2SHAU+ZJru51WyEjKEWOaMocIsuqrOMdDOSDqzMwFDL7e7vlF3oyZRQ== 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 AS4PR04MB9507.eurprd04.prod.outlook.com (2603:10a6:20b:4ca::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Wed, 11 Sep 2024 07:00:44 +0000 Received: from DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd]) by DU0PR04MB9251.eurprd04.prod.outlook.com ([fe80::708f:69ee:15df:6ebd%7]) with mapi id 15.20.7939.022; Wed, 11 Sep 2024 07:00:44 +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 , Ciprian Marian Costea Subject: [PATCH 4/4] MAINTAINERS: add MAINTAINER for S32G2/S32G3 RTC driver Date: Wed, 11 Sep 2024 10:00:28 +0300 Message-ID: <20240911070028.127659-5-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240911070028.127659-1-ciprianmarian.costea@oss.nxp.com> References: <20240911070028.127659-1-ciprianmarian.costea@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR02CA0127.eurprd02.prod.outlook.com (2603:10a6:20b:28c::24) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|AS4PR04MB9507:EE_ X-MS-Office365-Filtering-Correlation-Id: b15954bb-c847-4d32-6458-08dcd22f7474 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|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?YzZEUzdVaHdlSGdOSEhzWkpnMzZVVCthQ2I1OFU1Wnc1NWVwN00veWdYNjcx?= =?utf-8?B?L3FCdXFrM3Q4TFBaU3N4QmZoV3lueXJ2VWJQUTdEVHZ4aDlGN2VCZVd2dlpR?= =?utf-8?B?NHAvTkdDcVBmdlBIalFyM25STUQ3YXRVKzJrUGFzdzgxazlrTEZMcy85V1hX?= =?utf-8?B?UUs3YnVRRlZCMnM2dWVVZCtxS2prb1Fnb1dHZzBya3ZzQTdYK2tDSkFYZkcv?= =?utf-8?B?blFsckw2bWJpdS9Cb0Rjb0dyL284anpOcmhSa25yTjJSc2QxMGF1N29kL3lJ?= =?utf-8?B?eUdVcE5LNUpsQVpjd2JWbCtVTFFMYlRWeTl0dDNmMWluMXFRWnFkcnhIMGJI?= =?utf-8?B?UmoyNTlyLyt3Z0g4QTFIUVo1RVJnU3ovaEoyZUFSTzg4SitFS1lTc1RrT0xt?= =?utf-8?B?Wk1iZFQxa0V5Yk1UZmE1ZklwcklTMjFDY0Nsb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p4ZG54N3RHY2NiY2Y1VDN3S2w2UmtkZ2VpN0NM?= =?utf-8?B?cnJZc3FKSlVUN2RhdVo1dTJvWVJxQTRKTDJGYUFZUktHdE1Pd3dIZlBYOXJu?= =?utf-8?B?ckVWKzhONnEzcGhhSFpaamhpbGtMdVRhWStGdTE2U01SZXY2Y3p2YXUzdlBD?= =?utf-8?B?NXgrSGVwLy8zY04xMC9wZXgzWCt3M3I1dmlJS2cvOXFKalptOWtHU05LbXdw?= =?utf-8?B?UFNINnFiRlpoVnJkNVR1N1NPWUl5VTlON3l5TitvVU1XaDlSM0xMSGdtUW5y?= =?utf-8?B?aHFnSGk0ZVpFQ203dGlQczViVE8wS2FacTlTTmpGRW5LZUUxdmhnbGM2MTMx?= =?utf-8?B?QnFnWDRLVEhYK3RIQkF5QjA2azdQeklObytBZk9pOXFCeU93dk1za0xtODht?= =?utf-8?B?Tk1Ja2s5OFNtamkwME8wcVVNR1pUMExDblhzSDR6aXA5Z0VoL0plSVFOd3RV?= =?utf-8?B?UTNNTzFWa0lhTWdZcVZMZz09?= 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)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?eC90Y3JzQW93U2tUbVFybGFKZlVJR0xVaWc4S1ErMkVCTnhqUjlWdzNpTlJT?= =?utf-8?B?L3ozcWtJbkl2U2dmcHNmL3Nxd3hnS2tNblhveXI4c3o3a2xKMjhzMG5MYUV2?= =?utf-8?B?VUdsVTBibTRDUGc2bGZrcXNNcGtQeXZuMzU2V3BqNGpTMHJCNFJTazBIeDA3?= =?utf-8?B?bVY0T2VBMnc2VVlLODdzT0NreGJaV21KUyt1SDB4aThsTUE5ZGwyO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?B?cVB6YzZROWYraDNJWDd0bitiQnlCV2tVdnFnZWMzYUE5UXhMSTgvSlBxZWJi?= =?utf-8?B?djF6eG9hOXlBR0lXY1FDL1dadnVmVExZMUdpOG5QOWtTNFpmNWtIREp5MW5D?= =?utf-8?B?VGJoQUhiMmcvcHY4YTZRYUR4L1A2dGdMam90NzY0UFRRYWd6SVcwYlpaOFN2?= =?utf-8?B?REE9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b15954bb-c847-4d32-6458-08dcd22f7474 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Sep 2024 07:00:44.1423 (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: yiOBoew5I8S/mJoR1wvEbbYo7ig6KABSlMYdnlO87IzYpXh3DACsJpwhaUssGPmZ6sLvAmqhGgNE1qQF/vvQCUmM0j8GNOjSWErcfYpE7CI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR04MB9507 Content-Type: text/plain; charset="utf-8" From: Ciprian Marian Costea Now that a RTC driver was added for S32G2/S32G3 SoC, update the mainainters list for it. Signed-off-by: Ciprian Marian Costea --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f328373463b0..a6d91101ec43 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2686,11 +2686,13 @@ ARM/NXP S32G ARCHITECTURE R: Chester Lin R: Matthias Brugger R: Ghennadi Procopciuc +R: Ciprian Marian Costea L: NXP S32 Linux Team L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained F: arch/arm64/boot/dts/freescale/s32g*.dts* F: drivers/pinctrl/nxp/ +F: drivers/rtc/rtc-s32g.c =20 ARM/Orion SoC/Technologic Systems TS-78xx platform support M: Alexander Clouter --=20 2.45.2