From patchwork Fri Dec 6 07:09:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ciprian Costea X-Patchwork-Id: 13896556 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2071.outbound.protection.outlook.com [40.107.20.71]) (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 C244A1DB551 for ; Fri, 6 Dec 2024 07:10:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.71 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733469010; cv=fail; b=HIYUR4BIUT9XMRNj+NlyMnQb/ucQcrjygPm25o0rdXPZZhApGdqdSLMw75dCT6GfEAgBzC92RdLSz/TUVZyRK635KY28oBbXl9ybTwW6hLoESea90AgbGG1i606PKD0814/f3sxZhHES3dngiZbshc5fwXagNyLeAAnga73hBvo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733469010; c=relaxed/simple; bh=GT2eSQCeYDlgBq4QbxaKas43GHQWk+cuYlbkT6lAvx0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=sQ3OeZtAFJ0L8nimF8Lsut4GjgEBaRZndtJ1rn1TH4FPACgSVGlipYGJiNvd2e+pI8yCisrzUfKTCx6uSigGtwhnbD9VzWC5RDH5Ji5tb4aesajSJmrGWOLN80eXmoWxqiTg/nGQ42ZQDqc5FL1lmZlVSqrXXKaJgGvOU9IUsF0= 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=iQ3MSSNV; arc=fail smtp.client-ip=40.107.20.71 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="iQ3MSSNV" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sT50haU8MhTOiPuofkrGh9rHQva4Js/E8K56MYtCKRemrTdFKNh8PokZhzzb6bLAOr+9ocUJq+HYlZ8KEJATl5QuJ+Gtb3uaLydDT8BETEVVw0BjgfdfKGniWnNfe6JJ/3Ow+5J6aXqR2zFRZles1hzWQwX6KOBh0Kfmzo7awRg+P/pW5JWCaqGzsNzhcgP/aovjeTTGB5TtpFfgFiPtItjgqfmubKTqfAa4d+zx/u1IqRfVm+foTlKJq6tP9kB0bq5GxuNDllU+Pq915qOWF7VwmA76pyzNJ+XPGvI4I6Y2A+odv07Y+lsQ5mn1WcG5KizJzW1XmbEJ7NoT4VYzCw== 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=dtm3MyqGq7l0RwwAhISvajKKCxuLpQKkvVork+J4XO4=; b=yPkifMxWBZTTlY/DywEvbadP9M7e800nFv85C76U5jYqrdJEpfo5x8UOTe8lICWS5kUDWmxefH0+ThpQfo6mzKwQ+vlP5ha4i807xH6PZPbeEw3qYCsShIh6aUfZ9QaEHSJYekwVAgevKmf6ZTpylQdARZ6GRR2BAJyqQdRtMAh5DIlOIvFzvMhev9rPdYZEXDEJFpMuFxqWLRieN48+Tw52DvoT3Sdqo9b39psIToiFaPId1cmez5GCojPfUflfdj0k6R3eHDARB5wap+IA5EjB6L5S/FZ9eqiCEY42YZy14siX8AwChbCCDnZ+bXWHkpG34wavAcAPa5/WE8d2Pg== 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=dtm3MyqGq7l0RwwAhISvajKKCxuLpQKkvVork+J4XO4=; b=iQ3MSSNVSmDzEFgtd234fR5cKGcCZf+dooKmQbTGQt9KNcEBdD2irRZW0RTtOUnvjIFEHxx8eYAQ0CXOqmTUL/CzV1Y9ZRMYBB27yOxqTGYoMoJCc5xTGZMfaMKvK/DGrSulwY45t88IZxfSKwqTEvEOq7YeKDufRTE2R3F6uvH6GIMSy9+2kbB4DyONO23vPzlw1ahLVj7tcPrxHU19bL/2w1GVgkb9oktFQgeUGEdx5/+UDk0UgNw8Fq8I+K7pNd3hbCm6yvDSkjW+DzsY+lMQzW8v4OHj5+hMfIYTfc3d1BLfa0Ozd05FjamLjVHtEN2/YtbSJkpWfM+RLxM77A== 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 DB9PR04MB9889.eurprd04.prod.outlook.com (2603:10a6:10:4ef::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.10; Fri, 6 Dec 2024 07:10:01 +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.8207.017; Fri, 6 Dec 2024 07:10:01 +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 , imx@lists.linux.dev, Christophe Lizzi , Alberto Ruiz , Enric Balletbo , Ciprian Marian Costea , Bogdan-Gabriel Roman , Ghennadi Procopciuc Subject: [PATCH v6 1/4] dt-bindings: rtc: add schema for NXP S32G2/S32G3 SoCs Date: Fri, 6 Dec 2024 09:09:52 +0200 Message-ID: <20241206070955.1503412-2-ciprianmarian.costea@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241206070955.1503412-1-ciprianmarian.costea@oss.nxp.com> References: <20241206070955.1503412-1-ciprianmarian.costea@oss.nxp.com> X-ClientProxiedBy: AM0PR06CA0106.eurprd06.prod.outlook.com (2603:10a6:208:fa::47) To DU0PR04MB9251.eurprd04.prod.outlook.com (2603:10a6:10:352::15) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9251:EE_|DB9PR04MB9889:EE_ X-MS-Office365-Filtering-Correlation-Id: 0949f619-d032-492f-c8c9-08dd15c5003b 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|1800799024|376014|7416014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?jZi6BswPj1Va/aYvFioQcd1d6myXnI5?= =?utf-8?q?zEQ4x5eQPABjeEY0bUb2dkFQ2z7sFTrknTS3NNIzEZYCyHIjJS16vLn35Dvwa3+Y6?= =?utf-8?q?6vxsN8P5hTqMmghonmVJFUz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qsmnAkNwrk3WPJyh8KNkwbX6tUtnDzqfhHUxoEfLRFeSC?= =?utf-8?q?hH577P6D6K6N04X6L3wBN9Wo4Kkt3UuDiTub8CU1d4QHXBh2/TY4UHmcoChIYSJeP?= =?utf-8?q?cP+8aeNtnNbLBFdMeqvvfAgcbRY/EwsB4gQY9zOzP5dFJ7QWdQsyFWmhOet9XAGNm?= =?utf-8?q?WoeQeqDt50y3+rdzXaW0IZRbGW1bLWIbPoUydlJnD/Yf7NmrwoXKPoDpxjWLuG/mv?= =?utf-8?q?vheckkKFgo8yPE4QUG9nhU3hA+NizRr7NO06UR1DzEk54upiQruXBdrtaoz6eNDhp?= =?utf-8?q?WhHruRTL8/0U+?= 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)(1800799024)(376014)(7416014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?EAy8ue4TAKi0IlN9+Im1gQQypxTH?= =?utf-8?q?1GZx4j8LiEB6b9AV/v/FyNo/3OS1f3vc6fD3FqX2DxUH7BQH8RjKVLwpQMkXpbo5o?= =?utf-8?q?giuFX1+0Z33hlqzLwxvw2VE/fTvf8fKZTCfQB7L/c4qqkT7fIkQPxyjh1geA/fdSb?= =?utf-8?q?bZaYf7ZQOxgY5lMWLBJuyZ3QGE8JrFF6lpwWXUVfj16nuvbotbDMLme3I98Y9OZWj?= =?utf-8?q?pdLn7TyXaKSdylJBW6eVGEnp/TrEAWcuGrK3psLpPyoshS22GV0cQMs3yRs3tvKGt?= =?utf-8?q?TOYrT2Dmn71HBdPfrz1QQNv/XWo62X3+ykU7n3UVKGlbpCFa8kvRhgZHo6TyepmVH?= =?utf-8?q?r1qZ2qX4BTUYovOWs8EMMmyWoNCafrAR/Kc6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+Fw7o18F43SAN4XAFPA2FwLeY+mh1Tc?= =?utf-8?q?SKvAWUZInTtJ+GiUMiegANQ6ri+e5jrYZZLYDYC3PBvrfSgtp6kCDT2aB9uRLL3DY?= =?utf-8?q?V87x8p4+ry7iXbQQgmVF3OttCsv2zFUMq3D83TOG1ldiseYN3xTp4XCubNhs/0J9s?= =?utf-8?q?iYfeb4Y3RmJdKZeN6mRcTXmVSw6nXY7A8M6IeDbeh3DV4HHNIM/CUH25jqltlPb1l?= =?utf-8?q?5C8BnW3giYBVmFA1ZyrESh1ApIyRHccVD+/8xUcmeYL0r8nPGSdulQ2fzWTkwvEuK?= =?utf-8?q?j1QyQyVc3dE3gWhYWX1ghy2DVidTre+JTg=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0949f619-d032-492f-c8c9-08dd15c5003b X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9251.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2024 07:10:01.4555 (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: uP6AC/mx8oiWCLtNcJkkJT2T+dARwVr9LAji/Htw43As61SbvjGw2HtICMXcT+5JIwKQR7SLwEYUkcpOu233EB9fDWGibtRwrUm3X+XtmiM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9889 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 Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/rtc/nxp,s32g-rtc.yaml | 72 +++++++++++++++++++ 1 file changed, 72 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..40fd2fa298fe --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/nxp,s32g-rtc.yaml @@ -0,0 +1,72 @@ +# 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. + +allOf: + - $ref: rtc.yaml# + +properties: + compatible: + oneOf: + - enum: + - nxp,s32g2-rtc + - items: + - const: nxp,s32g3-rtc + - const: nxp,s32g2-rtc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: ipg clock drives the access to the RTC iomapped registers + - description: Clock source for the RTC module. Can be selected between + 4 different clock sources using an integrated hardware mux. + On S32G2/S32G3 SoCs, 'source0' is the SIRC clock (~32KHz) and it is + available during standby and runtime. 'source1' is reserved and cannot + be used. 'source2' is the FIRC clock and it is only available during + runtime providing a better resolution (~48MHz). 'source3' is an external + RTC clock source which can be additionally added in hardware. + + clock-names: + items: + - const: ipg + - enum: [ source0, source1, source2, source3 ] + +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 55>; + clock-names = "ipg", "source0"; + };