From patchwork Sat May 4 00:49:04 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: 13653713 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2074.outbound.protection.outlook.com [40.107.241.74]) (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 C38881DDF4 for ; Sat, 4 May 2024 00:42:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.74 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714783327; cv=fail; b=To2saOOdmpfT7UDCOYNCKPI4BVfoOGnWgz25e8mzlJzXhyxDnhrOoErSGjwS03E62U32499p19c+Amm0vGbh5AtdCYe9iiUWFJ53Y2JDRe2q9qkU8Q4PTNAvvmXBEhgjZGzlbEUfEBi0qitmWtK8Z/zKgDOqfEIIKTTQlhAoPRk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714783327; c=relaxed/simple; bh=i6s2BDOKW6zn7tKgno8avPO6dvuo9b/4Fzr1Ewfft/o=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=RG5TC+4ZndYWIj3iyqmHeYm7tsWsJEoQxTCK1gK8+nw6PMTOztbJfzW7bbw6zdB+Hy2Ke0iIClfhC/mniNBg16+oT/S+H9gZWl/QLUH3wZ5NmP0esqtu8XBQU5wqbzcR2IvzS0VIw3tQxGYrOELRkpb1MYsVrzV71Lylp0adB1w= 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=Fx0JN2d6; arc=fail smtp.client-ip=40.107.241.74 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 (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="Fx0JN2d6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gf/cKsv+RT+XepDl1Fs62jjnPc8KI8/5HvfrSgvSfOfOLoxbD4EMarHPyALh+1NipNRL85O34ZjGB0e0V9rvsPlUqOjVbI3Y/44c+WCNOYu4SSWR4r+NTTKuJ8cJgnUcMcPGygRSBMkhYaJ2iEcJp1mzAI9WDLjlkZey8LPSsmw4WklPtlTA3UQVgYU8peFna1g2ortR5vf7l+9bmLCzdz9ofe4iA26fOQ6ZRzLjg7XMxuGYyW7yhsOjsvMTDgTDsM3xTQfQxjGEzHvb5gwl/DDB4RFmFZcxrAI82gp9XBbtBVlAagX2wZg9BYXMShHs+opLSQDHhVJRinCSwlK64g== 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=1QiLEK8YsyGhwnQqocYVdqygEuHwuHli5O/GR4Kb5nc=; b=gqrM7dsx72s4Iham3b2v4C9ozW4/8XWzaVCYO8Eb6qldhg452robUz8w5x5uMLfhZfPNxwdyuu+5NGgzUkhSfQYNcnxmUblYBgRNQ6nwDi1hevQSR9ZK5TcCuBcsSdSNKo2IYkhO+/Bvz2X3Q7LAgaKR9bQY52gWmuZLuLSuBGRM2GTbWDiEGBA3Aq8s/nVF6m4OffZSs2e663ZComXWzMGzTBpU3b4xwii/Kv6CAa35FWpjjNGiLIVOlgxDKk8xoGRbnkSs4RDbWDpZD0kNMif+YAiwY29gJ9Tzs41XY6NfdPkxuC3FJPeE+vpXBJUUJWNywhNptQ6T+pyA1J3xZg== 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=1QiLEK8YsyGhwnQqocYVdqygEuHwuHli5O/GR4Kb5nc=; b=Fx0JN2d6br5vKiPMkroZNFD3pXopsms0bLmNJh1o3YNNeWTIzIts4TddcF2pxkeFhDWhTdgPGKPv1Weau80Hvg8aFOKv+bi/0wwHu//jWFf9qzVxcpbF0JhoynuX3bjlzpDje5FTrkk8yWFcIFFMD3bYLACpbLddYk3JRB+/VD0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by PA4PR04MB7726.eurprd04.prod.outlook.com (2603:10a6:102:ea::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.29; Sat, 4 May 2024 00:42:02 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7544.029; Sat, 4 May 2024 00:42:02 +0000 From: "Peng Fan (OSS)" Date: Sat, 04 May 2024 08:49:04 +0800 Subject: [PATCH 11/18] clk: imx: add CLK_SET_RATE_PARENT for lcdif_pixel_src for i.MX7D Message-Id: <20240504-imx-clk-v1-11-f7915489d58d@nxp.com> References: <20240504-imx-clk-v1-0-f7915489d58d@nxp.com> In-Reply-To: <20240504-imx-clk-v1-0-f7915489d58d@nxp.com> To: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Jacky Bai , Ye Li , Dong Aisheng Cc: linux-clk@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Abel Vesa , Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1714783747; l=1922; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=enKh4CGkqPk5jRnK8VpEttysezgL5JHxfHa9hFqdaL0=; b=XTp+h4w3AqyTKCXKfjxukUQ4LbbM6eoS8gKm8xL5R7dbD9vQsps3qqQjoZ6pMmU6THkkbdpkj 8q7q8DKNAeeDgtId5ZVDc/w18ORYRYtzKm4t7POxhglKvYB6tCKrvcH X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI1PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:1f5::16) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|PA4PR04MB7726:EE_ X-MS-Office365-Filtering-Correlation-Id: a432a48b-4f1a-424b-ccbc-08dc6bd303f3 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|7416005|52116005|366007|1800799015|376005|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q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Qilkt3oTsY9g+WvGp0UuNG?= =?utf-8?q?2IFvKvUXK4DHjZrLQ52ERHTJaztuXIHgJlf4mdkB9Gz1XJ+dTCalNmjieKf+wljXf?= =?utf-8?q?OwtxyBH1YEwq1eCfL/QRqPPbr8gINyiBhrrZrtAuoQWY2M2QVhaDAuAHkm0h6mrCy?= =?utf-8?q?xA3+VPjIbE/wAUA7BixRZas0inmP3H+S9L4l1ON6n5lf8aN2bdXsTg2ZrFwLRLxUF?= =?utf-8?q?DIGwM5qXe/mH4ypS2XGPv0vM6PtfV2EKb1CB8g5eFUpteFCmVtapZs1uuXIJir8Hb?= =?utf-8?q?5QOZ4M/5Exp1G692GIZjLIDktL03tYd/gN6RGFtCFc1KykOWBmUryjr7uzSWdifYp?= =?utf-8?q?qg8yzuVuDaqYvERqaYry5//39NUhFRtg9Rnw3D8FQ/0RIVsmF4EYuqHwSyECZuHqW?= =?utf-8?q?3V+GRqvUrh9+2PjjGv+MP2/qvgjtFbQMheB/x3bBY+7YZ8tXAbjohszk=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7416005)(52116005)(366007)(1800799015)(376005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?sgsQaUNmgQaVauheSFr4q5OxYVza?= =?utf-8?q?tUFgsJqBG41Mezr3gDph3+GYFN7GRQqV63lD2EzlkHK9U48l7Ts7CerYP8FjdwpEE?= =?utf-8?q?T2gtlvRAEYTDYiQrZD4FJpi53rlanIBs1O6BVPK190TyzviWp/WYHWoQ1MmxRvBSo?= =?utf-8?q?IJ1yc7DzmB1+4dnxE4jaVi7a8Z8wynXICY9LXNHd4Nvx9cK56Ke/CrlY8Sba6dQcq?= =?utf-8?q?4tcF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Z5VMecatKsdlvp2j+ji0Lz2sVqVCnSbQA+GmDvWuwSBh2oxeCeM+QBO3?= =?utf-8?q?Z7cVvKQbERU6oaWgLBbYxoV0g/IARgSodtUizCycwfceMsKnOIfwNc88m8mFpI9/T?= =?utf-8?q?4obCYOv/EurEdYkf70GiWopBXtoTzh5YAH+0c9rhJxQwj8OjUlpe3ZqRfcecnxTiV?= =?utf-8?q?3r7y+Eig9/8XkB0qAJteXWJVhd7qYDg+ynP1YSdfIOJM5quVAcRUA0FN0M18S09en?= =?utf-8?q?XLYbPXYdjZOy7s7/ELmSuWFwgViAmN4kJrLJjg/uJvU+Ed65ZNIqqiJS0CQDatbiC?= =?utf-8?q?kOVoxSuFOJS0LfmcJYsFeW7od2Z0MdqCLj2KIo16NpCGu3qQQT2R6Js3+Fijn+rXw?= =?utf-8?q?dy+rccEXYotFJT1XcV/y+WmjMAT1/oQG5Bb2vCK0GiCok0lVMLJhRJ0WiJQX8tWpI?= =?utf-8?q?gCO5gTYY7hEs?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a432a48b-4f1a-424b-ccbc-08dc6bd303f3 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2024 00:42:02.9135 (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: jU9veNwkwDRDtIPXzqhmYcvvFvZAskkGXdrs0TGINDJ024NyqSCTFS4Dw+xeKPdH6HIocEjN5CPsWmCibeuUbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7726 From: Peng Fan Add flag 'CLK_SET_RATE_PARENT' to 'IMX7D_LCDIF_PIXEL_ROOT_SRC' to propagate rate changes from LCDIF pixel clock to video PLL to provide more accurate clock rate for LCDIF pixel clock. Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx7d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx7d.c b/drivers/clk/imx/clk-imx7d.c index 1e1296e74835..99adc55e3f5d 100644 --- a/drivers/clk/imx/clk-imx7d.c +++ b/drivers/clk/imx/clk-imx7d.c @@ -505,7 +505,7 @@ static void __init imx7d_clocks_init(struct device_node *ccm_node) hws[IMX7D_PCIE_CTRL_ROOT_SRC] = imx_clk_hw_mux2_flags("pcie_ctrl_src", base + 0xa180, 24, 3, pcie_ctrl_sel, ARRAY_SIZE(pcie_ctrl_sel), CLK_SET_PARENT_GATE); hws[IMX7D_PCIE_PHY_ROOT_SRC] = imx_clk_hw_mux2_flags("pcie_phy_src", base + 0xa200, 24, 3, pcie_phy_sel, ARRAY_SIZE(pcie_phy_sel), CLK_SET_PARENT_GATE); hws[IMX7D_EPDC_PIXEL_ROOT_SRC] = imx_clk_hw_mux2_flags("epdc_pixel_src", base + 0xa280, 24, 3, epdc_pixel_sel, ARRAY_SIZE(epdc_pixel_sel), CLK_SET_PARENT_GATE); - hws[IMX7D_LCDIF_PIXEL_ROOT_SRC] = imx_clk_hw_mux2_flags("lcdif_pixel_src", base + 0xa300, 24, 3, lcdif_pixel_sel, ARRAY_SIZE(lcdif_pixel_sel), CLK_SET_PARENT_GATE); + hws[IMX7D_LCDIF_PIXEL_ROOT_SRC] = imx_clk_hw_mux2_flags("lcdif_pixel_src", base + 0xa300, 24, 3, lcdif_pixel_sel, ARRAY_SIZE(lcdif_pixel_sel), CLK_SET_PARENT_GATE | CLK_SET_RATE_PARENT); hws[IMX7D_MIPI_DSI_ROOT_SRC] = imx_clk_hw_mux2_flags("mipi_dsi_src", base + 0xa380, 24, 3, mipi_dsi_sel, ARRAY_SIZE(mipi_dsi_sel), CLK_SET_PARENT_GATE); hws[IMX7D_MIPI_CSI_ROOT_SRC] = imx_clk_hw_mux2_flags("mipi_csi_src", base + 0xa400, 24, 3, mipi_csi_sel, ARRAY_SIZE(mipi_csi_sel), CLK_SET_PARENT_GATE); hws[IMX7D_MIPI_DPHY_ROOT_SRC] = imx_clk_hw_mux2_flags("mipi_dphy_src", base + 0xa480, 24, 3, mipi_dphy_sel, ARRAY_SIZE(mipi_dphy_sel), CLK_SET_PARENT_GATE);