Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp121221lqt; Mon, 18 Mar 2024 03:26:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWPVQhHk2OiIz13uqBQ32CZTLq5jtUDIvmAQqfZt8FJvWN5nWg0hWSpOh+5KoC03yPTRT4lzleQoVMUUzBIQnb6cItX83/bVITQa7ygQ== X-Google-Smtp-Source: AGHT+IGMPDrrGLnLBMofQG3OhPfEbk0lkw9IBGLale3Lm9soKA1dDKXpE+qUqwQdGLeiKyUtPaGS X-Received: by 2002:a17:906:c794:b0:a46:be81:fdd6 with SMTP id cw20-20020a170906c79400b00a46be81fdd6mr2027376ejb.32.1710757591647; Mon, 18 Mar 2024 03:26:31 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v23-20020a1709067d9700b00a461f917062si4408965ejo.212.2024.03.18.03.26.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 03:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=Rh5WdSkV; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-106002-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106002-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2BB7A1F22D15 for ; Mon, 18 Mar 2024 10:26:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F2382D042; Mon, 18 Mar 2024 10:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Rh5WdSkV" Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2075.outbound.protection.outlook.com [40.107.13.75]) (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 1DF672D605; Mon, 18 Mar 2024 10:25:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.13.75 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710757556; cv=fail; b=j1p30DwhhzYmc8PmZv6wmerhj/PV7oFZ9chumJdHNHm0i4/7u+YLthSOz5oyhVFaE6MLgDOlzJwiiNf6YxVP9JPjf9JxeoaOXwEBq5k+Fg6xSAeociw4LLDSYci7cBnLbenWGe+cU0QcIfEZt98TZk/rAL5GZNYZmhb4zflRzcM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710757556; c=relaxed/simple; bh=NfQm0tSEm6+VZvS9/Lx+EemyGPIogyzX5S79v/I2Qk0=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=sosH9blYbMPar+5LasiVtzj1dtHkZ3L2sjOxAAagsgpVjTBjUB/sgMmidsRryjI2rNLTsv9785hiVDV404swB8+vH3FT2XIbeHnaZaEAwtRx+6Od9zZyM+0nZmWYqZhatpa8xmCs2S+j+F6o5Hre0onKj5IR80qKdV+8oYh2dpY= 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=Rh5WdSkV; arc=fail smtp.client-ip=40.107.13.75 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RGgjGxFRYM6IB3C/Uy4IfCnGc6g8Uwg1NqfgwUdIyLBvFAdAJHV+nXUjuB7ydndzyQdX+Ru8U6JXgE9FRIOfl1IqgrEujr/JQ4t1R9nigcRegQJyAELRDUXUcRi/jgIkL+hWaCly3Gnx7iUvlZI9E8VoTG9Cfuy8hBWhs380ZmD8QhL2kSeBrC5RFw3Ew8jiwMCtJW41USTorkXEuYn6Ac4dOwEeb7oaSPz5a9nxARgstA8d/3DRCB9S6W/n2pJoLNDNvkxLdKZYmheGRXiVXbtkz0eF+DtaU++MnR1DkOazpqLA5riGSMuWiZ2oXsxbNu2jCiw2GNsKATHi6pW/CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=isS+SD7/jE1i07G2FExvSEBVKg9JP3Xve4mcZuFGyVE=; b=egIrGQ2n3HE+ePw7dIGkOyhHwdjZkFInEEATh1VztxtpVuxwcAYo2cE9g8CZutnfOAj833RZw1Kpe1J4kvTCWwKYC9GiqQVa7pMdnozysA1DrYtlak7GAzLw17s34ZK2NrB44G6Z1uZF1aXCjOIj5XkmR5OcaqUmzCq4nY99R+DXvuHtT1A7bo9+J2W1jgBpzgHvlFpK8ANgT0WJMzTGZOx7TUikzipgd/l0vysag2V9dcPjn0cvR1Y8qpo1thjQo9kVX9V+C4P6QW1y9ZxMf8rpoRKDSgh9IXBe0vVicHGurBFPUZU0APKbfgIOdRMBnnUg6nk1c4FXR+pPpcY/TA== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=isS+SD7/jE1i07G2FExvSEBVKg9JP3Xve4mcZuFGyVE=; b=Rh5WdSkVShOlD+4dE4EY5WtC+h2igMWhycVoOdI7SdkIZDTR+7hnLf5QNl9aiBagHBhgU6uEF3P6/4jMSzwIRQpWH8Y4MZ2V5X++skX51BS8s6PTIkJLDON4wc/e56yaCq7fxb5ieZVBM4C8Q+CatndqKmg8s1Ed8So9r7yRuvs= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU2PR04MB8582.eurprd04.prod.outlook.com (2603:10a6:10:2d9::24) by DU2PR04MB8966.eurprd04.prod.outlook.com (2603:10a6:10:2e1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.36; Mon, 18 Mar 2024 10:25:46 +0000 Received: from DU2PR04MB8582.eurprd04.prod.outlook.com ([fe80::195c:9861:96a1:56ed]) by DU2PR04MB8582.eurprd04.prod.outlook.com ([fe80::195c:9861:96a1:56ed%4]) with mapi id 15.20.7386.025; Mon, 18 Mar 2024 10:25:46 +0000 Message-ID: <1a572cb3-8bd5-4e0f-8eac-60ea4ec51bd3@oss.nxp.com> Date: Mon, 18 Mar 2024 12:25:40 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] arm64: dts: S32G3: Introduce device tree for S32G-VNP-RDB3 Content-Language: en-US To: Wadim Mueller Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Chester Lin , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Matthias Brugger , NXP S32 Linux Team , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Michael Turquette , Stephen Boyd , Richard Cochran , Simon Horman , Andrew Halaney , Bartosz Golaszewski , Johannes Zink , Shenwei Wang , "Russell King (Oracle)" , Swee Leong Ching , Giuseppe Cavallaro , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-clk@vger.kernel.org References: <20240315222754.22366-1-wafgo01@gmail.com> <20240315222754.22366-2-wafgo01@gmail.com> <4e168fbc-8a13-4666-ab80-e3032f61ef38@oss.nxp.com> <20240318093418.GA20810@bhlegrsu.conti.de> From: Ghennadi Procopciuc In-Reply-To: <20240318093418.GA20810@bhlegrsu.conti.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VI1P195CA0060.EURP195.PROD.OUTLOOK.COM (2603:10a6:802:5a::49) To DU2PR04MB8582.eurprd04.prod.outlook.com (2603:10a6:10:2d9::24) 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: DU2PR04MB8582:EE_|DU2PR04MB8966:EE_ X-MS-Office365-Filtering-Correlation-Id: 0da53b99-6cf9-4491-5624-08dc4735c612 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KG8kXYX9hBKp5V8XLoqs/w1haEd2ZFHO+icYBhhDsoH3SvOSruRcUBBRWVI/Q/AmyFFVe7zU0H/0OVp/ahnmiyue/OnKH4X4xDBYRMXUBDQtGR2B9i7Yig9Vs+8eA2lbLheQqiTIZ3GguEdJU1jmKAP4wcTHJUhoaWaE0MPhZJNxddyqNaX7V1p0PPy/ThvJ5qX3a9LAefUIRWwAngq/Z5T2NDcykbegsKgf+uzOFLSO0DMXxztLO+bWsNBS02H55VUN3/1puzz8Snc5uqDLqrDzori4I8+4zow/kg18NFYcRei8Xp/7cq9tRtQw8daJk37JlhTRGbcSsDW7Y3vOeIJ/+bBfjga/2VajCkViYf0AzmOsQr/i7nFpK5ER9lXvOvvRkwuFtNw5VVypGegAYxIJjVnSoHDQpT5VFj1lacL/47AxRoXJTB5Se3F4LRkuqUUebYqvX8bFgQsasQbBG4eyrBsQBrYvVgqcRDv6ZauHTWxUi82JhiuOlLn4lKbp2LKGiTGHBU4TylPVYWHBcqLwTF4C/N3S3k52dKq7yMVyMQd2FoMGnIfD3VL5QkKXLExN9G5cFdYx7Kd/lGTpKaHtsVy5gqiHqyvW6Gkg4hU= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU2PR04MB8582.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(1800799015)(7416005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SkJLbFY1VFNVQ1psQmR2QlAwSzBFWUQ4NkFDY0JYLzkvY1MrQnVNWGhRclJm?= =?utf-8?B?MktHM1RPM2gyRkd2WUp3SVpyNHlyaUFxZENOVHVpVndHSnlpQjZUWkxoM3l5?= =?utf-8?B?c1pGL09uMG5adHJpdVN4UlRhcG90dXNZVXVtR3c1SDRvZDdPWjF2SnUvQlBp?= =?utf-8?B?bGRka29CdXRISnpmR1grUXFRQW9tdGRGQ3oybVdDTVJNd0t2VDFlemowWEoy?= =?utf-8?B?VXFjZzVJNlp6U0JoeFhKN3RtSyt1RkJZalNRWFIzUTh2dVIrTTh4MDZjS0g4?= =?utf-8?B?U2VaY09kUytFZXl0TjVtTmowVHVuMTVxODdGSlh1cmVhekdTNkNsSDc0Smx6?= =?utf-8?B?czlBRUZZalZIV2NaTVFrK3NqWGY4WFJ4OGlTak56TDVxUFFGZFZmM1FIR3ls?= =?utf-8?B?bEtsL2lWY2JuNkNWQVZZNVlESktESEhzNU9FZkJHa1Z5WnIvampvNStJcEY0?= =?utf-8?B?SkNzcUhoREJ4NWYrcWF0cU8rYkJ5bEEzZ0ZTN1crQk84eEVpT0ZuVjcrUGpV?= =?utf-8?B?b1F1ejEwMzZhNXpEZUpOWU9FekFnZTZhT29OaDhoNEMxeTFhaFlhazNBaGM5?= =?utf-8?B?YksxWmVwZW9PUUd4UjVuVG5oc0dnejZKbWc1ZVVIazR3cTdjUGlaNzR5V0Vr?= =?utf-8?B?NVBETU96VXV3UDJsMllIZWNKWkJRMWV5VkhTZkVqMjhDeVVvSkxUUHpiZlR0?= =?utf-8?B?Yk50b3R4cmszQk5qNlI0UmR5UHluNjNlR1h6UGR3TFlXTW5iK1F1czJ5MXlz?= =?utf-8?B?bkxpNkRtc1JSWEZNRk1DaXVERzd6UXlRdEJqTWNNSmRiTUJlam5DUWd1ZU9S?= =?utf-8?B?YmRDZVNYc2JzZWNUcEIrekFsK0tFNHR0R0ozK1FlbFlnWGtqcGE3OG5kMTlp?= =?utf-8?B?NmFodjhCNlFWVDdUTTAyU0tzMjd1WkJpamh2dVBEcnEvdVlISUVVd0N4VXZU?= =?utf-8?B?cEMyT0xZbUMzQXlsb0dyNFNPNFU3c3hITWtNTHN4a3NzRm5kQlF6d0FQTkVB?= =?utf-8?B?VHZpcHhtMGFHNVFjZEc1RGFQaXVEVllEbHRSYWRDQzdGbm15ZjNXVlhPNFln?= =?utf-8?B?bWFLZEJTQUZ6Y2RBRlk5SWxUa3RuUml1dmY3NDdVV0pMMWZFZnlYZnE2QnVr?= =?utf-8?B?V0NNNytvbWhCTmUvM3RCU2xhRzNLS2Q1clRkZkd5SU1WZWFId3FoUTdCMHBO?= =?utf-8?B?NHpNbFRaSzgvRElmbU9yNXR1WmlHU2hLNjc1bnR1UXJ0dTJ1R3dPc05LZVcy?= =?utf-8?B?eWZnWWhqdVBtNGdxVmJJSkxtc1oxS2dtQ09ldFZEOVlPb0t4Nys4R2ZOdDI5?= =?utf-8?B?YStFUi9zY1hWa1YrS0ZRS2lFYmV0T3hFQ0dpbjAvbkFqeEZOWFZvVUYrdUZT?= =?utf-8?B?OFNSdjJPdlpwenRqaC9ERlU5M2k5cjEvUkxjWkJGK3RqV203dFdFV2NncHBQ?= =?utf-8?B?VTFRc1ZKK3QyV0MrVWRYYUhNZjdaam9JOHd0azNPZVM0Z0JWY2RDbE5RTVNE?= =?utf-8?B?TmdjcnR1aHcxeDB0c0pHcEg4RTBKcmE5a1g3dHpHaHZHOCtvWks1KzMxQnRW?= =?utf-8?B?cHVndytBaGF4SDFqMHBEK0huY1JYa1VJUTRHbXg2NVJyVE9UMWNvcUZONkUr?= =?utf-8?B?QXlaSit1Rm91cHdHMDNkVlFTQTRWNVdpc2RyNEcyVDFMejhjbkJrWkxpTkxy?= =?utf-8?B?WGN4eWZMVGJTOXl0bldYckczTWFzdmVqRVpPanFzczJXUVFYYmttQW92MlZm?= =?utf-8?B?UmZkNWg3K2s4TXRmQitYRFB3Vnp0MEQvWktLM01LOGJSNHJFdkdEWEp4V3ND?= =?utf-8?B?eFAzdm44K2xVNW1xRG0xQzNUZzkyZFhrQmU4NWZMUlRmVDVxeUt4eXFmbnhp?= =?utf-8?B?QjdOQzRkWHg1VC80ZjJuekZuTHVlbm5BWkxQVytzdjFPblZTMWNWdkR0a1RX?= =?utf-8?B?WDhHQWxGL0ZEWGZYQmk2MWRRQ0hpL0tyQkk4elYrRXBQQzhlN0RhMXRXYkJ6?= =?utf-8?B?c1dEZlF0aDRYOWg3Snlnck9XWWNpSUJCNStiOWIyQmJZQnhIczBaV1pCQVBh?= =?utf-8?B?bkliSm1jSGdDRlB4dk1uYmVPMk5IYzFTa2lpOVBRczNIbHBNUjNSWGQ3YlNy?= =?utf-8?B?OStzOVMyZHp3OTFQTi9UVGRSUGttMjZ5ak5MVXVLSGxPdXo2a2pqK0JwZk44?= =?utf-8?B?a2c9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0da53b99-6cf9-4491-5624-08dc4735c612 X-MS-Exchange-CrossTenant-AuthSource: DU2PR04MB8582.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2024 10:25:46.4190 (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: 3FU1TGrLchhyHKkGNVg+JtqwN/5OfpoeqJ6Pg6fbfyfOwm1hncr06Uln2IEcCKCreHc2raJqxVOKgsDgXrTrkGSRrsUG8UKZehzQ3z4sRg8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8966 On 3/18/24 11:34, Wadim Mueller wrote: > On Mon, Mar 18, 2024 at 09:32:24AM +0200, Ghennadi Procopciuc wrote: >> On 3/16/24 00:27, Wadim Mueller wrote: >>> This commit adds device tree support for the NXP S32G3-based >>> S32G-VNP-RDB3 Board (Vehicle Networking Platform - Reference Design Board) [1]. >>> >>> The S32G3 features an 8-core ARM Cortex-A53 based SoC developed by NXP. >>> >>> The device tree files are derived from the official NXP downstream Linux tree [2]. >>> >>> This addition encompasses a limited selection of peripherals that are upstream-supported. Apart from the ARM System Modules (GIC, Generic Timer, etc.), the following IPs have been validated: >>> >>> UART: fsl-linflexuart >>> SDHC: fsl-imx-esdhc >>> Ethernet: synopsys gmac/stmac >>> >>> Clock settings for the chip rely on ATF Firmware [3]. Pin control integration into the device tree is pending and currently relies on Firmware/U-Boot settings [4]. >>> >>> These changes were validated using the latest BSP39 Firmware/U-Boot from NXP [5]. >>> >>> The modifications enable booting the official Ubuntu 22.04 from NXP on >>> the RDB3 with default settings from the SD card and eMMC. >>> >>> [1] https://www.nxp.com/design/design-center/designs/s32g3-vehicle-networking-reference-design:S32G-VNP-RDB3 >>> [2] https://github.com/nxp-auto-linux/linux >>> [3] https://github.com/nxp-auto-linux/arm-trusted-firmware >>> [4] https://github.com/nxp-auto-linux/u-boot >>> [5] https://github.com/nxp-auto-linux/auto_yocto_bsp >>> >>> Signed-off-by: Wadim Mueller >> >> This patch seems to be heavily based on the downstream version of the >> kernel. Many of the changes originate from NXP. Therefore, shouldn't the >> authors also be mentioned here? >> > > Yes, it definitely is, I also mentionaed it in the commit message. As > Krzyszof mentioned, would you expect me to "git blame" the file and put > all contributors into the commment part? Or would it be enough to put a > Copyright of NXP as here [1]? > > > [1] https://github.com/nxp-auto-linux/linux/blob/cdac0506874b7e6a277f12e72e3900d2a410d909/arch/arm64/boot/dts/freescale/s32g3.dtsi#L3 IMHO, the copyright must be kept and up to three contributors to the original content should be mentioned. >>> --- >>> arch/arm64/boot/dts/freescale/Makefile | 1 + >>> arch/arm64/boot/dts/freescale/s32g3.dtsi | 352 ++++++++++++++++++ >>> .../boot/dts/freescale/s32g399a-rdb3.dts | 57 +++ >>> .../dt-bindings/clock/nxp,s32-scmi-clock.h | 158 ++++++++ >>> 4 files changed, 568 insertions(+) >>> create mode 100644 arch/arm64/boot/dts/freescale/s32g3.dtsi >>> create mode 100644 arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts >>> create mode 100644 include/dt-bindings/clock/nxp,s32-scmi-clock.h >>> >>> diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile >>> index 2cb0212b63c6..e701008dbc7b 100644 >>> --- a/arch/arm64/boot/dts/freescale/Makefile >>> +++ b/arch/arm64/boot/dts/freescale/Makefile >>> @@ -252,3 +252,4 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-venice-gw74xx-rpidsi.dtb >>> dtb-$(CONFIG_ARCH_S32) += s32g274a-evb.dtb >>> dtb-$(CONFIG_ARCH_S32) += s32g274a-rdb2.dtb >>> dtb-$(CONFIG_ARCH_S32) += s32v234-evb.dtb >>> +dtb-$(CONFIG_ARCH_S32) += s32g399a-rdb3.dtb >>> diff --git a/arch/arm64/boot/dts/freescale/s32g3.dtsi b/arch/arm64/boot/dts/freescale/s32g3.dtsi >>> new file mode 100644 >>> index 000000000000..481ddcfd3a6d >>> --- /dev/null >>> +++ b/arch/arm64/boot/dts/freescale/s32g3.dtsi >>> @@ -0,0 +1,352 @@ >>> +// SPDX-License-Identifier: GPL-2.0-or-later >>> + >>> +#include >>> +#include >>> +/ { >>> + compatible = "nxp,s32g3"; >>> + interrupt-parent = <&gic>; >>> + #address-cells = <0x02>; >>> + #size-cells = <0x02>; >>> + >>> + cpus { >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + cpu-map { >>> + cluster0 { >>> + core0 { >>> + cpu = <&cpu0>; >>> + }; >>> + >>> + core1 { >>> + cpu = <&cpu1>; >>> + }; >>> + >>> + core2 { >>> + cpu = <&cpu2>; >>> + }; >>> + >>> + core3 { >>> + cpu = <&cpu3>; >>> + }; >>> + }; >>> + >>> + cluster1 { >>> + core0 { >>> + cpu = <&cpu4>; >>> + }; >>> + >>> + core1 { >>> + cpu = <&cpu5>; >>> + }; >>> + >>> + core2 { >>> + cpu = <&cpu6>; >>> + }; >>> + >>> + core3 { >>> + cpu = <&cpu7>; >>> + }; >>> + }; >>> + }; >>> + >>> + cpu0: cpu@0 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x0>; >>> + enable-method = "psci"; >>> + clocks = <&dfs S32_SCMI_CLK_A53>; >>> + next-level-cache = <&cluster0_l2_cache>; >>> + #cooling-cells = <2>; >>> + }; >> >> Are the '#cooling-cells = <2>;' used in this patch? If not, shouldn't >> you drop them? >> > > No, its not used. Will drop it, thanks for the hint! > >>> + >>> + cpu1: cpu@1 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x1>; >>> + enable-method = "psci"; >>> + clocks = <&dfs S32_SCMI_CLK_A53>; >>> + next-level-cache = <&cluster0_l2_cache>; >>> + #cooling-cells = <2>; >>> + }; >>> + >>> + cpu2: cpu@2 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x2>; >>> + enable-method = "psci"; >>> + clocks = <&dfs S32_SCMI_CLK_A53>; >>> + next-level-cache = <&cluster0_l2_cache>; >>> + #cooling-cells = <2>; >>> + }; >>> + >>> + cpu3: cpu@3 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x3>; >>> + enable-method = "psci"; >>> + clocks = <&dfs S32_SCMI_CLK_A53>; >>> + next-level-cache = <&cluster0_l2_cache>; >>> + #cooling-cells = <2>; >>> + }; >>> + >>> + cpu4: cpu@100 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x100>; >>> + enable-method = "psci"; >>> + clocks = <&dfs S32_SCMI_CLK_A53>; >>> + next-level-cache = <&cluster1_l2_cache>; >>> + #cooling-cells = <2>; >>> + }; >>> + >>> + cpu5: cpu@101 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x101>; >>> + enable-method = "psci"; >>> + clocks = <&dfs S32_SCMI_CLK_A53>; >>> + next-level-cache = <&cluster1_l2_cache>; >>> + #cooling-cells = <2>; >>> + }; >>> + >>> + cpu6: cpu@102 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x102>; >>> + enable-method = "psci"; >>> + clocks = <&dfs S32_SCMI_CLK_A53>; >>> + next-level-cache = <&cluster1_l2_cache>; >>> + #cooling-cells = <2>; >>> + }; >>> + >>> + cpu7: cpu@103 { >>> + device_type = "cpu"; >>> + compatible = "arm,cortex-a53"; >>> + reg = <0x103>; >>> + enable-method = "psci"; >>> + clocks = <&dfs S32_SCMI_CLK_A53>; >>> + next-level-cache = <&cluster1_l2_cache>; >>> + #cooling-cells = <2>; >>> + }; >>> + >>> + cluster0_l2_cache: l2-cache0 { >>> + compatible = "cache"; >>> + status = "okay"; >>> + }; >>> + >>> + cluster1_l2_cache: l2-cache1 { >>> + compatible = "cache"; >>> + status = "okay"; >>> + }; >>> + }; >>> + >>> + pmu { >>> + compatible = "arm,cortex-a53-pmu"; >>> + interrupts = ; >>> + }; >>> + >>> + timer { >>> + compatible = "arm,armv8-timer"; >>> + interrupts = , /* sec-phys */ >>> + , /* virt */ >>> + , /* hyp-virt */ >>> + , /* sec-phys */ >>> + ; /* phys */ >>> + always-on; >>> + }; >> >> 1. 'always-on' -> 'arm,no-tick-in-suspend' as the timer does not tick >> during suspend on this platform. >> >> 2. The ARMv8 timer driver expects a certain order of interrupts >> when the interrupt names are not used in bindings which is not followed >> in this node. >> >> Here is the fix to be applied: >> https://github.com/nxp-auto-linux/linux/commit/f23552d3f8d8f3893dc5b485ba79ee73895f5b27 >> > > 1) thanks, whill change it! > 2) I wanted to avoid to create the interrupt-names property and directly > put it in the right order, or do you see here a wrong order to what is > erxpected by the arch_timer driver? Is your proposal to also use the interrupt-names property > instead or a ordering it according the dt schema? Any of these two options should work. I thought it was more intuitive to add the names here to highlight an order and driver's expectations. >>> + >>> + reserved-memory { >>> + #address-cells = <2>; >>> + #size-cells = <2>; >>> + ranges; >>> + >>> + scmi_tx_buf: shm@d0000000 { >>> + compatible = "arm,scmi-shmem"; >>> + reg = <0x0 0xd0000000 0x0 0x80>; >>> + no-map; >>> + }; >>> + >>> + scmi_rx_buf: shm@d0000080 { >>> + compatible = "arm,scmi-shmem"; >>> + reg = <0x0 0xd0000080 0x0 0x80>; >>> + no-map; >>> + }; >>> + }; >>> + >>> + firmware { >>> + scmi: scmi { >>> + compatible = "arm,scmi-smc"; >>> + mbox-names = "tx", "rx"; >>> + shmem = <&scmi_tx_buf>, <&scmi_rx_buf>; >> >> Have you verified the RX support? >> >>> + arm,smc-id = <0xc20000fe>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + status = "okay"; >>> + interrupts = ; >>> + interrupt-names = "p2a_notif"; >> >> This support is not available upstream and, therefore, should be either >> removed or completely added. >> > > Thanks, will do that in v2! >>> + >>> + dfs: protocol@13 { >>> + reg = <0x13>; >>> + #clock-cells = <1>; >>> + }; >>> + >>> + clks: protocol@14 { >>> + reg = <0x14>; >>> + #clock-cells = <1>; >>> + }; >>> + >>> + reset: protocol@16 { >>> + reg = <0x16>; >>> + #reset-cells = <1>; >>> + }; >> >> Is this really needed to be part of this patch? >> > > No the reset node is not really needed, I forgot to remove it, thanks > for the hint! > >>> + >>> + pinctrl_scmi: protocol@80 { >>> + reg = <0x80>; >>> + #pinctrl-cells = <2>; >>> + >>> + status = "disabled"; >>> + }; >> >> Not documented. >> > > Will be removed as not used > >>> + }; >>> + >>> + psci: psci { >>> + compatible = "arm,psci-1.0"; >>> + method = "smc"; >>> + }; >>> + }; >>> + >>> + soc@0 { >>> + compatible = "simple-bus"; >>> + #address-cells = <1>; >>> + #size-cells = <1>; >>> + ranges = <0 0 0 0x80000000>; >>> + >>> + uart0: serial@401c8000 { >>> + compatible = "nxp,s32g3-linflexuart", >>> + "fsl,s32v234-linflexuart"; >>> + reg = <0x401c8000 0x3000>; >>> + interrupts = ; >>> + status = "disabled"; >>> + }; >>> + >>> + uart1: serial@401cc000 { >>> + compatible = "nxp,s32g3-linflexuart", >>> + "fsl,s32v234-linflexuart"; >>> + reg = <0x401cc000 0x3000>; >>> + interrupts = ; >>> + status = "disabled"; >>> + }; >>> + >>> + uart2: serial@402bc000 { >>> + compatible = "nxp,s32g3-linflexuart", >>> + "fsl,s32v234-linflexuart"; >>> + reg = <0x402bc000 0x3000>; >>> + interrupts = ; >>> + status = "disabled"; >>> + }; >>> + >>> + gic: interrupt-controller@50800000 { >>> + compatible = "arm,gic-v3"; >>> + #interrupt-cells = <3>; >>> + interrupt-controller; >>> + reg = <0x50800000 0x10000>, >>> + <0x50900000 0x200000>, >>> + <0x50400000 0x2000>, >>> + <0x50410000 0x2000>, >>> + <0x50420000 0x2000>; >>> + interrupts = ; >>> + mbi-ranges = <167 16>; >>> + }; >>> + >>> + qspi: spi@40134000 { >>> + compatible = "nxp,s32g3-qspi"; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + reg = <0x0 0x00000000 0x0 0x20000000>, >>> + <0x0 0x40134000 0x0 0x1000>; >>> + reg-names = "QuadSPI-memory", "QuadSPI"; >>> + interrupts = ; >>> + clock-names = "qspi_en", "qspi"; >>> + clocks = <&clks S32_SCMI_CLK_QSPI_FLASH1X>, >>> + <&clks S32_SCMI_CLK_QSPI_FLASH1X>; >>> + spi-max-frequency = <200000000>; >>> + spi-num-chipselects = <2>; >>> + status = "disabled"; >>> + }; >> >> This binding and support is missing. Please delete. >> >>> + >>> + usdhc0: mmc@402f0000 { >>> + compatible = "nxp,s32g3-usdhc", >>> + "nxp,s32g2-usdhc"; >>> + reg = <0x402f0000 0x1000>; >>> + interrupts = ; >>> + clocks = <&clks S32_SCMI_CLK_USDHC_MODULE>, >>> + <&clks S32_SCMI_CLK_USDHC_AHB>, >>> + <&clks S32_SCMI_CLK_USDHC_CORE>; >>> + clock-names = "ipg", "ahb", "per"; >>> + status = "disabled"; >>> + }; >> >> nxp,s32g3-usdhc is not documented. >> > > Would you propose to delete the compatible string, or add the > documentation of nxp,s32g3-usdhc to the schema? The driver seems to work pretty fine > without any g3 specific adaptations. I am fine with reusing the S32G2 compatible string, but it may not look aesthetically pleasing. Adding a new compatible string may enhance the appearance and emphasize the SoC difference. Best regards, Ghennadi >>> + >>> + gmac0: ethernet@4033c000 { >>> + status = "disabled"; >>> + compatible = "nxp,s32-dwmac"; >>> + reg = <0x4033c000 0x2000>, /* gmac IP */ >>> + <0x4007c004 0x4>; /* S32 CTRL_STS reg */ >>> + interrupt-parent = <&gic>; >>> + interrupts = ; >>> + interrupt-names = "macirq"; >>> + tx-fifo-depth = <20480>; >>> + rx-fifo-depth = <20480>; >>> + dma-coherent; >>> + snps,mtl-rx-config = <&mtl_rx_setup_gmac0>; >>> + snps,mtl-tx-config = <&mtl_tx_setup_gmac0>; >>> + clocks = <&clks S32_SCMI_CLK_GMAC0_AXI>, >>> + <&clks S32_SCMI_CLK_GMAC0_AXI>, >>> + <&clks S32_SCMI_CLK_GMAC0_TX_SGMII>, >>> + <&clks S32_SCMI_CLK_GMAC0_TX_RGMII>, >>> + <&clks S32_SCMI_CLK_GMAC0_TX_RMII>, >>> + <&clks S32_SCMI_CLK_GMAC0_TX_MII>, >>> + <&clks S32_SCMI_CLK_GMAC0_RX_SGMII>, >>> + <&clks S32_SCMI_CLK_GMAC0_RX_RGMII>, >>> + <&clks S32_SCMI_CLK_GMAC0_RX_RMII>, >>> + <&clks S32_SCMI_CLK_GMAC0_RX_MII>, >>> + <&clks S32_SCMI_CLK_GMAC0_TS>; >>> + clock-names = "stmmaceth", "pclk", >>> + "tx_sgmii", "tx_rgmii", >>> + "tx_rmii", "tx_mii", >>> + "rx_sgmii", "rx_rgmii", >>> + "rx_rmii", "rx_mii", >>> + "ptp_ref"; >>> + >>> + mtl_rx_setup_gmac0: rx-queues-config { >>> + snps,rx-queues-to-use = <5>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + queue@0 {}; >>> + queue@1 {}; >>> + queue@2 {}; >>> + queue@3 {}; >>> + queue@4 {}; >>> + }; >>> + >>> + mtl_tx_setup_gmac0: tx-queues-config { >>> + snps,tx-queues-to-use = <5>; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + queue@0 {}; >>> + queue@1 {}; >>> + queue@2 {}; >>> + queue@3 {}; >>> + queue@4 {}; >>> + }; >>> + >>> + gmac0_mdio: mdio0 { >>> + compatible = "snps,dwmac-mdio"; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + }; >>> + }; >>> + >>> + }; >>> +}; >>> diff --git a/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts >>> new file mode 100644 >>> index 000000000000..707b503c0165 >>> --- /dev/null >>> +++ b/arch/arm64/boot/dts/freescale/s32g399a-rdb3.dts >>> @@ -0,0 +1,57 @@ >>> +// SPDX-License-Identifier: GPL-2.0-or-later >>> +/* >>> + * NXP S32G3 Reference Design Board 3 (S32G-VNP-RDB3) >>> + */ >>> + >>> +/dts-v1/; >>> + >>> +#include "s32g3.dtsi" >>> + >>> +/ { >>> + model = "NXP S32G3 Reference Design Board 3 (S32G-VNP-RDB3)"; >>> + compatible = "nxp,s32g399a-rdb3", "nxp,s32g3"; >>> + >>> + aliases { >>> + serial0 = &uart0; >>> + serial1 = &uart1; >>> + ethernet0 = &gmac0; >>> + reset = &reset; >>> + }; >>> + >>> + chosen { >>> + stdout-path = "serial0:115200n8"; >>> + }; >>> + >>> + /* 4GiB RAM */ >>> + memory@80000000 { >>> + device_type = "memory"; >>> + reg = <0x0 0x80000000 0 0x80000000>, >>> + <0x8 0x80000000 0 0x80000000>; >>> + }; >>> +}; >>> + >>> +&gmac0 { >>> + status = "okay"; >>> + phy-handle = <&mdio_a_phy1>; >>> + phy-mode = "rgmii-id"; >>> +}; >>> + >>> +&gmac0_mdio { >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + mdio_a_phy1: ethernet-phy@1 { >>> + reg = <1>; >>> + }; >>> +}; >>> + >>> +&uart0 { >>> + status = "okay"; >>> +}; >>> + >>> +&uart1 { >>> + status = "okay"; >>> +}; >>> + >>> +&usdhc0 { >>> + status = "okay"; >>> +}; >>> diff --git a/include/dt-bindings/clock/nxp,s32-scmi-clock.h b/include/dt-bindings/clock/nxp,s32-scmi-clock.h >>> new file mode 100644 >>> index 000000000000..240022c1f109 >>> --- /dev/null >>> +++ b/include/dt-bindings/clock/nxp,s32-scmi-clock.h >>> @@ -0,0 +1,158 @@ >>> +/* SPDX-License-Identifier: BSD-3-Clause */ >>> + >>> +#ifndef __DT_BINDINGS_NXP_SCMI_CLOCK_S32_H >>> +#define __DT_BINDINGS_NXP_SCMI_CLOCK_S32_H >>> + >>> +#define S32_SCMI_COMPLEX_CLK 0xFFFFFFFFU >>> +#define S32_SCMI_NOT_IMPLEMENTED_CLK 0xFFFFFFFEU >>> + >>> +#define S32_SCMI_CLK_BASE_ID 0U >>> +#define S32_SCMI_CLK(N) ((N) + S32_SCMI_CLK_BASE_ID) >>> +#define S32_PLAT_SCMI_CLK(N) ((N) + S32_SCMI_PLAT_CLK_BASE_ID) >>> + >>> +#define S32_SCMI_CLK_VERSION_MAJOR (1) >>> +#define S32_SCMI_CLK_VERSION_MINOR (0) >>> + >>> +/* A53 */ >>> +#define S32_SCMI_CLK_A53 S32_SCMI_CLK(0) >>> +/* SERDES */ >>> +#define S32_SCMI_CLK_SERDES_AXI S32_SCMI_CLK(1) >>> +#define S32_SCMI_CLK_SERDES_AUX S32_SCMI_CLK(2) >>> +#define S32_SCMI_CLK_SERDES_APB S32_SCMI_CLK(3) >>> +#define S32_SCMI_CLK_SERDES_REF S32_SCMI_CLK(4) >>> +/* FTM0 */ >>> +#define S32_SCMI_CLK_FTM0_SYS S32_SCMI_CLK(5) >>> +#define S32_SCMI_CLK_FTM0_EXT S32_SCMI_CLK(6) >>> +/* FTM1 */ >>> +#define S32_SCMI_CLK_FTM1_SYS S32_SCMI_CLK(7) >>> +#define S32_SCMI_CLK_FTM1_EXT S32_SCMI_CLK(8) >>> +/* FlexCAN */ >>> +#define S32_SCMI_CLK_FLEXCAN_REG S32_SCMI_CLK(9) >>> +#define S32_SCMI_CLK_FLEXCAN_SYS S32_SCMI_CLK(10) >>> +#define S32_SCMI_CLK_FLEXCAN_CAN S32_SCMI_CLK(11) >>> +#define S32_SCMI_CLK_FLEXCAN_TS S32_SCMI_CLK(12) >>> +/* LINFlexD */ >>> +#define S32_SCMI_CLK_LINFLEX_XBAR S32_SCMI_CLK(13) >>> +#define S32_SCMI_CLK_LINFLEX_LIN S32_SCMI_CLK(14) >>> +#define S32_SCMI_CLK_GMAC0_TS S32_SCMI_CLK(15) >>> +/* GMAC0 - SGMII */ >>> +#define S32_SCMI_CLK_GMAC0_RX_SGMII S32_SCMI_CLK(16) >>> +#define S32_SCMI_CLK_GMAC0_TX_SGMII S32_SCMI_CLK(17) >>> +/* GMAC0 - RGMII */ >>> +#define S32_SCMI_CLK_GMAC0_RX_RGMII S32_SCMI_CLK(18) >>> +#define S32_SCMI_CLK_GMAC0_TX_RGMII S32_SCMI_CLK(19) >>> +/* GMAC0 - RMII */ >>> +#define S32_SCMI_CLK_GMAC0_RX_RMII S32_SCMI_CLK(20) >>> +#define S32_SCMI_CLK_GMAC0_TX_RMII S32_SCMI_CLK(21) >>> +/* GMAC0 - MII */ >>> +#define S32_SCMI_CLK_GMAC0_RX_MII S32_SCMI_CLK(22) >>> +#define S32_SCMI_CLK_GMAC0_TX_MII S32_SCMI_CLK(23) >>> +#define S32_SCMI_CLK_GMAC0_AXI S32_SCMI_CLK(24) >>> +/* SPI */ >>> +#define S32_SCMI_CLK_SPI_REG S32_SCMI_CLK(25) >>> +#define S32_SCMI_CLK_SPI_MODULE S32_SCMI_CLK(26) >>> +/* QSPI */ >>> +#define S32_SCMI_CLK_QSPI_REG S32_SCMI_CLK(27) >>> +#define S32_SCMI_CLK_QSPI_AHB S32_SCMI_CLK(28) >>> +#define S32_SCMI_CLK_QSPI_FLASH2X S32_SCMI_CLK(29) >>> +#define S32_SCMI_CLK_QSPI_FLASH1X S32_SCMI_CLK(30) >>> +/* uSDHC */ >>> +#define S32_SCMI_CLK_USDHC_AHB S32_SCMI_CLK(31) >>> +#define S32_SCMI_CLK_USDHC_MODULE S32_SCMI_CLK(32) >>> +#define S32_SCMI_CLK_USDHC_CORE S32_SCMI_CLK(33) >>> +#define S32_SCMI_CLK_USDHC_MOD32K S32_SCMI_CLK(34) >>> +/* DDR */ >>> +#define S32_SCMI_CLK_DDR_REG S32_SCMI_CLK(35) >>> +#define S32_SCMI_CLK_DDR_PLL_REF S32_SCMI_CLK(36) >>> +#define S32_SCMI_CLK_DDR_AXI S32_SCMI_CLK(37) >>> +/* SRAM */ >>> +#define S32_SCMI_CLK_SRAM_AXI S32_SCMI_CLK(38) >>> +#define S32_SCMI_CLK_SRAM_REG S32_SCMI_CLK(39) >>> +/* I2C */ >>> +#define S32_SCMI_CLK_I2C_REG S32_SCMI_CLK(40) >>> +#define S32_SCMI_CLK_I2C_MODULE S32_SCMI_CLK(41) >>> +/* SIUL2 */ >>> +#define S32_SCMI_CLK_SIUL2_REG S32_SCMI_CLK(42) >>> +#define S32_SCMI_CLK_SIUL2_FILTER S32_SCMI_CLK(43) >>> +/* CRC */ >>> +#define S32_SCMI_CLK_CRC_REG S32_SCMI_CLK(44) >>> +#define S32_SCMI_CLK_CRC_MODULE S32_SCMI_CLK(45) >>> +/* EIM0 */ >>> +#define S32_SCMI_CLK_EIM0_REG S32_SCMI_CLK(46) >>> +#define S32_SCMI_CLK_EIM0_MODULE S32_SCMI_CLK(47) >>> +/* EIM0 */ >>> +#define S32_SCMI_CLK_EIM123_REG S32_SCMI_CLK(48) >>> +#define S32_SCMI_CLK_EIM123_MODULE S32_SCMI_CLK(49) >>> +/* EIM */ >>> +#define S32_SCMI_CLK_EIM_REG S32_SCMI_CLK(50) >>> +#define S32_SCMI_CLK_EIM_MODULE S32_SCMI_CLK(51) >>> +/* FCCU */ >>> +#define S32_SCMI_CLK_FCCU_MODULE S32_SCMI_CLK(52) >>> +#define S32_SCMI_CLK_FCCU_SAFE S32_SCMI_CLK(53) >>> +/* RTC */ >>> +#define S32_SCMI_CLK_RTC_REG S32_SCMI_CLK(54) >>> +#define S32_SCMI_CLK_RTC_SIRC S32_SCMI_CLK(55) >>> +#define S32_SCMI_CLK_RTC_FIRC S32_SCMI_CLK(56) >>> +/* SWT */ >>> +#define S32_SCMI_CLK_SWT_MODULE S32_SCMI_CLK(57) >>> +#define S32_SCMI_CLK_SWT_COUNTER S32_SCMI_CLK(58) >>> +/* STM */ >>> +#define S32_SCMI_CLK_STM_MODULE S32_SCMI_CLK(59) >>> +#define S32_SCMI_CLK_STM_REG S32_SCMI_CLK(60) >>> +/* PIT */ >>> +#define S32_SCMI_CLK_PIT_MODULE S32_SCMI_CLK(61) >>> +#define S32_SCMI_CLK_PIT_REG S32_SCMI_CLK(62) >>> +/* eDMA */ >>> +#define S32_SCMI_CLK_EDMA_MODULE S32_SCMI_CLK(63) >>> +#define S32_SCMI_CLK_EDMA_AHB S32_SCMI_CLK(64) >>> +/* ADC */ >>> +#define S32_SCMI_CLK_SAR_ADC_BUS S32_SCMI_CLK(65) >>> +/* CMU */ >>> +#define S32_SCMI_CLK_CMU_MODULE S32_SCMI_CLK(66) >>> +#define S32_SCMI_CLK_CMU_REG S32_SCMI_CLK(67) >>> +/* TMU */ >>> +#define S32_SCMI_CLK_TMU_MODULE S32_SCMI_CLK(68) >>> +#define S32_SCMI_CLK_TMU_REG S32_SCMI_CLK(69) >>> +/* FlexRay */ >>> +#define S32_SCMI_CLK_FR_REG S32_SCMI_CLK(70) >>> +#define S32_SCMI_CLK_FR_PE S32_SCMI_CLK(71) >>> +/* WKPU */ >>> +#define S32_SCMI_CLK_WKPU_MODULE S32_SCMI_CLK(72) >>> +#define S32_SCMI_CLK_WKPU_REG S32_SCMI_CLK(73) >>> +/* SRC */ >>> +#define S32_SCMI_CLK_SRC_MODULE S32_SCMI_CLK(74) >>> +#define S32_SCMI_CLK_SRC_REG S32_SCMI_CLK(75) >>> +/* SRC-TOP */ >>> +#define S32_SCMI_CLK_SRC_TOP_MODULE S32_SCMI_CLK(76) >>> +#define S32_SCMI_CLK_SRC_TOP_REG S32_SCMI_CLK(77) >>> +/* CTU */ >>> +#define S32_SCMI_CLK_CTU_MODULE S32_SCMI_CLK(78) >>> +#define S32_SCMI_CLK_CTU_CTU S32_SCMI_CLK(79) >>> +/* DBG */ >>> +#define S32_SCMI_CLK_DBG_SYS4 S32_SCMI_CLK(80) >>> +#define S32_SCMI_CLK_DBG_SYS2 S32_SCMI_CLK(81) >>> +/* Cortex-M7 */ >>> +#define S32_SCMI_CLK_M7_CORE S32_SCMI_CLK(82) >>> +/* DMAMUX */ >>> +#define S32_SCMI_CLK_DMAMUX_MODULE S32_SCMI_CLK(83) >>> +#define S32_SCMI_CLK_DMAMUX_REG S32_SCMI_CLK(84) >>> +/* GIC */ >>> +#define S32_SCMI_CLK_GIC_MODULE S32_SCMI_CLK(85) >>> +/* MSCM */ >>> +#define S32_SCMI_CLK_MSCM_MODULE S32_SCMI_CLK(86) >>> +#define S32_SCMI_CLK_MSCM_REG S32_SCMI_CLK(87) >>> +/* SEMA42 */ >>> +#define S32_SCMI_CLK_SEMA42_MODULE S32_SCMI_CLK(88) >>> +#define S32_SCMI_CLK_SEMA42_REG S32_SCMI_CLK(89) >>> +/* XRDC */ >>> +#define S32_SCMI_CLK_XRDC_MODULE S32_SCMI_CLK(90) >>> +#define S32_SCMI_CLK_XRDC_REG S32_SCMI_CLK(91) >>> +/* CLKOUT */ >>> +#define S32_SCMI_CLK_CLKOUT_0 S32_SCMI_CLK(92) >>> +#define S32_SCMI_CLK_CLKOUT_1 S32_SCMI_CLK(93) >>> + >>> +#define S32_SCMI_PLAT_CLK_BASE_ID S32_SCMI_CLK(94) >>> + >>> +#define S32_SCMI_CLK_MAX_ID S32_PLAT_SCMI_CLK(32) >>> + >>> +#endif >> >> Regards, >> Ghennadi