Message ID | 20240804-clk-u64-v4-0-8e55569f39a4@nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2043.outbound.protection.outlook.com [40.107.22.43]) (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 EC5D9368; Sun, 4 Aug 2024 12:24:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722774246; cv=fail; b=iszQVX4+nV8MsWNyZQ5SUR+yQTHAFIFWeoWU/VC2WFh1pV4dCxUlJk5OIVA2JiVxaJy61osJEA3NTwRzKWb8A9t32/Ey8xWf+1VQq8tfrDTH8rKz8GpL/on+0K/sZqAZzoMtrRidKnVcOTVG8Qa7nShcS6hNzGSSnTUo0Gj4Ei0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722774246; c=relaxed/simple; bh=TKZ6PmWzrCSmYgzm8OnziGstOUFlEBmle6FCWeB/5qk=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=axFjkTtqXM9NomaMpDHYBRzW63BGw33CRDWH4tCpNGYCTVzqWPQgOE/atAyYlt1CZvr4wmjLbdz7Ank6Y1eeX072BlW62Xg25E37OilPFGODR88tkQKEE+rrJWmoW3qs1ICXollNID5NdVjSHZ9Wworp26muIh2nOvSDP3rNMUE= 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=Gooxsx7l; arc=fail smtp.client-ip=40.107.22.43 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="Gooxsx7l" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mdyXGdwHMwD0/Shcug4dtWHwcrsIp//gEZXfiaiq5SLL+7u39QfhqkOs5Wb8EB8WIUu7MEKfzbeKLExANo7lKeUnZgBOP+0pPXN90qFnGVmeFW01Su04jzkwhR+sipposTaRp1Aa8SLhG3i+AsKP/slTqX3H8vJwtZ5xkf56HrzC29RwnOzbspNUoZkxngn5dg7KShAVFh3P2p8R0w+geCvMeEIHAYpd6vx3W0QeD0GJuOth+OuBUaxNVfz7XmEjBdwnoKNAlmRjRhfC6zQmxMObhbbbh2Av0I4iCSaTpuS8YZppxvPqqxjhRNwZCmiqKPb8T6s07Hbwk9kaIQR4Ag== 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=p+mbIETU7uBwp53hcdxG8ERcv571mMNj3cbv19oHDtA=; b=l3OSW3Fy0oY3wd9Ej8OWw70vkn/EjOxcWs+KW0xrLXnHmmuU2h3ALooEU60f7Wm7iRR/groPTy1BBumkH6zafM/LO7Wm9qJUdDnbqM2oS3CSzaAgAEN0sz0o+roaHaGw/CmUczqEPgD6WvNZ57psH2Cqnh+iYrM+u7dSbY7q9MX1hLxsPXwIndSK8uaZyJ2r0zvl0jxJ2YQ9Ga7r+FV5JmgemTucA5DEzK7kgimB/Q8UumCJoExJoj+Irxg4gTWZr+OTU3/Y0TEUV98JwvVZNqHAqXzFeuS9LLrNIh34ssN+V1aRilIuFxy/cXAKAkKixB+y1UcXwnmxka566DDGwA== 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=p+mbIETU7uBwp53hcdxG8ERcv571mMNj3cbv19oHDtA=; b=Gooxsx7le69Z5jyLItXQFHypg+1dUxcVsNAusfXrRvIicH4Kn9OP3R7tijTvnkHn7f1wmpveqJfkS37QGDpxuIAw8CGKhkrTRiXNyv3Vc6z7Er4ESn8cpZcOdPtOFbHMl9JtNEHilyFWW74Wa83TKfF/o1SKxaIGA1EBgoZ6QI/35H/82PCD6CIAoAJbSyu4GVzwDLzQJTaYQ7NURTi98/Wx9rZ2HjnRhMGlJr7i6/qI8DVg8A53olsRuVz4zaVG+wdRa/OuR3bgBq/dz3cJY6ytt1SOqZPzUA+60hWCA/7qbdceoRD0c4w/XWq8uDd6gC3t4dBaAcBGuZ+YrHi6yg== 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 DBAPR04MB7413.eurprd04.prod.outlook.com (2603:10a6:10:1a6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.25; Sun, 4 Aug 2024 12:23:59 +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; Sun, 4 Aug 2024 12:23:59 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Subject: [PATCH v4 0/2] clk: add assigned-clock-rates-u64 Date: Sun, 04 Aug 2024 20:32:54 +0800 Message-Id: <20240804-clk-u64-v4-0-8e55569f39a4@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAPd0r2YC/2XMQQ7CIBCF4asY1mJgILR15T2MCwqDJWrbgJKap neXdoPG5YP5/plEDB4jOe5mEjD56Ic+D7nfEdPp/orU27wJMJBMAafmfqMvJWnFjBRCOOZqRvL 1GND5aSudL3l3Pj6H8N7Cia+v/43EKaMWaq04byH/nPppPJjhQdZCgqIqaIqCrJzTChClqFD9K vGlBCtKZCUttLxBq7XCopZl+QD8R/JpCAEAAA== 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=1722774785; l=1803; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=TKZ6PmWzrCSmYgzm8OnziGstOUFlEBmle6FCWeB/5qk=; b=f74oslerqx/ciR4o+AMRVnDxNRupOTkFnFg7lHd01X8wxhMe7k9Da4PQUoIE8jM61EX/Pnn8V xOdY99GtUasDVIaa5uCoyQ/XXckOi2Oad0hW5SnywVojZL1YudHZAky X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR01CA0047.apcprd01.prod.exchangelabs.com (2603:1096:4:193::10) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) 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: PAXPR04MB8459:EE_|DBAPR04MB7413:EE_ X-MS-Office365-Filtering-Correlation-Id: abbffe5f-67cc-4207-ed0a-08dcb480516a 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|52116014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?N5G7Hyyco2jAL9vyJQvh13TqsJBgAD3?= =?utf-8?q?xHRXosYny+hQwdCi0ZSeOwi79lzSZrBX2IbxhFMPb/eo25qQAmm08quTgojvhoyp9?= =?utf-8?q?x2Kj4b/d0AjDQ5dkUrKx9iK3YCkGB2O0PPEhJgcx4ywjT5kzR8Um9uB+gSzVr2/JU?= =?utf-8?q?T1nsfF+jdzhQEfY1nahzHOZCGt+Sw8owkkZm42rPaLMONi3zkyIJiddq4ff9/ozwx?= =?utf-8?q?1zHS4gWotWhk1a/BQRSSBN29yWFoILEhDJNwSVn/cB9O27bDy+tRLaWpJbTpq2XsX?= =?utf-8?q?l2eK+gvX3ywAHiMjWzf8hUR96LOtWjO4Fmo8Gy9SCZ7Bi9ehLNRtE2GEzeMMsmPhM?= =?utf-8?q?r+6Nwgh2qO/qYyq1+kQMxWO7gIDQgZLh+EDb7k9cwm2QRE912y/uAZTTqpu6osv6E?= =?utf-8?q?ETzth2eMiRxvhIbiy7RLyYydNFgH/xYhnHpMzy0u0qpJ0UQY4tTINEWdNiwJ8KW0c?= =?utf-8?q?BREQND4h4UzSA7nMxEBu7RNfdspIOumh5nyWqoFpxKSgy2TCwOXvpFlIS0jQmjWtY?= =?utf-8?q?BeaqMu355AQn+fzG4p1PO3lmaynPAmO0HijrLJJ6k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)(52116014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?2QLU7F5TExH5IIIWgi7x5Fumy0cG?= =?utf-8?q?1QR331yhW62HA/eqSFhgoTzHPhoHVJ3NOBnQDbdnchpE1ayhW42WP2VmzknRJW1nE?= =?utf-8?q?n3FgjJgoD+fr7LfmXxxlnrPcXA87wt+XZPagj5cjB9NVbu8ddfbnkZAN0zi1DLA04?= =?utf-8?q?oxscXEYYw4OVBByPDO89lfpFU44nSb2DDvmmOD5UEswehMyXTCbHT1wCB/e+Os0Jr?= =?utf-8?q?J/fR46D/hMEjsVJrjvdfmi6GEf3PiEJ3filC2Ntjw8R5LKa0uTHX0j5T/K1mPV/WY?= =?utf-8?q?x/4tjhigH7un4tkp4OlXZYr+na3inXuz024UrzLkBMArhJw7yWBWT1gu0F9HL+0pA?= =?utf-8?q?5UvLeUA2zWrTLc5Zulssqci4IwQRLf+dyaobHvskPIU1vravvQAw9gjjRy5B5Qcx4?= =?utf-8?q?FlJ9uniq17C+gekxfR6drU6keT36tp4cCX7Bu5+qPn2X1sG7QWhukkO+Q0+dWSCyy?= =?utf-8?q?3iQv77WwGICaPomj9RnCMXGdCBhc0Q4GWa2Ab/hvAhoIKmQD2SuyoPl+pLtIQeczb?= =?utf-8?q?KF5qtKESZFryZiS9eQf9wlGwJ/33ZZH8gUa24KQgdhqj4DSg4IBbQEV2P3INOV+d5?= =?utf-8?q?tdUXvUcMnmlntUSBR58uFU9xqSuW/+M34G4HCUAn9F6viCAx/35ioMFiSCuZXm84z?= =?utf-8?q?X6VxcP4lyEu7jtV6weXa9L3Z5uDLYZqbCh+eXyNEEgymiW6us/NTkoDW+a/wAgbjF?= =?utf-8?q?R5fYEStcm5r86eWkHVYfJvgZPRDrtifxS9SlFKHOMpZKvBGrFYHj5lJbCu6Rv0C28?= =?utf-8?q?+dMxCZaBa9u5bE3+nEnnbXbtiyOxgyqTdCbMLADi43P3U2jOHWlQaXQtooMjSbTrj?= =?utf-8?q?8qG2BtBIW0tnaEYl2q2QJVauCrS23YFZX2nhFJwGwXUUCVlyjCSlNndhCpF7HcJRz?= =?utf-8?q?y1Oo9gXbDWY0rIIDNt7208LaF5Sa7NKGhnTjhhXn/Nuznyhlk6GeWqAAQkDfRb/hp?= =?utf-8?q?n/031rR98kDu6RgWGbajdJJHsSYW0FW8c/qlQ8nOfJwH4ZLv1Cd75JyJ39weLZ0WZ?= =?utf-8?q?qjcw4OgmK1TWi6GED/1j6PffGAJ4fjvQFj61R76MqMi92U52/oVo134s4Z+1pMS3i?= =?utf-8?q?vsErvOwRHBwrGCIr1cOcp71FOXEghDZ0nWHinQGuFWt2m4W7ZKcxBIR9FOldlupBc?= =?utf-8?q?0qCfAOKA+q9LdbeZyqCzA0hN43Nt+fFYpfTtDo9Y+L7GZhDio4aDNAe1KmFvrqc2c?= =?utf-8?q?39JlsnLLG6JzFGORVxquCq3FE9owko/EMxAzcm4aH0YogeP7SAD0dFrb52TY6KE3R?= =?utf-8?q?ZOcdeYtKdy7eJo0bEdd2NT1TLKxyOvX2u3fN50ej4XxZdnn8ri70F/s3rDAPnWYe2?= =?utf-8?q?I204KkjFalyrXLSE7gDNT4h38VVlht9YyyaSj6fBBd00mUjS9kRQiF7uLNO9ZCk/Q?= =?utf-8?q?OPjgJbD1uIoESxwrwdQqhS7OLqG9pn/O1818jYdxwH6uEkJLrmbbSYdkGu8Hgu/7Z?= =?utf-8?q?mLOIMLOgj+Qk0N3s9HuumJ/drnGbiZrWj/H8zyJ7Bfv0QuSaFdBhP61pw8ZTqaDOK?= =?utf-8?q?mzNaO5ZegSHb?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: abbffe5f-67cc-4207-ed0a-08dcb480516a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2024 12:23:59.6652 (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: 5SwmRavVLotqu1BWdLgi6xl7LWhGgj9rIAWqxD6iWvW7inaOnh7u0ZKhM92oTNIRDGrb08gRSm2g5thgRSLCVQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7413 |
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 v4: - Follow Stephen's suggestion to simplify code for patch 2. Thanks for sharing the detailed code - Note again, patch 1 and patch 2 is not relevant as of now. Just for simple for reviewing and know the history, still put them in same patchset. - Link to v3: https://lore.kernel.org/r/20240730-clk-u64-v3-0-4d2b19edaa6e@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,