From patchwork Mon Sep 30 05:28:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13815400 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 6AC6BCF6491 for ; Mon, 30 Sep 2024 05:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=A6KeBUQwv32IvFiTA3RGW5mVEKCvk1/S6gK9nyp9zL0=; b=MR84gdas6gnPKeqKIbvHNxgn3w hDY9Cqvh/4QROZEMUeVPCqrOIWc7P8zkZxwFWZ2L9FkiqMSKI3SDu4j+vJYqvic3AMBjBAwwCvUuh c5cA0mryWwSDITpkT3N0O7pexZEjyif2COLvfgpD8x0PNiHmNTiXSC8YayPFPb5REOxPRpBPlmFeS ZxtVwjsqIa3AiSJb6924qjHDN3Nyg6TtW+oYr6ZnxY/DCHiFWSMiy9JJOe3QCjEO6m5F4ADcqA9M6 YnHasdqf1xQzZgaSDYFZRDUWD0j2ycy+eMgcA1M68l6OkcX86BP3CNAUScEa/ReS3MusI39CDvYRA rI6Jj00Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sv94Z-0000000FzEL-2NOh; Mon, 30 Sep 2024 05:35:51 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sv8yD-0000000Fy0e-0E1E for linux-arm-kernel@lists.infradead.org; Mon, 30 Sep 2024 05:29:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Fgq0fRxnurg5acVlmzAsD+bU3hswb4u1e609MK4BhlvdM9HjqowplRWzeaeBTcaviYOn6A2FHfavql3lLI1++lq610/iTtN2rAL9NkXiHPy6AGDiE6HdyQVsHwmK90q8Z2B+8CjLia0IDm9pDI/si2SMCSTPJ21LEnE2+/5FQ7Kt9aLK7A/GorpbPyF2XusWettZef87wz1I19ehKod6/Ijo8/LPjDaFiBJppsFgjbH4i2EyA4fTfZMDseDkVCspA+fp51tBagW2nAIhMgMesW8PxJy6BJx6lQHSlK6hBycOHljSVKVO46/WOwTBXjpINPFEcWtQ2cgLAVy+Tb/iEA== 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=A6KeBUQwv32IvFiTA3RGW5mVEKCvk1/S6gK9nyp9zL0=; b=X5bhl6aIj4s+rHYA0on1YBM3SLIX0JtWX2W8RkwogvTuY0mNDOx+sFad7jz+oLw7TyT1DZJPZZ6h5BCJzB+hO5fxOtCqiS1vhf12z9Dz4iiygWGYkQeJmvTQe8BHtrN8KqVt/+b8aSojKWFLPu5kpLaSXzsBFXPLoXqltHZPpECM8f42nXlGlpQLyRTFPDJEVLa6w7lTGA/8yV9qKjT4l8AzuFZqZNxuQoPEmqJDY6LZAyxOez38GuxrnkIcWNqdoYmSFo/OedblSKmHLTySZ932wDJKSVm1zLIcgH+l5umjwO4XkHCDySZiLdsRJ65domWWJux6bO2eMCrdWl9/8w== 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=A6KeBUQwv32IvFiTA3RGW5mVEKCvk1/S6gK9nyp9zL0=; b=hMCk2ks2WY1Z1eaWjF4eGqhOtljn+BTxyAPcNfmMC3brBbg2fabGfgm+sJNcE92XLoo7iiY3kGESjnM7Gnblu2qLH/0HE3a8t/RDGkfrmCrbsn89n/kZBTu67i0HugffFJjF6Cs1VA99RX3H0rjoZ0LINZJxaOsWi318Tk0U3aXmGjb/ZRCmO4IUfEpX9rKJ22nggL3oalYjrU9fUFEq7L/JEBe3DpeiUXdRLcWAc6BbmvBqKtUsTZqVHFROuPt6XnvqnYZWVeOQOgLCVLJrdn2JXL3UgZ/todhbBnm+C5ALs4K3aX+MP5znwO50Ewi3bOtYP0Uc0M4n7jloYmztcQ== 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 GV1PR04MB10536.eurprd04.prod.outlook.com (2603:10a6:150:208::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 05:29:10 +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.8005.024; Mon, 30 Sep 2024 05:29:10 +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, 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, 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 Subject: [PATCH 2/8] arm64: dts: imx8mp-phyboard-pollux-rdk: Add panel-timing node to panel-lvds node Date: Mon, 30 Sep 2024 13:28:57 +0800 Message-Id: <20240930052903.168881-3-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240930052903.168881-1-victor.liu@nxp.com> References: <20240930052903.168881-1-victor.liu@nxp.com> X-ClientProxiedBy: SI2PR06CA0015.apcprd06.prod.outlook.com (2603:1096:4:186::7) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|GV1PR04MB10536:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a323e82-e9f9-4600-aa53-08dce110d00f 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|366016|1800799024|52116014|7416014|376014|38350700014; X-Microsoft-Antispam-Message-Info: qo4xo2+cpz2huJ5jd8RzhX0TsQU9I69DU7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i3cJYeLgNAxl4/bc0T5JASivfIOiLomglzDZEZflXc46qy4WEN+1809BjvHzpBRZOn2UzX/L4EDrqKYN2fbz+Hj36OH5CALwv/Umlwwtbg7pDiNJMsBwaQEAwgA1PUudr41p9ajemm8CVcl12lUI+gfpq02p2GcB0TOW3VivdncGrQpUgBhmhy+7Dsa0ATPDuoa4ElOLzdu+SsrCTwTaW4wwMFbbBJOr8aZxI1H5I2z0TYc47/k/Nft8oVhJske8/6kUkXMcvioqXOK31dduv2vWA6WoQ/NPr9niiWVwUAru/8HKHPwwPzPvDhrPuiJBhEg== 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)(366016)(1800799024)(52116014)(7416014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AGoe2gn8CbsUWFinRS8C5W4Efa9lkdf81bWlrEbgVoRyMTsd3U5Fm9aRv7XJmjWMi9S9cejPDU/vKJQjpKOMdL/wKhDA90x2fCOkEtnbE3p0zdawILVvc2eDdJVOS+ocZoXFOuW6va9uEW2KuF2G/MYivM6nKHfofRBQULbClDKNcEznahr+lwKy/B2rTZvpXs64zjXOIZCpHsXhrahg8JePCsZiwY6dlLTHpYIcNYytx2HFz2a9mQsTz59l+71eBSe7v/tUcEOsvE8tpaKUDAxQuiUkS1DWR6aRcEzmjmv/xNEa+jpwjyokwq/qXzQLTeblWGg24vv8/v9bjlKSpkWj0fuO/ox0Ot/fTaV5KiagzaHB/eJ0P3wuJEA2T+NfDLXR1KV68490dFrgwhP62E7YTQJh20UsiNLsYHDnOluZJXj1FTgorGARPKW53IeIjsCAqT4Vmq7c4MhuML1NWtKXF8Y1BcIRNdTo0ZEqErQcv+hVMUuBln+dbnK2rvnDUynxBo7dRkPEvjjeVbeNMW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S-Exchange-CrossTenant-Network-Message-Id: 2a323e82-e9f9-4600-aa53-08dce110d00f X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 05:29:10.7943 (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: PjsMD9JQHWmSMtaN1zrE5Ng6mG3CH3edO8eFzkjEkMuz7Xbxs02sjkwiHnvesHuJM6Lc/iTR15DqE+Z62fW4rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10536 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240929_222917_118199_EC1CE3A2 X-CRM114-Status: GOOD ( 11.85 ) 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 Add a panel-timing node to panel-lvds node to override any fixed display modes written in a panel driver. This way, 74.25MHz clock frequency specified in panel-timing node may accommodate 7-fold 519.75MHz "media_ldb" clock which is derived from 1.0395GHz "video_pll1" clock. This should suppress this LDB driver warning: [ 17.923709] fsl-ldb 32ec0000.blk-ctrl:bridge@5c: Configured LDB clock (72400000 Hz) does not match requested LVDS clock: 506800000 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: 326d86e197fc ("arm64: dts: imx8mp-phyboard-pollux-rdk: add etml panel support") Signed-off-by: Liu Ying --- .../dts/freescale/imx8mp-phyboard-pollux-rdk.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts index 50debe821c42..20cb5363cccb 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-rdk.dts @@ -37,6 +37,21 @@ panel1_lvds: panel-lvds { backlight = <&backlight_lvds>; power-supply = <®_vcc_3v3_sw>; + panel-timing { + clock-frequency = <74250000>; + hactive = <1280>; + vactive = <800>; + hfront-porch = <72>; + hback-porch = <86>; + hsync-len = <2>; + vfront-porch = <15>; + vback-porch = <21>; + vsync-len = <2>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + }; + port { panel1_in: endpoint { remote-endpoint = <&ldb_lvds_ch1>;