From patchwork Fri Jun 7 13:33:40 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: 13689939 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5B4FCC27C5F for ; Fri, 7 Jun 2024 13:26:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O9cHHxMw9ptr4g8RYCIq5ecAFrEXDhWBXolZxU/64yI=; b=CWKsOPGW5RQq9F 6er2awjav8YebX8RC645w8esed16apA77AMQqzrqOln2XVXSEQX6x0eCUQhgsaUJAmtggBN8B0izh dRkuSK8I3Bb1yYuxm2Yq4fu8Gjy2SmVryFBIoLuQY6HIFyUg1dW3CTCvy+fJXTKGfYxI8kyHp2bq/ vi7aYjxhdFaAZTWNewi0zrmsJmwwGrZx28aqHCOxb97KOcZuCOAE3yYpTOPTGhLdG37E75jDFELbT sAUwjCJ8PJhninnGcuyZOJ4SS605p3yVo0sft84DMyns97WT9mnO1gFrVzJvWx64jpnUpB0PkDM/t oZ50Gykjxz2MIIA2MVhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFZbg-0000000E7d3-3BPr; Fri, 07 Jun 2024 13:26:12 +0000 Received: from mail-db8eur05on2060b.outbound.protection.outlook.com ([2a01:111:f400:7e1a::60b] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFZbG-0000000E6x6-1FbJ for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 13:25:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fRKHO+ajM/la0vQrzvAuwSj4qYfopO10XWHO5g8e7HppTuwzE8S5/OXd7gxoEL3B9R7YugOaFRtCVVNAUs4+3POWI7bQy5UJ5QqepxowGzMZWjfSwOH71ZZ7AEi7E5WKC5lVtPtRXkJc27syC22bINf0E3ftIKCHFNNZtfyII2hlrvo96tawRUkPj6zj3BEj6i7w8YgLVSALNCOKck21/b3HaQwO7pnyk3csmplUnCNSHMX74csE00DAUp6AfKRiype6UgVTvohKnPagsyrWsNPpmApUxBTMfKWMd04afuG8Z3Qe9ZK9E8Jqt6md14gBQqeezTYb6T7Yqk+gLwUOLw== 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=7B7ckCKaaqtPNWdvZBtjTCCWA+EV/JjsvbYzGxFHiio=; b=S/SDOD1FbWGbPch/0gD/9syVkHv14Sv4tUlGkU5mNYAYpohJ1tfw8y95ZiC9NX5wC3GWeF/kEuykRWh7KKxKFP//2lx7b2sOpb35z1hFhnaUzx125GBamcRo6Mpi+E+3ePubO7dZJtwV7yINLSmhKsHVaHP/I9k38CMEbe6B1JMDD0gEH9D8wszw8SnERfeEzxx0tzB0rwIAf2804lfn+Gce+8sjkFealMTR8SF/9+O5W4TDWmUX17F1n9SSX2Af+UMZ5LNvo6FpT9Tdd+1jF+5RAYxFc960gzosTefDU9ni4Lf64PZolamXmon8sdvJ8MItb+iWzO39Q6vyPQhD3w== 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=7B7ckCKaaqtPNWdvZBtjTCCWA+EV/JjsvbYzGxFHiio=; b=QSSvzKBAAkQ9wN1UI9QaLHMNy5e/j228dsCYjfazj9kSl32JN5aq6J4qrsyD95hb/mt61xB8/LCZWu4iRnYJ6BuJmILkpvpju8Q27XnQtQ5lGxsWrsJ3y8MWWJrWmpaleWRJqE96/ka7ZA7KHJA0e2lJhIE9Sht4RCUUljMphbg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB5941.eurprd04.prod.outlook.com (2603:10a6:20b:9e::16) by DU0PR04MB9249.eurprd04.prod.outlook.com (2603:10a6:10:350::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Fri, 7 Jun 2024 13:25:42 +0000 Received: from AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256]) by AM6PR04MB5941.eurprd04.prod.outlook.com ([fe80::9f4e:b695:f5f0:5256%5]) with mapi id 15.20.7611.030; Fri, 7 Jun 2024 13:25:42 +0000 From: "Peng Fan (OSS)" To: abelvesa@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: imx@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH V3 08/15] clk: imx: add CLK_SET_RATE_PARENT for lcdif_pixel_src for i.MX7D Date: Fri, 7 Jun 2024 21:33:40 +0800 Message-Id: <20240607133347.3291040-9-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20240607133347.3291040-1-peng.fan@oss.nxp.com> References: <20240607133347.3291040-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SI1PR02CA0046.apcprd02.prod.outlook.com (2603:1096:4:1f5::14) To DB7PR04MB5948.eurprd04.prod.outlook.com (2603:10a6:10:8b::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB5941:EE_|DU0PR04MB9249:EE_ X-MS-Office365-Filtering-Correlation-Id: cdce25a1-6684-4320-b5ab-08dc86f55494 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|1800799015|52116005|7416005|366007|376005|38350700005; X-Microsoft-Antispam-Message-Info: NKgDyp22WcYcW7Xfh2Y0L3eGWe7axjLT5lRbt2ctiAS2C2aae6BFuPKHgfeA9GbgH+3BLaLlPlsNz4ympxGgq2OhxlCNrUMqtsfmI90yE2wJwM8gPgaAu6n+sZUsfyyMg4wjDcjBBlrdfanp0Nn07x0aSdzDAqLS7fyVtQeS8p3mb8C6eg7EZfbhTrzS/7c9GmG2KQXQt4touxHYIkOfClaggIgT3Orb7RRDRpxcoxfhxiABN9P1iea1lYxrn1s353T/eSsrpW27j8uDV1R0rbyAjrgU/oV15GKmrn6p4X02VfYyej92FbvkXkYLxmraSRS2SM2hNY4BZ/N8SOCaHhGpjTW/fBi93FqA6CZIDFScREi2k/XRYG0GF+M6vJ+nyYkdYHNXkGX7v3pwQ2QC1yem9ZTERJ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ook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(52116005)(7416005)(366007)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AHEF7RHzP0Nbb5KfBbwvVDVZNKwUvLTWWUb68vJftAvVVFjjHsAlgzox9S4XhiD1S43AQ4nZfiadN2eKT59CO/ni877IG++w3Tm3bjV+MAMnWBmalNm/kcshS9yQ9kU22ddp5X1HcPBYlTkCwZKOHeQanErdZzpxkQA6AmqpWN1S8Jil/jZYWjpfw3XH3HDXSKfOXElfx2Z/k4Rv/kdPtsOrHZVMu0LuIDfZkor/z6PJFYLQlBFVv2V73zfepobZJHLt4vLMU5io4oN8QfQXDPyoszIETCDAergOPkm0/cPCLQOKuHRrHt9vr/6lkfHPQm75SCeEyD2E8sx23iFMnElaUU2yoGtqUi1TeBW0kMAmRZ1FhdlaO1ROCSmI7LFXO8/oSbTSTE/SS6Pu3u4pllcHJX02ppkeZN2VmbxMxgW37S1MGVo/eUPb3aojS3BzCpxivjEhPptlgYWwS1oBQTeQEtzRgyRParmWjfhoZ1E/QxaEO43b3kROpD0iHufOP4UaJwYjxX/S714QxTrCPGZ0xl+xeBI05CU3qSscd0+wGqYHdRCr0Q894/Ud2OI7zigRhHozghh7/GZcGQK14pNovKPr9H5rE/t+Uf/bhpgW2CEOt5zfNaRfwsaM9S86EpohE33mD9II4rAQexXwroX+BS+xLMxjs2o11dqWOsq6lVvu0E7LlxIdixYQevBGT8d2z+gLvEIiy9gqISHDTazmBdw2JdbXDkBBNnUUqETnD16DTeQFw4038pJ2SOLyXcj8jUjDJ8hqfwIy5Vsp3Fp/Isa5I+JWgL/UEvM4bmC4tTpXxZj/xdrgRRexJKdDKUtDJzm4KXj2e087Ez7Unh872G7XnN+ZFLv2t9/yvw5vBPzMm54YFwhCEf2ub2jjCnwaNH5Cz5dto2secDTNEtQxTm4ydjh3KuL/K7eGKwgMogZ2KtfGm5jWaQT+qV4t/ierhOzt6BmID4cl18sbQF46XwZ/kmdcn1ziik21JLs9Pfk+fcyaBIvDt5oKsldcDk7+fanWInW64DEeMmYX6r31AxVzN1f5WSh+tLGe+E4dV2BpAL3txerrj5CsWWZ/JCI2V3ioGsFdbYHvW532Rdxk/2wxVZlgNadLMd5a5c1qvP2k6iG2IumKqHd1gVXvt2/W3Gi82JtHKuh6D82yAH7PhKkDcah+98t0lU88yo2djmngxtkWeYQs4n/QXitirH4lrWfxWL1ZNNtgRGA5FkE+4e77o/+uSy/8hgiHbRicRkwtL8/HGKyMxd+WATHoypt39rAtxfTiZ/+YMsFwzSFmO+y3TFVQNhaFd6mlssg8S1CjCZWiXPoQfIf6MalxeBXDbvmN00W/eoq3yvdS3eCePJItKTq6hVAybPheh33mnfIY6F3W6Ng31O7bzEx5c7fQzzv0uBsUchc0wpHULdl9KW6RNI4XcBYXx+8RXmPXDFIpknhtbwOW4+lIlBvl/nuEHfu/KmeIwOjCP/3PG98AvHphsuwtbP1HRceWoFCefSpa9OLnbH5W1uomjjcRvno6DHLpjBORe0K1JIywUD8wfrWneobD0nW9/YzL7jPMlkElCvqOA171jgbuOUq/ X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cdce25a1-6684-4320-b5ab-08dc86f55494 X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB5948.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 13:25:42.6953 (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: PfPj4EhgxD05CwrxgFKY682PYk8CvAOAPt38XNRTqBjUyj2MYpHWQp8DrYvHzdrW09e0O6YoOhhJ+a/N8u8pTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9249 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_062546_658402_EF5F5704 X-CRM114-Status: GOOD ( 10.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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);