Message ID | 20240730-clk-u64-v3-0-4d2b19edaa6e@nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010061.outbound.protection.outlook.com [52.101.69.61]) (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 E2B1D194AC2; Tue, 30 Jul 2024 08:49:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.61 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722329351; cv=fail; b=raKAn7ZwULYi9RUZnQSSbp56I+zXLXPoUrTw3jD1a5yd3o+5kF+AVUFgbpN4VttSpumq22nsOtEkr4qPolydROhrnCttSB6cGvI+kNGgfe0beWYkOYJDy8YLgjFm5MLlzeDnnMh3bwKm0wGUNFKt+NbBoS6Q2pSL58EffTDU2Oo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722329351; c=relaxed/simple; bh=zZoDMM4RB1mTVG24uWbG9/OAI/a5YAR6iRVu/y7zjqE=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=GEIbTtus+PVsPr+dEq7/vebNbP2hLpG9C5V69t7Nax8B543f1GWcgqUfIdnWu/SonTd1bJZvnO4qTLPPziZLP8V4nbFlg90rqtFt53QFz0W6NRioMFkSmIWPN1MeMFJ2KK5CCgdnt953U+PxreStxhMG2c7hvKBOPGN/QOfAaLw= 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=dTL5GgJl; arc=fail smtp.client-ip=52.101.69.61 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="dTL5GgJl" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=p9/3uMkTuh9XZvl66BFmQMWc3PM0o1vd3zGuBDHi5p+zP+oMZxDcNOvJ8HTqmWmBzUQwoGAQSRewAIQKHL20/qfNV08A4XP7hKTkIipKq/pVdrPQrPkwGZPU2dSUbJCK5O7pLl/Lvokpqaeh1VLlLAwA/6Zi4gAMHCRWUdpebUSnlImWrx/y4RmAlhj7rjTcMmzwO4U0ZxpSbv4nwT/NTYnFCKzmTNEYvSozaeIglnaoxtwPClgX0ZfGae7bqAhy2aAyD3ljZvYMSKhVQE6zsgs8utjXhzynVuW0gaGOERZEvz/1yr7xmVqmJ6d9zg2b6l9q4DMQ0izCoPqlyZitqA== 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=MrOZGSDjyHwKdOH0eOyqrdWQ9UHH9qKzDIVdT2cvN+o=; b=ACwGpeQfJwXS40W1YrYYcYoFp32O807hlhtBTda5AYqHbCrXbPWxNq5nyaRcq6Z4nKYERuKhanj9wQEZr1HK0HqyN38V7iKmbjMmpSFOCNY9SCOuoO7JAEA3SjwbzTOsHq578jmLdr7Cdnil96m4Xl30OxNubfVmFvOw2iq8FiM01ZEywrd0pQaXloLUT0o7VGpxW7kYK/NB94ovJ6x7L3I5HWam1ubd1oylRr0QCPXlrB5KyrNcMvfRoMF1jRUh1lMVMh006e6VrFQGEYrz2CykjLKjw2t6wLvf9wEMgpmVYUREUNG8aSFnjijPhQ9ypPUwSstTh3uPrMsiPikboA== 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=MrOZGSDjyHwKdOH0eOyqrdWQ9UHH9qKzDIVdT2cvN+o=; b=dTL5GgJlyHwcDSl9OU8hldkOLhxMonNFFE9+glLoZ+oORWkJ3Tx+BLL3xbRaX+RBp+9Q2jT8QaoJAv9iIIvGYAoAka5VQW1kzMmYV88jPoMQjE19Dxi+izl7dXySUM/iIfsCikQJHsNk/tfeW3trk5e7ONIsa2L6m1RLPzGQot2DNPQUJtDeq4YAtBNnAPKJooIU6zIxwFL7dv0IOpoqGEgDUB+soVzvW3E+vAuKXBToOau3KTP9X3G/1kjJr9MyYEAi2qEUEai/HcKSztcoIJgCwhSoyn76nEMBnijFrM9s1RtrSu8FpfMsG6R15VEbv+bSBQXxsTrYdgbQH1xvdg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) by PAXPR04MB9021.eurprd04.prod.outlook.com (2603:10a6:102:217::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Tue, 30 Jul 2024 08:49:03 +0000 Received: from DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197]) by DB9PR04MB8461.eurprd04.prod.outlook.com ([fe80::b1b9:faa9:901b:c197%5]) with mapi id 15.20.7762.020; Tue, 30 Jul 2024 08:49:03 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Subject: [PATCH v3 0/2] clk: add assigned-clock-rates-u64 Date: Tue, 30 Jul 2024 16:57:53 +0800 Message-Id: <20240730-clk-u64-v3-0-4d2b19edaa6e@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABGrqGYC/2WMQQ7CIBBFr9LMWgwMhFZXvYdxUelgido2oKSm4 e7Sbli4fDP/vRUCeUcBztUKnqILbhozyEMFZujGOzHXZwbkqLhGwczzwT5asZobJaW03DYc8nr 2ZN2yly7XzIML78l/93AU2/W/EQXjrMem00LcMH/acZmPZnrBVohYrBpPxcJsWdtpJFKyJl2sl NIP1E4NAdIAAAA= To: Rob Herring <robh@kernel.org>, Saravana Kannan <saravanak@google.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Luca Ceresoli <luca.ceresoli@bootlin.com> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Peng Fan <peng.fan@nxp.com> X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722329887; l=1450; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=zZoDMM4RB1mTVG24uWbG9/OAI/a5YAR6iRVu/y7zjqE=; b=FjnW2+CokTUXpQEwfSFL1IM887S1Z/N4icoi48y+I69uU4sCjI5dlc9Z/ty2HDvNtDgYAYInz OZ/pXZYIP60DrxFy7kUFm5AQstMZ8YIMn0wX2dUxZe8IngRKxlCKQ8K X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:4:196::22) To DB9PR04MB8461.eurprd04.prod.outlook.com (2603:10a6:10:2cf::20) Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: <linux-clk.vger.kernel.org> List-Subscribe: <mailto:linux-clk+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-clk+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR04MB8461:EE_|PAXPR04MB9021:EE_ X-MS-Office365-Filtering-Correlation-Id: b31c2550-d406-414e-01a4-08dcb07474ee 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|52116014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?WPcCzM95ACLk48d/3b3fh4UUgNbw3oK?= =?utf-8?q?1Es/2i3yPCTApu3ETJx+hYFZYeMsIfMH/G5A1sDhwOQL5x+pJlSSJ+PSzwgt0S/7U?= =?utf-8?q?0zG1f2QLIAyviglLPCsgUXIXFrkMo7w7Jk3Ih5hnR/eOLTkakcU3G8Z4fmaqTy70L?= =?utf-8?q?LWaIOYfHBgOkanMX6eb2n3pCzgzhRc6ASACyoIft27Qd5gKriscRzcz6suCDuDtpx?= =?utf-8?q?IbLk0gVPZ6+UU06stAD/9bH+LO/xu/6Oc3204qPXbLtsd7ewydZ6ik72G8KQiqQSN?= =?utf-8?q?ShphP9QiCNGwE707sJFiSyvN9u6rVQhyBbXg/6soxczGFDIAhSMjWt5AZnWM6PEq5?= =?utf-8?q?GHpEp3WDsnSza2faQnEcFsn7kHoZQXF87Vv5a050Z1s1UBwWBtk4Ls69r//hsklB6?= =?utf-8?q?iGqKoV+spBquBYB28fLlyG0biqrzHTGWuCs8xLsPSqtWWvc3sQA5JBuykfcBW/dm4?= =?utf-8?q?uRQxVHQUrOSzycWmQg/1wUFT3Hp539x50GKuWf43XtyuSwluslHk9xHDpXNN1EViu?= =?utf-8?q?nPknKHAYG/v98sQt+WEnseDGdgdzOb4SX2Hmcn+n3zHrnLunR6S5gZYsb6k7Svm5v?= =?utf-8?q?ZCAQDFnYvprgBO4k7sq3sorKsNzkD+NhDNJOAKcAGZg5mPjl7vJOpoke4NnKd5bXd?= =?utf-8?q?CNodgpKByKc3kUHXBvWaToN2rkk3c0Uzy3qj/GY7zKjSYNcAGbpVAirKlFyYgGOJQ?= =?utf-8?q?FLbpMRTuzstxnIE+DdmbOCC7l3kuBr2DLGmk2b9Zym9U3zQXLUlC7HYr6wGxekgRK?= =?utf-8?q?J31tsf69BPRLN5WnTNrlWt2mU0zovu3usqLNU24eWfY3ykxsEuQ/6NXCqetZUMaaF?= =?utf-8?q?5blGLToElqZoXCu2WmwgwX2VMwuFpt7/u32aFZx2Tb9UN/rxu6uQO7zGcPZiKUek/?= =?utf-8?q?mdSs1ZgrKblO/fKIyTtzhNBOU6aK7Qer4lyFZk+XH0uCZgM+uEPK17UUeQMqqamiZ?= =?utf-8?q?tIgRQB20KJikYyTW+YRzqcjQbulyBJSBpEeKQgdNJ05XtBU5QRncPKvnQhiqk9+hu?= =?utf-8?q?JPTQAGUKCUCcRt2Ozj8a5hncwFJ4hhhk/PWhSCqMRB1Hm8qITckBhEXWKvUfqKuao?= =?utf-8?q?LzOSgfqDsLbU35rEX5yHqEMd6jg/MFMOUrdU73mpn3hdqY83mXLRr018Rt8163jQ+?= =?utf-8?q?0pNBzp7BnrgtZtG3BPDDEUqycLupRjq/poSvfFdrIizmQslNZhlfLAxj1Fa3VeD1z?= =?utf-8?q?l9DVeDyw6F8Fo1WpXPLYvh7vJepvT4QV3QhpdtMOga0mKL/xCWNkGea1R6KRr09qf?= =?utf-8?q?ci4YnowJIMGuCc9FCQJzYr1I1r4/DBT0KrUzRrGP9kbk46Vif/TjGqEs=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB8461.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(376014)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?1GDqNQtbom6K0X2vqRFDimrWQmH+?= =?utf-8?q?ZcFDdiJLT5wnYcKlTE5bxb69yJYuMPy/oIZ1jKoIYNYbGsLv36D3ge7ZIOqohAxny?= =?utf-8?q?3q5YkBzw6XFUclTujlq9DyTby9YgyVWzsk96cugTdgC723NlHgzEQ/tXtEa/+/mUu?= =?utf-8?q?OP/hmdHhPpDmC/lxJqE2wLAfO0veoR4nd7fkvBCRXbkqWoZERNep+oADnPJbJ4+kg?= =?utf-8?q?C2LhSVGHE/QosQ6UN4jsxYGh50xwgwKm2ODs1sg4hxkSm2xwENuoZEft6eLB2vEq8?= =?utf-8?q?BT8oIXmBxdL8FBiiypo/vIWkAr6yyIhWpg5DjdT6btokRDUG6TYNlB6ZeP///YhJO?= =?utf-8?q?rss+nHfVLNihTDW6ye0mMMyHYlLXDFJBqfPf4FscHxz+oQPf1M4pBNNyuqagbvcnx?= =?utf-8?q?sFMYSNSLIgYxUSiv315vpXxgsGSgXcN6yVJ4yVsZ8SXO2sBXnwvBjHseXMNEGc5HJ?= =?utf-8?q?BFhPEwQKN+OsJlZYPTeuc62ncgjxieNb9ew298t/2dQopO1JGif9kQugjMoPjvVhU?= =?utf-8?q?XYhTKnrImOGRtw1P66wfRsP6RoWuj6Vsnb0Liw+Dhp1g94a53h94jMFxULCaQRcWV?= =?utf-8?q?DY04QJ4oT5RAj6yNh/2HB3v7gQrON8ul/WaRB6hpelrbfz9A+9JmcievcHPOSGxxw?= =?utf-8?q?VUmUl09zaW7+HWmlDj2f9p1r9ebYwDjg2maW+1Es8eOuOL3fvkqaNF2pLHOaNS+l/?= =?utf-8?q?mf/HqOBSt1weSbTLYgES7784imZg0iFSiFKYJDOSwY3p9kan0Izc5HQptSxQhU5v5?= =?utf-8?q?k7zy6szNpeOHJrAtrt3UsOr22YKAcVPWBRo5BeEa5BkHJwYaEP8qgQ4lkz324IKcX?= =?utf-8?q?+0rjUGw87bparaPCTWC4pnMoupWh7zn4Xwrw3ZSVSRaORoFU90VnZlly7HmMTCJN5?= =?utf-8?q?LLfTDv2yfBRmjqJ9nSQoLTShY8Oeyow+7z6Av0+WDXRM3XUMa3CbfGDJlbD4kp53l?= =?utf-8?q?hiQN2EbeGeGGOfrVHsvLm4iFsjETrFFFSoRTothEvhH6aB+di2m4YoEXgzk2IMqwX?= =?utf-8?q?ve2Io2lBuAmxToffvseW4ygDsxNF0j4ERqjDMd4HbT6csVI7wUMRzwEB4/PuIJjAr?= =?utf-8?q?V1XkvD/OlGM2QKZqXAgCglfExHHh9uDB5onwfd0GImB+Tb/+4DJ0nH//SVtOnh91g?= =?utf-8?q?I71aEvTF7IYtjobuDpx09WDU+czpU1pC5KiC21wIiVwG62yg0IbvJzEGd4cze+ka4?= =?utf-8?q?lLQd7Qkqd1lLZusWPc/XWp+HqPGvF3NeuRC8AhOthSFpbHx8lP6Wbm5Z4qw2gJbyi?= =?utf-8?q?d8pPiLU9KoJ65Q9USvOYvF6ILh2csdvmgmzFgK2eX3yFk5bNnIDcpJ1PAstqIc+p+?= =?utf-8?q?r9U7LqWUXFApuEqKU6jbDTNOFBkYZe//YS50WLnWW67CfPPAvMVRuQVNBPLnHPg/t?= =?utf-8?q?oUXzCxxn9LkWr6mIa+aSKIVltUt4C6EXJltJrHJz88IaDdSoawRNoEv0g4ELcT/6I?= =?utf-8?q?mPNsN3aaxRXysYa+MW3VPnrELXGNPazp68A7gHpuRClRcleF802Jm7ticaZ2WTU1T?= =?utf-8?q?6KGsN5h3XgLx?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b31c2550-d406-414e-01a4-08dcb07474ee X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB8461.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 08:49:03.0661 (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: xpViqgO+cKRRd17qrsXI0V98xjXogMcNxcL8P+shQq/qH9ad5Gut7imL280LCV3h1mxpG3zvsdSFj5ZN0vhN2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9021 |
Series |
clk: add assigned-clock-rates-u64
|
expand
|
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 <peng.fan@nxp.com> --- Changes in v3: - Add R-b for patch 1 - Rewrite patch 2 to avoid duplicated code. Patch 2 not use code from patch 1 now, but since patch 1 is a helper, so keep it. - Link to v2: https://lore.kernel.org/r/20240729-clk-u64-v2-0-ffa62ee437e6@nxp.com 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 | 42 +++++++++++++++++++++++++++++++++++++----- drivers/of/property.c | 23 +++++++++++++++++++++++ include/linux/of.h | 23 +++++++++++++++++++++++ 3 files changed, 83 insertions(+), 5 deletions(-) --- base-commit: 233a3e45c39db1e52061f3b6bbab9c630845dfad change-id: 20240621-clk-u64-70c4333f0f80 Best regards,