From patchwork Fri Oct 18 10:00:54 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: 13841487 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2081.outbound.protection.outlook.com [40.107.247.81]) (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 D23DA200CAD; Fri, 18 Oct 2024 09:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.247.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729245153; cv=fail; b=OzhhW6zAYtr5OhBZnw5jpw0/up7GlctG9ooVt7FMOB+b+IjHSp8cpRH1ZkPrDIyzshfXs0/BfzmySmyo7cy0KrOqqAnxVP6Yi7Oh5PleAmGUxXFvLyf64sYA8wysRc9hc5bEAjMQCtTmD7AZLSygc+VefXFmMKovpCXzbzpJsRI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729245153; c=relaxed/simple; bh=OZMCUhuPRtFD36Zafiu5ql9Qx4nyPgfwd62EsTg0bOM=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=elvwi7oeoW5WFyIjMJztTnm5KGt9h4aLg87+2DivsmOBm9ZI9D5zOW2Lb1iCAMrtOYCdZXyBcwgXch6QnBRwTvH/nEG2l8eFBdjPSru9FGDeUTxbwSY3QsEA6ZZWSWkYrN998nQscUVQEnhOdxG4u0UI1YGyFD74E5qSmfy85ic= 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=HKix6W73; arc=fail smtp.client-ip=40.107.247.81 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="HKix6W73" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=kIo7XxVnyjVQShHj7sUtXeQERWRNl7qQdCTAUKCpWz5Ap/XBeUX51eNiDCFaLLJ1Qy61h0vGKbOl1fFwQWnRs3BOUE1f5mdivGAA4pqVLuL4uUXIs2HJZvN2/hRMajImmM6/0cnBdGhpSF7q4ZOhRkHMKVa5faljXr2r4Wkj+e5YTlakxlqyx5hopwLffvyB1/WW9tXB2yCrDbk5p/NSkriMmZCzM9Vyk+NJM2BoM7lD6mMtXfnOTTpLITadwdJlpjP7iCCOsZZX8thIyQhZlRWFZleizRnBdC/7IxJSzixiYEsmEVb2mOhi7nceFY4OL+JT33qPxwxZHF7SR9XpQw== 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=7onIAiRpWzL3btPGEbwKC6KhdnLY8JS/LZCL/YIUFwQ=; b=BFJpEGuQtzghf8pO1M0/9N1x6jDsguxyTbjqJzuVycm02i+k0bSExa/fVca6es5O0z+n+kfD5ZAymq9nAzYdGXzVblNBJG9c0uG7Sjx20YhgC7aVVjmkKLRVuO/1cXTuG9qhfCEecGooXZYwwsz6+PKL8dP3/kmaziTib1qBx24X3qWVAUxb5PBUsLtZwLwNJQxQltHokj5koRtWEbiUECuWvZ94z9NOADVEco10kegziKTfDtIY0pldrXroV+Z2F0EZWiwbs3YnAc/cOGBTUlxZU/8gqZtmLvbvuUE2kbuaUU3WfpNTZDbTavCq9Ps4ndbJxS6oct3ehqk5hef2nw== 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=7onIAiRpWzL3btPGEbwKC6KhdnLY8JS/LZCL/YIUFwQ=; b=HKix6W73Vz81SOefirntAvl/MLA4w8/rL6VX9J096vAEwgd+fVc2X3g2x+knjC3T2naYu/X+/liW6T8r0YCKRigOfJ00RJ+TUHM/uKL3beptwLwdYP/yzxttAymx+Hr+wvgjJLqhwy8Q2X93/ETBcO+VDpmACcgTP2mpDgpY20YB8yhiDwjm5KE4TmE+3NCj4Rz3q+ZFmtqAkeXw8i6nlRHtfsrw2o/fZkdc26bdLMvsdt4S843NsDKeGto15MQtmLfqGKU2KL25BDiO3NV5TVG6CCb5drnKEIMSKmHrGs5uoS9EgyT+JtbS7ykSBd+n0Ld+M6BwsWrV6xdbsl1R+g== 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 DBAPR04MB7285.eurprd04.prod.outlook.com (2603:10a6:10:1ac::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.20; Fri, 18 Oct 2024 09:52:28 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%6]) with mapi id 15.20.8069.016; Fri, 18 Oct 2024 09:52:28 +0000 From: "Peng Fan (OSS)" Subject: [PATCH v2 0/4] clk: imx: scu and fracn pll update Date: Fri, 18 Oct 2024 18:00:54 +0800 Message-Id: <20241018-imx-clk-v1-v2-0-92c0b66ca970@nxp.com> X-B4-Tracking: v=1; b=H4sIANYxEmcC/22MQQrCMBBFr1JmbSQTY6NdeQ/poqRTO2iTkkiIl Nzd2LXwN+/DextECkwRumaDQIkje1dBHRqw8+AeJHisDEoqjRK14CUL+3qKhEJpq1o7DTiaK1R hDTRx3mP3vvLM8e3DZ28n/L1/M3VSEJnzxbTjCaW6ubwerV+gL6V8AX2Ck1qiAAAA X-Change-ID: 20241014-imx-clk-v1-24c26cfa1d79 To: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Aisheng Dong Cc: linux-clk@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan , Jacky Bai X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1729245675; l=1232; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=OZMCUhuPRtFD36Zafiu5ql9Qx4nyPgfwd62EsTg0bOM=; b=xQzUEDPn3+igb3JZMdHeOjfUydLwvF0D7F08sHtqLPbf2otvoe1JaZ2ziHH9IZ8yiMVl6xfUP OksCfcIGOZqD8CGNY7jBotpdspiFIpUdcFFB08H7gPwVprLIip5/nGN X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR01CA0028.apcprd01.prod.exchangelabs.com (2603:1096:4:192::21) 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_|DBAPR04MB7285:EE_ X-MS-Office365-Filtering-Correlation-Id: ed3e23ad-cc06-43f7-53e5-08dcef5a9378 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|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?0TBO4r8cTM5JrQw+cNv9wE+H/8yBic3?= =?utf-8?q?MdJ2AupDZXZ07xa21YgN51TvXYc1BJOwDzE1eUHGqDBBt6cR1gdYux25F7jrMpgR6?= =?utf-8?q?QAwidlGzWTflf1TsBsIzPfCh9JBFc18NclCBPmykOIXA6F80dKRD5skGRn8oZu7KP?= =?utf-8?q?m8oCZxlRX4NyOFxLUMokbYixY5JH9aggWRb30sbSSJPu0KgwXEaqnh+JO67/j+ZMB?= =?utf-8?q?f6/ZnA2bHKHh+VPqkOM8M84QdvEYIZViUpuF9QCumN0Weler32Bg/hjT24qcb4CRQ?= =?utf-8?q?/tLa8tZNczLpk8oGh3mAFIMJ2/WiLgBktRSDAWidt85bL+LEIpzHRrayzWfZjD4pB?= =?utf-8?q?zIDMSbk8nNwHeBEdSFbmid5gv0c4La16Foy6SzAkNyfLSkuRRkp+sohKNQKrKyObH?= =?utf-8?q?NZLxhm8U+K5QBPYWCVyXsHwFgyCa0wfEGkOOrDOLv3mahb8JbLDiCgDY8MD4d+Ah+?= =?utf-8?q?Z/W7tq3yhWI7S1BStLgru0c2xEhmbidenIBo3zryTUk3ivvVqQg8Fe4rR2E3LbBbS?= =?utf-8?q?4WFNWsBa5bBuVymMsumrcGWhJeHm/GxHnUjaP8Z7PSz3sNKL4PJ282oWNaNmUeu4k?= =?utf-8?q?Y1JIBCF5vzSe2sm7owS5NVw4p+FI2zu8Blhn3/ZGtew5dsJm9CvVy2J8/yMQ71EWX?= =?utf-8?q?N0D1x8732VTFqnKOrCnShz8jemO8+1bieUe7hwmZMZo8jU6j2B5YFUVYDh8XZsNBd?= =?utf-8?q?skMZ/wbr6CuE/FGjUl8gEhS1LBuJ/8OKIgY29MK7MCN5gPf9C6yE+ujwRTZbh3eU/?= =?utf-8?q?qzwDUOpAs0KB3QVvy0kDF4IKxowCmA6kPH/76OHiodGm/5JYgE9Y6icVVZoRRe+jy?= =?utf-8?q?+zF4asBGgbunYBGeiAxoDIUT7fWzMqYp1HJJeGhI55RGFfw11mihYgRjf8WfjCcQD?= =?utf-8?q?wTVv7rCGC5NfnPpVKzPcmJnNWIrXA39Po+SjT1VxksYgMRjDiMk4TtPSX9C5Vn2Tu?= =?utf-8?q?Id3vFg52K/Mv8UtKKwfNbn1A+hbzacnmllSHJeIF8mOQ2phhRvf12FPBeD72A1sl7?= =?utf-8?q?ZxmWUzbGioafcMbrGkoM/2iuBG485S4E0zbXc66YGaLC4HDHI/UnRqw0z2OcMThus?= =?utf-8?q?D6BQ4TrxHRkBs3uy/VZvlJMTQ6P7KKae9jTCL6lclPtZfs/2eVUrpRIWY7FSl3XBV?= =?utf-8?q?6JXOMDyeTDQovYhwQxUGFBUqB2TmH8DWlpSuhsWGz/QIilw2WCuFGw4ao8JtVZaQs?= =?utf-8?q?1xM6/HboSsGs2J0EABrnRatPAp30YVo/DAoPLa6OfG+Fe5pIKiiBwno876zt1yjXf?= =?utf-8?q?mA3256cazttMJ6++dkdXGil1qqwrT9ndSbGRRVbRjAWokHpwh7WjXr3e50YgP/ckP?= =?utf-8?q?6rURivjrpCNY?= 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)(52116014)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-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yg/y94BLIeQRx/fLyV0jt2eL/VBTotcQIE/?= =?utf-8?q?rIOnfPs2Ew+0BDvRnv74c+8L1wByBwEHqyKQxGlVxHqgXjodltajKBvZ0YwGKpOBy?= =?utf-8?q?ML0NRYR0gwrOA6uqahePcBKbyFnt5Yf1O1dDBzTrzQMgjnliFcjwt9C7K1UkgU8Kg?= =?utf-8?q?QeAJmAo/bWLX/jNHcVoPbpZ1N5F3yFdJCwZbmWf3GxbTwyJ0VoQL8Txd+39P1gWPb?= =?utf-8?q?BS6io+QaJgLaZQ8PRLFcJAdTRcUwhVT61ZVBIW9ZncZsezwERvgZ1xxNxF6snRe25?= =?utf-8?q?8rdeL9ch7x0uQzsygORx8QtKK9KrRYQzXzJlUIkjac+Cv9X0JmScFN8mY1MPSs9cj?= =?utf-8?q?AbIqVI/Mw2T/do28nem0qNtnLK6nABEGFBNTkaRd728sbitqXgQ3jn4zBfkYHuNdM?= =?utf-8?q?as7cdob5HiG5OfOkA6TDSskXvKCGDNCW6cjzusRMM9qf0Y0DlIn+UggOTGcvLFBLm?= =?utf-8?q?ALhxXZnP/gzuqUIT2QhEmbJ2ySg29jOWfUc39NgX77Z4chfwQ5LRUtjkB++PJQ3SI?= =?utf-8?q?Ih9E+q9J//zbghqA7iOVFQqnfPdAElIxXUEwmnbijeY0eMEa6GImvqED0knS+qzqd?= =?utf-8?q?/c/aIt/D5pywsAAV5od/dhiVfaXy1XszpdTeGH7F3ZwWHNDl2pVMCpIDI6b6vWe6K?= =?utf-8?q?NhF1s6jtNwWE?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ed3e23ad-cc06-43f7-53e5-08dcef5a9378 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2024 09:52:28.2419 (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: cV3zs38uxChwujllULZwfztIVC2QHfEoHeqhQH7sdwbJCKquy+8RQv8kRL4k6p7CKU8xSXfhIqHMhCdoE+fbNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7285 Patch 1 is to resubmit [1] with comments addressed. Patch 2 is for hdmi. Fix tag not needed. Patch 3 and Patch 4 are for i.MX93 Fracn PLL fix. In Patch 4: fence_write is reusing the idea of fence_udelay in drivers/clk/tegra/clk.h Detailed information is in commit log of each patch. [1] https://lore.kernel.org/lkml/20240228082649.1633083-1-peng.fan@oss.nxp.com/ Signed-off-by: Peng Fan --- Changes in v2: - Patch 1: use HZ_PER_MHZ, use unsigned long, add errata link - Patch 4: Drop fence_write, just use readl - Link to v1: https://lore.kernel.org/r/20241014-imx-clk-v1-v1-0-ee75876d3102@nxp.com --- Peng Fan (4): clk: imx: lpcg-scu: SW workaround for errata (e10858) clk: imx: lpcg-scu: Skip HDMI LPCG clock save/restore clk: imx: fracn-gppll: correct PLL initialization flow clk: imx: fracn-gppll: fix pll power up drivers/clk/imx/clk-fracn-gppll.c | 10 +++++++--- drivers/clk/imx/clk-lpcg-scu.c | 41 +++++++++++++++++++++++++++++++++++---- 2 files changed, 44 insertions(+), 7 deletions(-) --- base-commit: d61a00525464bfc5fe92c6ad713350988e492b88 change-id: 20241014-imx-clk-v1-24c26cfa1d79 Best regards,