From patchwork Mon Nov 4 03:27:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 840995 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2062.outbound.protection.outlook.com [40.107.103.62]) (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 A98A417C9B6; Mon, 4 Nov 2024 03:28:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.62 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730690918; cv=fail; b=MjTNVWnHbJD9VkDYd4Vocqp1x/1u5Ct87SPkZgOgsL/fcbTrMR662fRGtK1yrGJfXZ1CuMrKJqwDQ66FqeWOBbpf0n9hiFtNVAKmW3QFec1NRY5rZhbteuDcxOLSu3v+Rx2rc8qL4HtVVa07s1Qd5Aq0+fHW6VXAPAU06/6+vHM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730690918; c=relaxed/simple; bh=4ib1HHWLg4AJBR5hjFtGJeQYRUOlO6IDtylc4yr5Hxo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=oS69NN9JFV9a1WTjmy2VxJw/OnTpSDKjHDDTe2MrCF3eamO5JHbJ+90QKNlRjVIresQfRrY8AIz0fWd0jf1MOYAgFNswF6F4Rxun48MbCYfX/8bQ0rtbNI8Y+hoSHuiR2q1wpp2Ggnwgj+eeAcad/srq6swKBS4eTuYFd2fxXeg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=F9S9r0NB; arc=fail smtp.client-ip=40.107.103.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="F9S9r0NB" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F5h55l2+0En03tovNWez4cwmPUhX9R9/w3xUNZXfM4oArgSXhZqoKqcWlSD60fTXXfkNT+/USWqZWBGQrJYLM37cBFxw5e3YDQVaAuH6Z3Fiwnre5++mWqEVKxJhcMrb3ApxY+f1fAC3lN6RCDrngyILKY3HyktxcsbO6srTkbZJk/+LpvPDsgJbEI5tISlu5bKoh9gNvo52hmhmvcmE1R+1PYQ/X7aA9xQfwlbXoSGsnvlTZE9mNsGE3yiIo+5j6TONJMOK+TfQ8mhYhniScxmYhCz/3P0D+mhI5M+qSx3eRzloX0VGHbaA2UNQtF6OOEUN+x6NJaNEQQ1vWGIcMw== 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=xK9QuciZD3bIE5z9vrb6bf25cs0xqPZ1iCmWd+HMrk0=; b=ccCI1JWrCIhkPbClBjtj+F5PXf7WCagAlzReCdLtNkKdSeo/PC4anoO2HfRqu6UWPV7t8qA6X+bFdv6frRzAhQ9QEvuCZoXXn+hFVguUudAFeo7uB5oRADRjVyF18SCW1EMmjSStmlfJtMQUAlFpOra1EPoSlEKOu3ipNfyjdg+fUG2QEgQKzpNth5B/0apR8B3ofl4bsRIw6mk+AnRLj7yk2cKI3yN4htM0elE0uEu6UfPKbn0drHWJbCeKYPVy0nNcKo6Knu5wBvdT4W2UISIufsG2tW8PxzWa7pkxTTNXlH6LwFca6iZClMbX2OIpJRn0XAVBL4OzPwMRw4YuAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xK9QuciZD3bIE5z9vrb6bf25cs0xqPZ1iCmWd+HMrk0=; b=F9S9r0NB1ZJyDnqEXtPnbVEbd+Q2cK5Lcn9ofbf0bdEi/bkX19JP18knxmznX2oY0Q0jXhKTLZnJVjche+iuTn1vcL4Xomybwy9032tGNGeV+qoUqxb6hl5/Fwqk36eZDXte7tHs+/AuvURHWFz/FtagedOc4j63XnKtCNHFy7qVclDGx6szUAW92p4nXdguSvRFbpznJs1aTOoVwvj8OTczuei+1hL8PPonO0NXEML3OwRxMeF0Hw7eps25fCWmwpdPqK0AFAsBXG8l+c5XiOsEdCPZrEvrT+1Z1P1MrHLCoKU7BPj1Q+uRqcJHm/RoVC8/yQWl0tXG+XV/x2J6yQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by PA1PR04MB10602.eurprd04.prod.outlook.com (2603:10a6:102:490::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8114.30; Mon, 4 Nov 2024 03:28:33 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8114.028; Mon, 4 Nov 2024 03:28:33 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, quic_jesszhan@quicinc.com, mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, sakari.ailus@linux.intel.com, hverkuil@xs4all.nl, tomi.valkeinen@ideasonboard.com, quic_bjorande@quicinc.com, geert+renesas@glider.be, dmitry.baryshkov@linaro.org, arnd@arndb.de, nfraprado@collabora.com, thierry.reding@gmail.com, prabhakar.mahadev-lad.rj@bp.renesas.com, sam@ravnborg.org, marex@denx.de, biju.das.jz@bp.renesas.com Subject: [PATCH v5 01/13] arm64: dts: imx8mp-skov-revb-mi1010ait-1cp1: Set "media_disp2_pix" clock rate to 70MHz Date: Mon, 4 Nov 2024 11:27:54 +0800 Message-Id: <20241104032806.611890-2-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241104032806.611890-1-victor.liu@nxp.com> References: <20241104032806.611890-1-victor.liu@nxp.com> X-ClientProxiedBy: SGXP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::28) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|PA1PR04MB10602:EE_ X-MS-Office365-Filtering-Correlation-Id: 2d8f2ebf-1ee6-4ac0-dd60-08dcfc80c2dd X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|7416014|376014|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: m0dv3yPBRBSGBtzZUFeJlgZznAaqQLq67QRn2iSF6HFjwCHhssp+ptprLktKivlZ4zyx5/9DUvseAU4mUrZaUJ1Axw7rvzuxaNOMYXFMnJZH1txvgKE4XcIQgr3CvvXiL8YHNeiBtwI8xKKP5amus4cRFF09dPSP1ZHKui2XVkBqyhhRl5HjclRFkHOUk6tXY0OFQsbAJsg9B/OPqB8ffQwb8FsbMcgqaMzi9i0neStE6VComnV1zXEzBzkWGJT/TQ8sP16ljXKIT27KeadZ0EZQWS/TSmbAEBoAc651ncQTfIYDclPJi1MWiz+3+T/kJscIa8lHacT54f899xy2C41mYByLmWeszx2o8oP8yDBB99okwzTcAzudSAYdVqJVI2aK12I+d87LQtrLuk69jO5Mr76LmxTB9suUPuhyJPISLXYTOK/8l+MRhsxKX6p2u09X/haZxsxk6WQS9E3OmyiKzkFQNAaug4Q2ijojNa3VP+nls1cQsysVygDJJIqtx4bqEpzTI/1C9yvkkUAlUPFg1EC3nOMLUzgpfIZ4c3C3AZaqG4MzlURVGfAq1YwJk2Fb5k5ie3MBHxiBo7LGwr9AfqPZg0rljmHk1ZzK6eQ+bal3owa26O304s6wq4TIomTsv6AU6UD3wCBoA0yzynWdKMuA8Zpy/dTWYDocUNqAb71XsEb3f3QhJ+4m1HqLT7GPSnXs9BXYqow8ZLF/DmCIp4k7fFYCr4T2mawwc0M5wFwgn+cWBN2iE4wzJMSuAzWU5zz0tx3GFFitfhQispgKEt2D16v7zTdUUZqsKsd+K2uEa5u/vL0km3ivyzrV0/4h+M8IhevJfcTPGFkBomQ7vJDMhYkaGBhBJ3phmgSv93Vl51Ke4kHZkhkU5CQg2UOgASGETpQ8/tixYAHwOZePM2evBnwm/nZzR2w0ZNFKPsFo7aQbrH0DG2Z/Mf5irNeQjyVmo4X2JC2JLcgwvLz45Xsdpr3uYo7aGkwEP/1LvXP6UxUhOzelgscFzPb/eZnYpckZDxJAN5fIrJoKt6tGXCBzidcoSj0A0jvlAkzlUWb55+Z5Y1/OIck7YXDPDn6ifQjEuG3iBTFZmE79+Ke9Rj0o5JHyg2RU2m/lclmi2GagZNEflCqBAMYwVZr5otL7mS7UvaIu4ZpGOZe/IjqXePJUpq8ykGddlB2jJEkzm+eh1+HcG1uVhyILk95XBWC8Q+dehKwFoUvwse2rJ2/TniA/JGehkSj93FD/aRZ/09g2YI7lPndpdlYDEIW5viIH/k9HLkJKhAX4FfUdMpxshtKtK1dN1U5xP4HbYdvsg31CabGqQU5bUM4X9QF4t4tL707xkT98iCmTb9QTwkGaIPMvXZKZHEOqNmv38Mw= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR04MB7046.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(7416014)(376014)(52116014)(1800799024)(366016)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: RHQ+EUWJv0XQxhJt5AUSa7VCcq7v4CWheFAqbTkrIbSzSepC9SvS3Q6bNClizwNYkxdnT2d56+WKAVyz1jj4vc6dRim05AuhfqiGvboteb3aj4gPZVxGPX3EnYe5L9d8joNAwfQoNFR1zLpExkdi3fO+IOCJaWRuIIJHzKWws+8u8A+ayxk3Ywc0hTnOfDz/mZjnIYYVtq2aPwOw2r6/iMvJY5ZREs9sOvD1m2YECKCA89IjITlvoTfBy92Je2rpeXDxnevlLOf/rQk1UvFbcQUYJqKNX5DypW+AiAYRO5mlVeid5ZU6zSTtm/hW0E+A+BmBd/rvKVToWjdzMPh4qLQx2uYyunRu85ghT8gh1h7HXMRFqgI0PKPUHi+iGMZ5PpQWAXDX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Q+5Qic1tVeFNSQIDIGcrymtN/gBp0Oqm4s9ez/pNyADrk0k3JkRFUklsUQAQQ+R84h+/3G2xLksXAYe61A60K3qQImSCZMi9LxAZKFwcSUPHIttCZ7xMlQF3itT0PS+FNsgIMMOH++gcejNF X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d8f2ebf-1ee6-4ac0-dd60-08dcfc80c2dd X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2024 03:28:33.7547 (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: d3XsKJj/oe1nwK0TjhuR2TY47z90EaT3Si3ZJtaG+zmXJvXC4gaeAbPRhjwAioQ0ic9NC7dEzY/db46dQlp0kA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10602 The LVDS panel "multi-inno,mi1010ait-1cp" used on this platform has a typical pixel clock rate of 70MHz. Set "media_disp2_pix" clock rate to that rate, instead of the original 68.9MHz. The LVDS serial clock is controlled by "media_ldb" clock. It should run at 490MHz(7-fold the pixel clock rate due to single LVDS link). Set "video_pll1" clock rate and "media_ldb" to 490MHz to achieve that. This should be able to suppress this LDB driver warning: [ 17.206644] fsl-ldb 32ec0000.blk-ctrl:bridge@5c: Configured LDB clock (70000000 Hz) does not match requested LVDS clock: 490000000 Hz This also makes the display mode used by the panel pass mode validation against pixel clock rate and "media_ldb" clock rate in a certain display driver. Signed-off-by: Liu Ying --- v5: * No change. v4: * No change. v3: * New patch. .../dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts b/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts index 30962922b361..2c75da5f064f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts @@ -52,7 +52,7 @@ &lcdif2 { &lvds_bridge { /* IMX8MP_CLK_MEDIA_LDB = IMX8MP_CLK_MEDIA_DISP2_PIX * 7 */ - assigned-clock-rates = <482300000>; + assigned-clock-rates = <490000000>; status = "okay"; ports { @@ -70,10 +70,10 @@ &media_blk_ctrl { */ assigned-clock-rates = <500000000>, <200000000>, <0>, /* IMX8MP_CLK_MEDIA_DISP2_PIX = pixelclk of lvds panel */ - <68900000>, + <70000000>, <500000000>, - /* IMX8MP_VIDEO_PLL1 = IMX8MP_CLK_MEDIA_LDB * 2 */ - <964600000>; + /* IMX8MP_VIDEO_PLL1 = IMX8MP_CLK_MEDIA_LDB */ + <490000000>; }; &pwm4 {