From patchwork Mon Sep 30 05:28:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying Liu X-Patchwork-Id: 13815399 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 08D7ACF6491 for ; Mon, 30 Sep 2024 05:34:49 +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=yVd0E0lyRBXWkmvGhlNxKECFxaodydKKIACJ94ljdFA=; b=0ZLC74nJwvhkma/uOPBZPTIkn0 NWAonJX+8kdJtV/LNwvlxIIIQO1VgHVuiYQKe3zitn8izKNvPwlCncBv7X2DtvueZaoJUwELfEY9u v/g33gEIfqA6bS7QFIbOBrSZDXx1GMRtNna5J4PDtDPL2D8CuFUz843l051wX4/V38VmxHi916j7/ mXumrEE2FhhTITDS0JyDUjryzYRmYKMNfCMFfHdMr8Oc8bHo135fpHHRQ+7F0ovOLBegnjnIYmM3G n/o+1Jn0iS0e3/sJn0BibPoVhNSeNL/XSFHqbGd8JjXk0CXZbpJWncRipSJPJyR6fVbz8fRViFTgq digcuhpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sv93P-0000000Fz1j-0jmd; Mon, 30 Sep 2024 05:34:39 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sv8y2-0000000Fxuq-3RzU for linux-arm-kernel@lists.infradead.org; Mon, 30 Sep 2024 05:29:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=GImYgyKuhTe8vzDd78CVY7i6qkN4FcXmNqVhw5tjHzUGtGBPS5I2VYtl3XLJN6DBimsVv0edGAL/XWu7xiMzdYouxvubB4zurXaicTpVufQKtyEPzfGmaWxVV8AIs/1Hdy/b9/FxkP/6xQAypLYb1mbJfixDIre6RO0XJE1ghPMY6KninbnazMmVcm55kD2iKVdfs/oeycuqrDfAbHpo1DwfynFcvYoTgFCuFVDlKcIlub4CXBrBPD05D7i5byBeUobxvt5Jies17tdO9R6fSeZdpzKlqGt4DOipnco0G428Tv/EOYyG3bZL/WImjjVryGCs4dfJpuPmwhOysbgSJQ== 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=yVd0E0lyRBXWkmvGhlNxKECFxaodydKKIACJ94ljdFA=; b=HZFCersSBqaptHVMzAy5tJL5pvqKrlIvW6MPOdRlyHcNTkGeXTuw+AAy5AFE0YyEHOvZU7ELTWxWirclCcKaKCZs3YVUkciQgH6eCyLHlj9Td2Jc71BMCcUdEYnMStWZeAoqx1n6FSKmuP9iPAwB3ctlQJJ2pXujnwp/lWHzKN/S0383eb0POMn4pTQ9lLC+xz69innzHhvCfaMvQr73tFsnL8tvadDN2Dhtde11sDxeTrjur08MSlzA8WTo8xgL6gvy5rUXdYq+mMA8x6rgOGM9yeaOfB5A4anivn6QC4fzxBsDi6f80Ocp0a9DiTwBD3H/d3/5BCPWa4qJpnHZyA== 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=yVd0E0lyRBXWkmvGhlNxKECFxaodydKKIACJ94ljdFA=; b=oSQHzNr6gO48Fuod6Uf8WVMWmfWFyWVNRWxA11ux0m50ftCfX7N+B4BlusuX4SCzxnToxlQYN3YGAXnYvXXwukjetRFr2amwC0NAFK/P671AajWqMFe/g9pQ8xvE328bBeUz5s7cztFQ77DFveiPv/qxDgrIxgU4fw5P966SRTRHWLPW1M2BEmQyRXW7sqBssXKfP5c2/7v2GvPj7OiZgDBx60ziv9JuFwttT7B7RS53wpLtBGjdnukuTUOxFWBFL0CAyv0/nvMHy7h7JPH+pVavVPH1kLqdiBd7GFNryVroKoYBKi7f2jMdAXaWiAxkH5GULTk5FiH2LIBD9zWPWg== 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:02 +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:02 +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 1/8] arm64: dts: imx8mp-skov-revb-mi1010ait-1cp1: Add panel-timing node to panel node Date: Mon, 30 Sep 2024 13:28:56 +0800 Message-Id: <20240930052903.168881-2-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: cd64f7ff-6021-45a9-dc34-08dce110cad4 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: KvS3BYDEV7DbxoGfa68yx9NSrYW/SjORgPIQEabVNTZMHXBxUiXJL6IHSetv9vIUu50NR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qfZsDmuTWV/QLihpgeAV1J/VM8hwvEGmx4+81h48jO8LhWsV3/Gj+ZgFAPolJnDJ9jlEf5dyfexakTM8oiHu/it54adoB0qjwQKfReIe2aYsdqIgSSncScSIejWzBghXop5JymEBR9oWCr8RGvqjpBbLy+QqEsxjw5bHL4+02lLReJZoIG7dgO7HkPm4zVJfiJgB7rZb8g82acgkONdiM9igAp7xBxUtFLdPg9CwFhwap/9VEa3E0Bo5eS9AQajfsGFlgEliVi9ckoxEGBFgU8gB6e0n/9mRgM0irLiLJCWdQ== 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: hplunFajrfo8kZN5EMgwfbWfl0/7ZQTQM8dGveJVbRaaptjUtqhB4BKY0IbvE2McOiMCJKgpe6ACIIEyqydYHnaS5x3ZS9a4CRuWNzwDkV45dTNmsljTxutuFlgM0yVwy+Km1DctDmcRoqvUHXCkp9fYDMP1dqUtOpyP2KAUCpeNzO6D5D2f6VOR0f3ZkbLL/LAHSDvJEU2KBw33BgwI3+rxzLOuz32Oyg5QuluM+D4oI2wFss3+V2gVilBq2NX+wNkwa0MzEeA+nXHJarj5vouOg8VYWK0d+QKRxq2d43N8yqAmcesDPLopf2exiKEppP1Q6PxKUEk0CgOjXHntnb1CClWXxK9t0jLgtR8XjM4RAkfiaXI203sf6KSxkL0L/v+/+GTF5Ys7PDZkaV0kKf+3HO9bJ9ibGB7QcA3nNn466hTjUoqUbRLpXlx/CxrcGn3qpcN2qgcrSgZY6itFoiluzgb4ZfGaCvyzvh0T7XUz0f23ZbW7z9BAug7iOw/306PYkv0ZvoxsjMQPbSFgLOtAGceP7hX/EJP7Zo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-CrossTenant-Network-Message-Id: cd64f7ff-6021-45a9-dc34-08dce110cad4 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:02.0892 (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: gqyfLewFpcRz8ABhAqlSEynp04enz9dsh2soKyOcT4KKKrJ88QKJq/lATY4UXT0zWF6S2maHOqFAPi8S+rfJhw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10536 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240929_222907_114043_77480D4E X-CRM114-Status: GOOD ( 12.58 ) 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 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 --- .../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>;