From patchwork Mon Nov 11 13:59:37 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: 13870801 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 D6846D2E9F0 for ; Mon, 11 Nov 2024 14:03:48 +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=02ey7NkJcvEsc6BZIQJbGQahJL+2StBIKYXsaxNiRb8=; b=nky5MRwigCuMwOzckOA0LG0A0P pdywpOX/CRJRg6Z4Won7rkW54O+LuG57H31NjLUkXg78Q6tT/ppvwv3LcK19VNr5lfx0wXGHFW5OP 0TEFMGW7SJVJWatHij1h/zhNHfgay5dyeQc8/Ou8uHEI9a1nt/Tww43Ukv74QwPFJk146oYFVF4xk aK5D48cyfvfHnxddyT4ZEGHhLSAM1NsAO7wN+t8w5c8ruNUugjErLuEt+zOSp8J8GyT9cA357c23S DHKjh7bOPthaIUneBydDBHH3IxOvJBIN15iYVcZC6AD2gqPY8GAQkpujAuvXvUJXv5hi3eL8MEF00 n4iQxGQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tAV0v-00000000FVR-10Wo; Mon, 11 Nov 2024 14:03:33 +0000 Received: from mail-vi1eur03on20618.outbound.protection.outlook.com ([2a01:111:f403:260c::618] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tAUxM-00000000ElX-2VbH for linux-arm-kernel@lists.infradead.org; Mon, 11 Nov 2024 13:59:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cNheTlcLVkq6fX8rBMYqi0o/1NxpWD9gIthtP7574uAyvpb6+PdXHi6Mbt0Mel3fYNIMK9+qopTXZmXrxUGVmR5GkxzFXmh1BScutVZuK/NQvIMeb1VT4NwncstYSZKiXuTtn+okTnZwf2Vk7VtWo/9s55pMDSxmYmAgVQ2j7jOsA2DtRB9IL9BK8Svj56bOCngfpoi9rQSvlEccV17h2iFGmar3IoH10WlwpwgIdcHZgGavtNJdWgdQmFkFX5ehShhJUct8IX4JQabBjKpahz5POq40xMi/W4rv3JWwhr3k8TMYWLUQWCz7ize4v6lhnJciCqNuGo4GN3vQQqPsHg== 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=02ey7NkJcvEsc6BZIQJbGQahJL+2StBIKYXsaxNiRb8=; b=dHj/y8AE79gitrKDLt0mEaGy/0zryPRPZGIAG3/dtj38yHhaxPuJJxc5v5MKBy3QcVYDy+48sQFZk0lnQV8DZgUdGhEWFFcKBijQGzqGjB5ayjXWrgpzlOSWZdMqGIh68qQPULlu7wI399RWOtzVVnUHN+GVP+EBbwNKVyrubOk88/4zeiuVBcgElw3jZoNF0oT9fHrYUbD5FRQchf6/uFguDhQy/QW7EEx8fZnXUocvYAAjJtZZtjbJ0EzHi1FvG1hnzHnnYU/H2W4MldCGqRAHZqie6MkRFG8R6/13Wt4Wt7pK/UWAvqqyfJRA8NPyq08WuvbzAvu+foi6pozbUw== 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=02ey7NkJcvEsc6BZIQJbGQahJL+2StBIKYXsaxNiRb8=; b=Udjt1Qo7GgOs7Y5pqJZW5oGnVxagLtBfZ4uBlnHQqQjbYmvUPqjILz2shc19ZCAb8FzWeCimAc90Zk6rOF1Hf/f0J8SCRbewdVFE2RuvVj8+47drTl/WfHJJLace211l1bVVFErJPbSOnE1E7MpPyjexRNNCdkb7E0yA1eFJgg94261R2uFOb6J04Rrfd5usPQygvI6J6rz7PamcytYdwh1UEC8u3E9VGxNWdEvkmQBhBigJihzrMlHIJB6wuojj3J7wtxVYgpdvn0TF+DuLlAQnkWauEPDCE60YX6NNVKfp25u7RBT4KCt4dRNoLapH7tAJGCqOIPYZbF0HPvTHDw== 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 PAXPR04MB9075.eurprd04.prod.outlook.com (2603:10a6:102:229::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 13:59: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%6]) with mapi id 15.20.8137.018; Mon, 11 Nov 2024 13:59: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, imx@lists.linux.dev, NXP S32 Linux , Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea , Bogdan-Gabriel Roman , Ghennadi Procopciuc Subject: [PATCH v4 1/4] dt-bindings: rtc: add schema for NXP S32G2/S32G3 SoCs Date: Mon, 11 Nov 2024 15:59:37 +0200 Message-ID: <20241111135940.2534034-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241111135940.2534034-1-ciprianmarian.costea@oss.nxp.com> References: <20241111135940.2534034-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AS4P195CA0011.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:5e2::15) 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_|PAXPR04MB9075:EE_ X-MS-Office365-Filtering-Correlation-Id: 370f6f5a-be6c-4448-16ff-08dd0259198f 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?q?lM8AyJNAgUtatwdSfQr8lT1ykr5VCx3?= =?utf-8?q?e4s7OqmAe0oB8SGrThI560ej1wTGiOhVDBBzY8leleWr3Arv+gK7ruAzjRoXrhGa6?= =?utf-8?q?phXtURimIvfLMBoO2Q/iR9e166qLaR7td7YGOX9ssIahRbZ+arphpUtFLKL2EFoZv?= =?utf-8?q?UrHQKv13dU8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Lnqgpt7Wl4aVduS6bEmjFrrzC/trL48V1cOa3TN+CcJXvno?= =?utf-8?q?hKiGOA/opfN3/3k07aEAWkCUSZdHeCGuSG8qCHAw23M/Sp0E7XKF+QTyBxxNYVJRL?= =?utf-8?q?27lxxxJaTPBS0vC+IRZZ9thI3qQ+6dSAuxJotwf9CI5D/TX7+R2S4HTqns8ZVqDTy?= =?utf-8?q?FFQhL5v4oOFJATExiV8zbly5CV9hkjH6iVOQ=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)(7416014)(1800799024)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?KoCG9DBVso9AHC1ImwQo2q+sZQbM?= =?utf-8?q?NunxLY8rfSrBwQtMfIcZrlV70gSf21wMAez7I6frcfDdgctgQdy2r6+gFl26nRjkH?= =?utf-8?q?9VAlorX5hie08bizA4DgEMsbI83y7wYaUe9cp4tpNeLIcgZqY8ubcPtG9oFx2x2Rx?= =?utf-8?q?sqXK2YLis1yyr2uhmOXl9oFkr3CLCBXBPxK+1nnu1zWhCiB2E9hmOg//QV1Udp3Pp?= =?utf-8?q?qvwowcKjbhAGIbYdY9ZbJLUo8dRMdtdQYR9tV3d+5nrBpRSTIbmsRYaBOLYNM42tu?= =?utf-8?q?Z5aS0Wr0KrWVuAEKB96PoqEiAPAfh329j7oGuKExoLZ4f0OZ3iAZh92/1uA+3EHYt?= =?utf-8?q?ffJeerA6/ULYVYRSRnkXD330IFmhRZiJZojOUgUZsbqQ5OQe13rystUwM65M3bqJw?= =?utf-8?q?O9ZaSVSdlaxBzTqn4lzeEzwnSEt9eLFZCRGF45BWRgUfzPGxXHyUOQfncjlxr6S/+?= =?utf-8?q?TG76djDUvfx/F44h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YGtK7IsvORjpxHBI/vggThzV/q3lvEU5LAyazOg?= =?utf-8?q?EOpolMqHp0eHdyeKj/41bxWQbGlCfVWqsVR8Bc3j5AR4SZgka42/7Ks32g5y1e73Z?= =?utf-8?q?1uNrvDjqD/A5UtbLgc7qwWMiq7ET2roLGInrBkUj/F/jfFtePJjQ8brFdUN5Z9ozm?= =?utf-8?q?clL0JcSgRe81IA4hzQPAJFXFUeu+kYB5kw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 370f6f5a-be6c-4448-16ff-08dd0259198f X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 13:59:46.2609 (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: uazb7th6jP9nX2zlDjBV/fQLbB3bj6c9PHgSszoMdprcaHvifYcyp26l0dstpZa3fMZmHGgkMQfspyZypztnjXaYO21wBRhTvfvEJZCUDI8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9075 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241111_055952_670442_5AD4C408 X-CRM114-Status: GOOD ( 17.37 ) 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 RTC tracks clock time during system suspend and it is used as a wakeup source on S32G2/S32G3 architecture. RTC from S32G2/S32G3 is not battery-powered and it is not kept alive during system reset. 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 | 78 +++++++++++++++++++ 1 file changed, 78 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..231811579e1b --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml @@ -0,0 +1,78 @@ +# 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 + +description: + RTC hardware module present on S32G2/S32G3 SoCs is used as a wakeup + source. It is not kept alive during system reset and it is not + battery-powered. + + RTC hardware module contains a hardware mux with 4 entries/inputs + for clock source selection. On S32G2/S32G3 SoCs, this mux is used + to select between a clock source for runtime which brings more + precision but is not available during system standby, and a clock + source for suspend state. + +properties: + compatible: + oneOf: + - enum: + - nxp,s32g2-rtc + - items: + - const: nxp,s32g3-rtc + - const: nxp,s32g2-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 2 + items: + - description: ipg clock drives the access to the + RTC iomapped registers + - 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. + + clock-names: + minItems: 2 + maxItems: 3 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + rtc@40060000 { + compatible = "nxp,s32g3-rtc", + "nxp,s32g2-rtc"; + reg = <0x40060000 0x1000>; + interrupts = ; + clocks = <&clks 54>, <&clks 56>, <&clks 55>; + clock-names = "ipg", + "rtc_runtime_s2", + "rtc_standby_s0"; + };