From patchwork Mon Jul 29 02:30:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13744189 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2087.outbound.protection.outlook.com [40.107.21.87]) (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 E18481B86D6; Mon, 29 Jul 2024 02:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.87 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722219721; cv=fail; b=G41gjcoetjSejpjQbVhgZD1BiwjBKklad+qj6DmVAiYZwul+lQ3wqImi3Vr/ihpQWrAi1vAw2GhsonKdJslTK3Qz0cPitwZo6vO88rWBuvXA1/bSi2anHaUkWR71+qZBL5yXoGhQNJEJA8ihu1AQLgeinhRtY4N1epWbffA2KZ0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722219721; c=relaxed/simple; bh=isxcVIR1/oP/CzipTWVwRp0MpiIA0vFVPAbvMaTgwzU=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=qQ5mWmRzljs+JaByksXFyEjPrflhMNlb+nQ8oP5XhUpck+sm7Q18kRE3ZLd6yQenOenPgvABT/B+Zaq44kGbdpVLggI07kxfu+a9we8Zc03Xz8cBpE3I9kqaQ3oZWdaH+mH1V7P2XnqBmoxd1H3dONKUPxHW3ZkrKQ0M9evn2LI= 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=X8V4jPef; arc=fail smtp.client-ip=40.107.21.87 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="X8V4jPef" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pPnfvQJ/h3Fit7mEAH7Sv1i46Asn27Bz1J/vSeK3UfiIVC/r0feoPfXKrm0xvea6eWP+/I6YMFL7POCVZ74WBbfuQcCnErIcHYwsMGgeMc/rvCdXiptXYxl64kNcXPWplKU4cp12t8kiMIaEekqtuFPcmDnhumLnFM0xUbMK1g0dFnZPkkcGubHw0EXxHGaxFc6SlnL/N/tHS32DUetFprx0OwqI8HVPYbgL3qAyFckntY3w9+CgctKHBGzHV/s3MTa2CUAl0rCVzcuRo68CxUdO6d7lixp93l6GePQbuSv6r6nxVoxNe8UQi6APXEJwvjlZcuXXDM6pqqVC4tzkig== 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=2WKpOtZE8e5pgzJ2YrVfWs+ZSpXq8svqlzJ7xDVF+1M=; b=YHmAERdliAa9AVV/KfD/nVzJNpzPCOyyr4F6yMOIGhQ0K1AaVRVSxwXmV4mnZUS22wqKKk6dja7eCjeuIf98Y9xt+lDp7lsV/eirU3kEHNTGPTCsLbMn3G0FNl4enWeHBDomeiQWbCkbA9e9Ujg3/QpngBolECiefeXBFMtTmfBkE3WYJyP3igr4bw3htOTDAE3s8spVlMybvVBHTb8R7JnAdHyuyxfRQU5HT/nqX9SG7OwEaEQIKFdDhnyfpSMJuYC+1LdcdYfzJZark5H/dlT2kWQyofXW2ZCAS/9OE6cU2yveAz+blaHNxFe0NH+X/KjMsd/rmPrmnPpMct6xhA== 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=2WKpOtZE8e5pgzJ2YrVfWs+ZSpXq8svqlzJ7xDVF+1M=; b=X8V4jPef2wQgjB2Sq6sBXZyx1ZJteCAeVhr98At0IbZYsail0MaYY8e+XZvtT1Pnk2YC1Sa4zlSdrIfBePfpfdffaLqbsP1g5tZ9srMyV3U1vpp9h+W4QBsqRsl7xl7bgeu9HHqbXuANfRtl7HbqapD5OrLbuin3p6AM/EyMMrAhGv68NJRIdJsNi5bpAK3eV1+RtlLenucQNNsx9Ip+jujktZew7D8Qcbm4MCZXSh4M5qTtjXxZIxJyiiH21OogQGHQB1qrGp/uRGzS49TTmFJbMX38gE420mWIUBrvag9za22uXzadjr4P6XP6pFa9S4BTp6ff4IbZCmjr5Wk1pQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by DBAPR04MB7368.eurprd04.prod.outlook.com (2603:10a6:10:1ad::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Mon, 29 Jul 2024 02:21:56 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%4]) with mapi id 15.20.7784.020; Mon, 29 Jul 2024 02:21:56 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v2 0/2] clk: add assigned-clock-rates-u64 Date: Mon, 29 Jul 2024 10:30:51 +0800 Message-Id: <20240729-clk-u64-v2-0-ffa62ee437e6@nxp.com> X-B4-Tracking: v=1; b=H4sIANv+pmYC/2WMQQ7CIBBFr9LM2jEwEGxceY+mi0rBTlRoQJuah ruL3bp8/7+8DbJL7DKcmw2SWzhzDBXo0ICdhnBzyGNlIEFaGJJoH3d8G40nYbVSygvfCqj2nJz ndS91feWJ8yumzx5e5G/9bywSBY7UDkbKK9XnEtb5aOMT+lLKF3XUg8GcAAAA To: Rob Herring , Saravana Kannan , Michael Turquette , Stephen Boyd , Luca Ceresoli Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722220263; l=1183; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=isxcVIR1/oP/CzipTWVwRp0MpiIA0vFVPAbvMaTgwzU=; b=Vb+2IDY72XBWPIIxiZJvuMLUD9LejcqVn9TZhqXxI8pCJNhbrUcO1AeOElFFWUndpw58pG0VA kX2TPc6D4jVB5QyEzqWSvMnHH9L/rdJCT4SwZ3J/Yx7IXaNz6KoAcS0 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR02CA0001.apcprd02.prod.outlook.com (2603:1096:3:17::13) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: linux-clk@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: PAXPR04MB8459:EE_|DBAPR04MB7368:EE_ X-MS-Office365-Filtering-Correlation-Id: 944337b5-af49-437f-149f-08dcaf7537a5 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|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?vlU2kIRR5RLgeK7ibv46zBh4AmRhgZF?= =?utf-8?q?Ro4aCgMdwPYBg2DDpazcT59txjxcK6yo5Hei7HzPS5meT5WiF3cXS8MfDSGjK0HuA?= =?utf-8?q?5M1Ejz2kZCWOULomuCy9gClh07sOE3jDxA2zqKKKj+RXwYnK/MGQl34XnNBjfIJSK?= =?utf-8?q?/21WcnC7UPpwjkCReiZ+cT5EY7iRur3EKvS3yn8lRJqyF/idZ2Jpgytckxga0sfso?= =?utf-8?q?J//zFA7ORodQtxdmepzGqHFIDXuHHDE3YGK+5jXOfEh+mjZwWGpnq6zPXTtw/+UGP?= =?utf-8?q?cpJZTkzFf6vvyTLkb1nKkMgROB9BKj2VHdFpVl6nmYW8ILiDr+veWA5zgUJUU7zja?= =?utf-8?q?zUemeJtaeXeq8NQG1MtwrR9zvvmYMYmodS1DxwMuwR7nANeHreTbRnjKpRnt+0+t8?= =?utf-8?q?eEMAqM3ZB6oLff/uIol/AKtIx8IOTFlhKvJ0mwQBE9AhlCjOEAFUBQEnv5EpEhD1s?= =?utf-8?q?KDQHm7ngM9CuDtLQCFirAdPW/BX1fnRWtvfMUSOVX2OC5le3dVFdIbADp4lGvPesa?= =?utf-8?q?dcmwOL9YRPh3LcIz0/DxPDViN13aUuuPpEZVZMiL/yOHNSdcK3w3OfSiXadehJCOm?= =?utf-8?q?OB5hLARZSXnbEnc69xDRHJdyB+9LvOex+Hgm7pVmstC+OYqHhDe+HesmYTOsJn8AF?= =?utf-8?q?lGfmNZTqnAfZrsoqLe4FWWBTQANFLOIaqgPlmXiKKJ5ihM+vhuqeXXLmRNKmgff3X?= =?utf-8?q?Q0i1b07P+kCtw+OR4y+UXV8rGa2NUVB5EzbG0oTTSOd7MX40eMYagXpPHVFxmiEKi?= =?utf-8?q?iGfSHp3EQU3KMwHo9iRBR2yDOZPR5xCgV999qc0x1nRz+QMcGUeFfrzdWK66iWgFH?= =?utf-8?q?fQpXf6hkY44Qcol/c6LPe4TraZGx/UrVPMSTVwJtWu5X1PMG6ZRm8Tj1XPGRXtsQU?= =?utf-8?q?4OurJ3g46p31542tqyAhxz20fKzEAdLXnSPbRjsJ0BDZvXtaNu3WHRXPV0zbcee+i?= =?utf-8?q?LOBQsMKFQ38KJpSY5z2GicWKaSf6wmQdA23RrCX5FjhwGsDk9skDj55oA+AMje1gd?= =?utf-8?q?i2VTdL/R6JvcA8wK6QT9rvOApEi8zhft33M+p3YEJ11Hvnl3BgNrp5SJ022zDOE9u?= =?utf-8?q?rSje5P8BH/cCftOC/hb/S+AzvrRmS6Isgbij/5BKPNa6CUbjXiJ+6DA03RYcE9WPj?= =?utf-8?q?b82Tu0Rs7jVkQJJsygyV/+1dn27tkbBzd04f8hjDEbg1EsDhE6TMX8QWvzE7kPXRa?= =?utf-8?q?mIjCgsgVR9f4wK3d15i4IPpHdf032UvU0aErqdJvQqWbBUZkOlKcouVZQfAekf41p?= =?utf-8?q?p90y6NvwokHoRPxitTkA5LhaxtKzpPzwEp9fzqZpL1RF7C7S2DIeoSbM=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?5AOqYZrUWfId3j/S/+y58Zt+ECCC?= =?utf-8?q?3tB4LQ+GD1Z6pvwsbdvDtz0IGVlWJDltRw5RiNd4tTDuj0N8nJSlsgdtHa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C?= =?utf-8?q?af5fwjkA5WVgKxD0XO1qYYdFog2rNZ8F1++BXM3CwkJCLJb0I0O2bhOfOFJHlN58F?= =?utf-8?q?RFSxoQMeQmrNPGvtfg855DeN8u16Tsf929coLCUm3+4PORPXhSs9SprpUM7XyUxhD?= =?utf-8?q?Dsw3JE96sK+Bjcwj8LjO/nbgZ499mRScHbxv97tMcohCQxsU4YgJu/suUnnggZfyY?= =?utf-8?q?926D2Rv+2eDEf1LhhGYIolY63wK6/kpQCOTPVX1uHQIctd23+9A1CaiSP3Dde7HPy?= =?utf-8?q?cTsifl61p2mp5caeKmGk3+q4PSfiHiN3LYStE+DEDcCOnQDIEMtkW4HYx6MlF5Sg4?= =?utf-8?q?MvQ16NVkuQWlVI/F/vSJlMRvQfTTODbiBsyJ6FPJ9/fnV6fTQbmfpc//a8FiQKLct?= =?utf-8?q?J6iCaEfDe4Zuf9Vaa0yscZm4mzdzNM8SoZTc96UI9jTt//xt/2EXnTcMPoGvPSG70?= =?utf-8?q?OWyCq/FoMaZpy+Mk1FlEl6eJYww132hVoVqV5+qzJNZwK37Rikafv31ye5K37U6ac?= =?utf-8?q?Nxad/fEhCWdtqn47dfQ+6Yq/H/FtZcAtYQ84DVyUUiBFkRCR3L5fqyfLaoFkGExTh?= =?utf-8?q?LHdfMXDE5FMo?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 944337b5-af49-437f-149f-08dcaf7537a5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 02:21:56.2264 (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: 7U6nbP1Wqox6cq5hO6ldJCFr+6GccWeJpatXLhut54BaguKGyXApkNDnUT3nnj5QAVS7RgsqNW1jb5kitFtGMA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7368 i.MX95 PLL VCO supports rates that exceeds UINT32_MAX, and the i.MX95 System Controller Management Firmware(SCMI) server exports PLL VCO for SCMI Agents to configure. So introduce assigned-clock-rates-u64 to support rates that exceeds UINT32_MAX. And introduce of_property_for_each_u64 to iterate each u64 rate. The PR to add assigned-clock-rates-u64 to dt-schema has been merged: https://github.com/devicetree-org/dt-schema/pull/140 Signed-off-by: Peng Fan --- Changes in v2: - Follow what Luca did to of_property_for_each_u32 to write of_property_for_each_u64 - Link to v1: https://lore.kernel.org/r/20240621-clk-u64-v1-0-d28a611b2621@nxp.com --- Peng Fan (2): of: property: add of_property_for_each_u64 clk: clk-conf: support assigned-clock-rates-u64 drivers/clk/clk-conf.c | 104 ++++++++++++++++++++++++++++++++++--------------- drivers/of/property.c | 23 +++++++++++ include/linux/of.h | 23 +++++++++++ 3 files changed, 119 insertions(+), 31 deletions(-) --- base-commit: 668d33c9ff922c4590c58754ab064aaf53c387dd change-id: 20240621-clk-u64-70c4333f0f80 Best regards,