From patchwork Sat Oct 12 07:35:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13833851 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2082.outbound.protection.outlook.com [40.107.104.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 E4103142E7C for ; Sat, 12 Oct 2024 07:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.104.82 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728718616; cv=fail; b=CWXTKZWziAmd6zmeNk5b2n46N3iQFpExtGZMCIZXr/hx/lqu8+TlJCqTmXXgwN7YnTVP8o2xo/k8e7RzM9/s7VdU8D6eB6//XspVmxN/jJGcdgSJpycC3fm9urMm/L+2choGxBRDDRwIzdBF/qNHbWBHlGT6fRy1Xum5FiJ1Mq8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728718616; c=relaxed/simple; bh=RVobiQjOiu6njMuH6/O9G193hO2eZSMGm7BfgHJB3EY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=DinP44DvtgxI7GVux+nPNK5NmyjIIgCC4Lwhj9+eNuyQEIGILUazMe2n09q3igWYV23oQ7o0xwKq9LaMlWM7h9/fHUDdBAo1ozCc84W5QsRcHTtIIdfbXGJAvNoikj0gc6EbfseWry/6mfI4va3c95zEiKaTi3+icr/WXINSQJ4= 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=QCn9q/S+; arc=fail smtp.client-ip=40.107.104.82 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="QCn9q/S+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pgXD9c6fux24/Uphq64gr1oZi7M96el8xo1ABsKsSt5AzU6rlumD1qPEpb81dHMK4xX0K/Bya8NCnafGf5wwYe2mKMOHcgNi/Hvqw3z0hiZ1oiaX8+WS91gfiUKi7MnEsGOZmVWmGo7jqDJJ+hnGvZj1bJhL7uNj4yr8bK39j5FWahViCaD87UsxgUIc0sRS1yiMVnbpdT1xlZE8JyFWHlVzWopU4RK5C5SUqNtZYSTtEEgsI+eS4i4A/cgMEB6mJ/JqevcxaDZDMUZxv/0VPMtC5DqqE8OZsHusiAm2vGG+1J7rXQ872ID5ukB9VZO0dMlNONFdTdarZyxsgLAozw== 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=OJ9bcJ7eO0m7WN6p3IL8AAXUN7kEvTpvsG1AROKT7RA=; b=maSrJPnZTe2fG9HXOIGwltg7aei8BoLQ6UOvmzRZZYe4C7QaSa8TK/+NG8/fjMEkW8OKrD/8+KHmMSTqj5cAkXZ48QGh/Tws1OJ2hxp9wSmCEIluhb4y7sEEp17rTxFvQFTJ9F3ISGF+85uWdkMrz3D0cSrXW1r/U9TILAmjxSIj7Hq04X+PzWC+dQVshyKoIUOKqyWL8BIlHBXN2vCXAosGI1Rs679Fa4FF8yGhein9UGEBD3Umz96nMTju+rgYQTzZisDY0lH83itvwAYECx+VG273YBRSyEX9t/hO9cGjJEz+XLGTWISVyeE/TIn+ToLp3y5GhLw/Lo9pfkTMSw== 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=OJ9bcJ7eO0m7WN6p3IL8AAXUN7kEvTpvsG1AROKT7RA=; b=QCn9q/S+9CDVeTY/o+jIgPDtu85PvlJByA76QCdW4/1JnCttXJ79tGKSDgNDPKzMawwWy7XWSS3Vyu+nSy3w8IcDPrn1PgKidZoDNKBhzZ18AYpTu20scupev2wgRyRyMkiEhvqDjVWfHoT7vE0YwQYF540pkMnRlXW7vUo4RffRXJsl7O26yMwGXy7/61/vzN3oeFohcYifRRoHeRaxvWPrDhFoFusP2xsxj3cTFByL5VFQo7WEhQhz4f4WkF0xIkGYSmgxpP5zTuzzGHyqxoW9jhTIIaQAe8jQa+cGw876g6Btq9d36rRNMUl2TYND0SVVX6hYlrdSECF9VmcFIw== 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 DB8PR04MB6986.eurprd04.prod.outlook.com (2603:10a6:10:116::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.22; Sat, 12 Oct 2024 07:36:52 +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.8048.020; Sat, 12 Oct 2024 07:36:52 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@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, airlied@gmail.com, simona@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, quic_bjorande@quicinc.com, geert+renesas@glider.be, dmitry.baryshkov@linaro.org, arnd@arndb.de, nfraprado@collabora.com, o.rempel@pengutronix.de, y.moog@phytec.de, marex@denx.de, isaac.scott@ideasonboard.com, biju.das.jz@bp.renesas.com Subject: [PATCH v2 1/9] arm64: dts: imx8mp-skov-revb-mi1010ait-1cp1: Add panel-timing node to panel node Date: Sat, 12 Oct 2024 15:35:35 +0800 Message-Id: <20241012073543.1388069-2-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241012073543.1388069-1-victor.liu@nxp.com> References: <20241012073543.1388069-1-victor.liu@nxp.com> X-ClientProxiedBy: SI2PR01CA0051.apcprd01.prod.exchangelabs.com (2603:1096:4:193::6) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DB8PR04MB6986:EE_ X-MS-Office365-Filtering-Correlation-Id: 7cc45098-594e-49b9-ec5c-08dcea90a38f 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|1800799024|7416014|376014|366016|52116014|38350700014; X-Microsoft-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7/APN14hPJoL6IpBfhjSpQJHSjRc+cxLTqAgsFgzSudfF281vkKqYbu3x86rMjphqo5dzi+qOIr7qVIXKnoNiLFlTNoEymU08cG+ZrRU5MHFBtyAMjSvnYjCF8MffW4Npgob8DtGawiwSOqUc5Wq4Fgu3Xk1X39uoT4BWj5lNkcI7FbyIRCe3vWhpANA+361yCECEixN/P9+GrWkNc9bCke+mA/livPiGugOJxtwPWwQz17xG7rukETkuCc8oPElBp9Cj931eHVYH0L03yCoWCIvGJEaxEW/iMsLEBxcAVwUYh6L9XWRA== 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)(1800799024)(7416014)(376014)(366016)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: J6oH6PtML9RsLCmNL7tiFSCt1kUe6kDozqFEVCRiB2x8TRQ2lkE5P32RdrK5MUY7gAf/Uq1Hb1Kbp6vDI3l5hS3ysw6BrYDwaLjY/+9hD+W4nuwRyGqy+eDtE8EMMy7AA1/5uAjtVj4leIhiJsoHwnwPV2JP0wGibJxvgwvXcsCRH3VhXGyw2c2SyKcu3ZABdx8vMYKD+olphgJTVyLAS6kFYrwGytp3VfsipAG0ChYzgqz6ldZpjL7cXlcJbr98UR9I6v8yFfFJaLHYpqv2gy36B3HeLdF42SBEbZHY/vQgjusiFlPqzpXhsWSzHX+vC9xjeEZoOIWV09hlHYaY140FSOlD9C3/yTIIyzOlUsYHYJxdiL7QEBgY5GyOPyVR4f0X3dJNCL4bM1oFUFnauMALXv8l2ZCtED25dCFYo1I1rJpDxKFVqDLWyYrke/+7WvN0jFUxeB3zvYXvbZkXmABf+UBMw1yCUrsYRQps2TcA/u2dhZmmWcxIp2Qo0WnBxZoMC1ZL69WrYhSL4NWyF+Xu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com X-MS-Exchange-CrossTenant-Network-Message-Id: 7cc45098-594e-49b9-ec5c-08dcea90a38f X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2024 07:36:52.2126 (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: KQkUmNHdYr1vYnuUal8BljU7VjLNTSt19h3gS74/JWdRfqurZd7PN+F+DrGRsKUbB4FJBz1KSqxrGa1PYgqdLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6986 Add a panel-timing node to panel node to override any fixed display modes written in a panel driver. This way, 68.9MHz clock frequency specified in panel-timing node may accommodate 7-fold 482.3MHz "media_ldb" clock which is derived from 964.6MHz "video_pll1" clock. The above clock frequencies align to the clock rates assigned in the lvds_bridge node and media_blk_ctrl node in this DT file. 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. Fixes: 6d382d51d979 ("arm64: dts: freescale: Add SKOV IMX8MP CPU revB board") Signed-off-by: Liu Ying --- v2: * No change. .../freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 3c2efdc59bfa..4e9f76de7462 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 @@ -13,6 +13,21 @@ panel { backlight = <&backlight>; power-supply = <®_tft_vcom>; + panel-timing { + clock-frequency = <68900000>; + hactive = <1280>; + vactive = <800>; + hfront-porch = <30>; + hback-porch = <30>; + hsync-len = <10>; + vfront-porch = <5>; + vback-porch = <5>; + vsync-len = <5>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + }; + port { in_lvds0: endpoint { remote-endpoint = <&ldb_lvds_ch0>;