Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp367463lqo; Fri, 10 May 2024 02:16:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXxo5RM1G+B9ysm6D1rQEYxlkQX/EDugWsD91F1fr+ffDsA+/CM3Uv0DwIT4B3FtAWYI6+JNaiSCWH24VYKLsFzDAPJ2PHDCE64WwQfKw== X-Google-Smtp-Source: AGHT+IHSxjabHpje2SH37xKVe1nlf70NJB1lQf1oFcPH507TtMRvNx/UTJk8r5dVs4zn4Q0LxjRi X-Received: by 2002:a17:90b:3604:b0:2b6:c650:fb7d with SMTP id 98e67ed59e1d1-2b6ccc73061mr1903221a91.39.1715332612955; Fri, 10 May 2024 02:16:52 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b671163384si3313923a91.81.2024.05.10.02.16.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 02:16:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=e9seynFI; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-175506-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175506-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A85F1283AA8 for ; Fri, 10 May 2024 09:15:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65B0E1708AB; Fri, 10 May 2024 09:12:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="e9seynFI" Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2082.outbound.protection.outlook.com [40.107.241.82]) (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 9C8A416C443; Fri, 10 May 2024 09:12:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.241.82 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715332351; cv=fail; b=dh3teuLEb5ean4Ld5bAviFAAhTXiYdyfPlU93sC+gcGGRmldC5aRxLKmMlQAfwDax0AoiTZpNuDRHuRkxc7MupHCjP0Vi3vxbMiMZ0RWxswtjUifQKTk1tCz/MGGSfUr9vtgVs7aA1MwguYqujaFQOG0LpXA25K1YGVE+JlO4VM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715332351; c=relaxed/simple; bh=ol6T1q1Aq60j4vSh/rwMrCMDOxf8jPJ9kodS4MqsQqw=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=dXr/79nBUoNYv2Oh0SzaXd9Sa3jS5m6nlBiIWtA5OdPLifExxi8rYHrqJhC61cxd7N4d0gdbfmlJA/NlqBkGI2VhVIR88KnYA9nKcUMMwy1kAAXR7Xq2j2A1OkYIk9RwTfgGiJZpUbFFm7K9xkdH+7el94oxawLySfKHdf06nPA= 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=e9seynFI; arc=fail smtp.client-ip=40.107.241.82 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D+SsfIe1xiXyHm6tAOb1BckE8AU+beUzFbmV597qC/ry2OHDb36MvPTiRFRT+10giec2KeB3nlYOZYvYRk8ZGMpwqCuwVRTrLr4+Br3RTX5MwFsA6yCmge6eIbE/7i8GKBmysAyHgS4Pw/24nrXzD+FFrTHlfVCLhvHItUa8B5ICHv6id97cutlz1Wz3rvsPd4IrbV6+UzDFC1UlKU46K6l/VPja7akUsO/lum/N9FArylCWkOeUjcrritocwW1G0bfcaTXPzTGGL1deSv0PfP6i2+ZhC1Jk+LN8zldvK7Pbbx1iHIE1d2jZMYMf1L+BFyoc+kqGo2QhaA2GEZrKyg== 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=haZ6P9kChEQ6LyhfR+Vw1ypeLFvLrcIo+nuKLMbxpNM=; b=bTjg66388YgwT438bzItJ3u0lSHF25exM4p7VYILi6OXVc7iOvIaCCla1sU8GPUuyYUO7wRFlTpEth7De2WrTKInIri7tddwBji6cuzg6w/c57+NVXKPFbxdHf5VCFcMkXxWzPQB3qZRT52efI89tP/aULJn6RMCdW32xgiAVa5CGWSFUwRiabNqWOJOcU3EHnE0pqNm7mJ4pBlgaoozKUUvVGJWzdicitxUmc453Mx8aBjApRngVn/qZDJVCubPzcyvy4iN/SxKcBvhinvGmvFnzPy0U83Mmg+LrzcnEsIIf6N0eF5DkNekY1Ib9asba7P7PyEgXQOvrdIw2dOirw== 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=haZ6P9kChEQ6LyhfR+Vw1ypeLFvLrcIo+nuKLMbxpNM=; b=e9seynFI4yNN0tPJOxOx/lqqL6Ma/9ju3bFQnBUZSTojKuTPE4eUGfqbGFvNQA34GUFeRgrceuzh2HRdfAW4TYoMwK3HA9E6+z+7rSdfPPdKrpl1ChRa+22zxYtqTPQqcvT5+ZnpnpF7WQg1vtmVg3soDef/4mHG15ZNUgEH7IE= 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 AM9PR04MB8065.eurprd04.prod.outlook.com (2603:10a6:20b:3ee::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.49; Fri, 10 May 2024 09:12:24 +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.046; Fri, 10 May 2024 09:12:24 +0000 From: "Peng Fan (OSS)" Date: Fri, 10 May 2024 17:19:09 +0800 Subject: [PATCH v2 14/17] clk: imx: imx8qxp: Add clock muxes for MIPI and PHY ref clocks Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240510-imx-clk-v2-14-c998f315d29c@nxp.com> References: <20240510-imx-clk-v2-0-c998f315d29c@nxp.com> In-Reply-To: <20240510-imx-clk-v2-0-c998f315d29c@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 , "Oliver F. Brown" , Robert Chiras X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715332748; l=4040; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=xxTNiTDPAbopWXYDXxGIv8y1Vyhx+iZ9rQ5/X96xIkk=; b=mb95VFrXtXxKBvPuZVas9MNORM2HsBtVp6AdxtJgHEUlZ2Dc9KulgzsWPgReknP4EDvEW5Qsz U9bgbweau6OAkFW661w66udLTq3EiL4jl9hYbPHFjpsmwE/6mBUQ0Ya X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR02CA0008.apcprd02.prod.outlook.com (2603:1096:4:194::12) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) Precedence: bulk X-Mailing-List: linux-kernel@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: DU0PR04MB9417:EE_|AM9PR04MB8065:EE_ X-MS-Office365-Filtering-Correlation-Id: 388681d4-54b3-4770-0b40-08dc70d14e04 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|52116005|366007|1800799015|376005|7416005|921011|38350700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= =?utf-8?B?WGF4ME90dzFFRG5xeVN2dVhEd05TUVhFUTJUeGszU0Z1MEdqZnFlZHdNRllV?= =?utf-8?Q?Uyf4YRwTMSEKAXZMFUQTckS9khdS0bpq+rmRs=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)(52116005)(366007)(1800799015)(376005)(7416005)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?L3FqVUNFMkhWbFhucHh4aWMwOEttckp5Rit4YWVNNElHY1ltbUxHVloxWkFG?= =?utf-8?B?VHlCaXNXajdFMWJ4NHlwWm1QMlJSaE1EcjBNY0RsOFBGd1pWUFdCVkJFeGZ5?= =?utf-8?B?dlltSjcxVXlPSTdNQTZPT2tvRnZuTzRzY3ZvQmtTTUxMclkxK2F2UDZlR0lN?= =?utf-8?B?Mlpka2tscVhleHNLZkJVM3hmNC9hOXJoaVErYWNtcitWblpDOHZBdjgxdjZN?= =?utf-8?B?WGNJMDNOakhpc1hiWlg0bnRQeGZXS2FUUlpYVzh2K1lUWi8yY2RUcCtoakFo?= =?utf-8?B?c0QzY3lxVlBGOE53UmFUSkFYSWdqeDhLWU1iOGFVOVNmQWE0V24rRlJyK0E5?= =?utf-8?B?eTNTSnRud0J3WHlXaU1JeXAxbVB4RE5nZHIvN3FYdk5SbGF3TG54aXBJSWpC?= =?utf-8?B?Q0JESlN6OTRrYU1vSEY0TlVOTlk1TGN2RC8vdG56MU8wR0pCT1ZPY1NYQ0J0?= =?utf-8?B?emFiYmNtbFNvdnltcDIvSkNndTZaTkM0RjRQdU5xK3RlVmpVZ0hvZXB5S2hw?= =?utf-8?B?ODVOcmFVeUt1ZnQ1WmJGb3lVQ09jbDRGdTJmVlhJcU9qNEpkT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RyUkZ3UmZ3QVpyYmNK?= =?utf-8?B?Mk9xWmlGemo3UmYraGc0eEFCMm9IRHVYb0J3VGJ1RWh5VDIzTkpFMjV6RHdD?= =?utf-8?B?ZkI2WFB4NVp6TUJnZ2JKUVJYUTdDQVVBR2xOUkxhMHZNZ1dYdFhrU3c2REtm?= =?utf-8?B?NWltTFlyK05Ubnd6L0N0N1B5Q3hVTjh3YVhUelpkOFFoQ2hOc09hUzUvcU1Z?= =?utf-8?B?a3ZwOU9uVEVyK21BNkc3U0h4Z2cram1MSC9FU0F1YTgzbDBUQ0lUQnJ1WTda?= =?utf-8?B?aGZXK3lzS1ZJNWJyQ2cxYmxaTU9ORVJxZ1J4ZzkvMU5IeU9ON2xGTDNLN0hN?= =?utf-8?B?eFFURXlTdnN5R1ppUEp4K1RUL29GNkdTTnM4eHU3SXFERmFObkM2SXdHQXdW?= =?utf-8?B?MHozbjhqU0p1YmdXUEdQUmhEVG52N3h6Rlkxdlcwbi8xYjRxSHQ4VUtpYzl4?= =?utf-8?B?NHJGWDFLQ1BKMDIwWk5xUjlXZGZqQkYyOXlXUTNmSjVIMW5HN1RHSHhYelBJ?= =?utf-8?B?cXBBME5qSGxxOWxhTkkvVXVYZXlsYlY2M0gwUzl3a3VRVmtWUG8wNndvbUJ2?= =?utf-8?B?TC9wUGwxdjB4Z2NmaUN2MVZEMnZmdDE2STdsR0lzeGR2RGd5aWpuY25YcWFu?= =?utf-8?Q?OGEIoG7KdQriDHBsPLzA8IFXa?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 388681d4-54b3-4770-0b40-08dc70d14e04 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2024 09:12:24.0340 (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: 75auL1o/E2C+Ob0fVLe8yzH0zO9CBRyPey+PWh7Cska7O0eH4LoMvYTJOvM40KBF8pRrPOpjMwnOBJVhyZ9osw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8065 From: "Oliver F. Brown" The MIPI Pixel and PHY Reference can use the bypass clock as a source. The MIPI bypass clock is the Pixel clock from the Display controller via the pixel link. Using the pixel clock for the PHY reference allows the MIPI bit clock match the pixel rate exactly. The MIPI pixel clock is currently set to be source from the bypass clock in the SCFW. This patch allows the pixel clock parent to be set by the kernel in the event that the SCFW default clock parent may change in the future. Signed-off-by: Oliver F. Brown Signed-off-by: Robert Chiras Signed-off-by: Peng Fan --- drivers/clk/imx/clk-imx8qxp.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index a0654edaae83..fe6509be6ce9 100644 --- a/drivers/clk/imx/clk-imx8qxp.c +++ b/drivers/clk/imx/clk-imx8qxp.c @@ -90,6 +90,22 @@ static const char * const mipi_sels[] = { "clk_dummy", }; +static const char * const mipi0_phy_sels[] = { + "clk_dummy", + "clk_dummy", + "mipi_pll_div2_clk", + "clk_dummy", + "mipi0_bypass_clk", +}; + +static const char * const mipi1_phy_sels[] = { + "clk_dummy", + "clk_dummy", + "mipi_pll_div2_clk", + "clk_dummy", + "mipi1_bypass_clk", +}; + static const char * const lcd_sels[] = { "clk_dummy", "clk_dummy", @@ -222,25 +238,25 @@ static int imx8qxp_clk_probe(struct platform_device *pdev) /* MIPI-LVDS SS */ imx_clk_scu("mipi0_bypass_clk", IMX_SC_R_MIPI_0, IMX_SC_PM_CLK_BYPASS); - imx_clk_scu("mipi0_pixel_clk", IMX_SC_R_MIPI_0, IMX_SC_PM_CLK_PER); + imx_clk_scu2("mipi0_pixel_clk", mipi0_phy_sels, ARRAY_SIZE(mipi0_phy_sels), IMX_SC_R_MIPI_0, IMX_SC_PM_CLK_PER); imx_clk_scu("lvds0_bypass_clk", IMX_SC_R_LVDS_0, IMX_SC_PM_CLK_BYPASS); imx_clk_scu2("lvds0_pixel_clk", lvds0_sels, ARRAY_SIZE(lvds0_sels), IMX_SC_R_LVDS_0, IMX_SC_PM_CLK_MISC2); imx_clk_scu2("lvds0_phy_clk", lvds0_sels, ARRAY_SIZE(lvds0_sels), IMX_SC_R_LVDS_0, IMX_SC_PM_CLK_MISC3); imx_clk_scu2("mipi0_dsi_tx_esc_clk", mipi_sels, ARRAY_SIZE(mipi_sels), IMX_SC_R_MIPI_0, IMX_SC_PM_CLK_MST_BUS); imx_clk_scu2("mipi0_dsi_rx_esc_clk", mipi_sels, ARRAY_SIZE(mipi_sels), IMX_SC_R_MIPI_0, IMX_SC_PM_CLK_SLV_BUS); - imx_clk_scu2("mipi0_dsi_phy_clk", mipi_sels, ARRAY_SIZE(mipi_sels), IMX_SC_R_MIPI_0, IMX_SC_PM_CLK_PHY); + imx_clk_scu2("mipi0_dsi_phy_clk", mipi0_phy_sels, ARRAY_SIZE(mipi0_phy_sels), IMX_SC_R_MIPI_0, IMX_SC_PM_CLK_PHY); imx_clk_scu("mipi0_i2c0_clk", IMX_SC_R_MIPI_0_I2C_0, IMX_SC_PM_CLK_MISC2); imx_clk_scu("mipi0_i2c1_clk", IMX_SC_R_MIPI_0_I2C_1, IMX_SC_PM_CLK_MISC2); imx_clk_scu("mipi0_pwm0_clk", IMX_SC_R_MIPI_0_PWM_0, IMX_SC_PM_CLK_PER); imx_clk_scu("mipi1_bypass_clk", IMX_SC_R_MIPI_1, IMX_SC_PM_CLK_BYPASS); - imx_clk_scu("mipi1_pixel_clk", IMX_SC_R_MIPI_1, IMX_SC_PM_CLK_PER); + imx_clk_scu2("mipi1_pixel_clk", mipi1_phy_sels, ARRAY_SIZE(mipi1_phy_sels), IMX_SC_R_MIPI_1, IMX_SC_PM_CLK_PER); imx_clk_scu("lvds1_bypass_clk", IMX_SC_R_LVDS_1, IMX_SC_PM_CLK_BYPASS); imx_clk_scu2("lvds1_pixel_clk", lvds1_sels, ARRAY_SIZE(lvds1_sels), IMX_SC_R_LVDS_1, IMX_SC_PM_CLK_MISC2); imx_clk_scu2("lvds1_phy_clk", lvds1_sels, ARRAY_SIZE(lvds1_sels), IMX_SC_R_LVDS_1, IMX_SC_PM_CLK_MISC3); imx_clk_scu2("mipi1_dsi_tx_esc_clk", mipi_sels, ARRAY_SIZE(mipi_sels), IMX_SC_R_MIPI_1, IMX_SC_PM_CLK_MST_BUS); imx_clk_scu2("mipi1_dsi_rx_esc_clk", mipi_sels, ARRAY_SIZE(mipi_sels), IMX_SC_R_MIPI_1, IMX_SC_PM_CLK_SLV_BUS); - imx_clk_scu2("mipi1_dsi_phy_clk", mipi_sels, ARRAY_SIZE(mipi_sels), IMX_SC_R_MIPI_1, IMX_SC_PM_CLK_PHY); + imx_clk_scu2("mipi1_dsi_phy_clk", mipi1_phy_sels, ARRAY_SIZE(mipi1_phy_sels), IMX_SC_R_MIPI_1, IMX_SC_PM_CLK_PHY); imx_clk_scu("mipi1_i2c0_clk", IMX_SC_R_MIPI_1_I2C_0, IMX_SC_PM_CLK_MISC2); imx_clk_scu("mipi1_i2c1_clk", IMX_SC_R_MIPI_1_I2C_1, IMX_SC_PM_CLK_MISC2); imx_clk_scu("mipi1_pwm0_clk", IMX_SC_R_MIPI_1_PWM_0, IMX_SC_PM_CLK_PER); -- 2.37.1