From patchwork Wed May 8 10:00:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13658357 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 3BA61C19F4F for ; Wed, 8 May 2024 09:53: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=MENN647PXqp/w9yvDGP8Y6BiLOcGnWPJ/wPdC9jQ0DA=; b=R8G7XxFo7SfHKW pqHphKDwFX2vgvy9qkaMxDq1blZ98qitnf9mQ/7fafVCAN+IlUL8QwjQFcUFsmR+BpkbqAqj9sfNS i8ZCZ3Peq4uVOor6NJNBM2pHjvzuZzTn5VzpYQ6qkDdnw3iWE1honozxoWGk5NEPw3R8TasbLlBjp EFfhwnXYLpwygqAx4YaGFCcu0nxUuH7hAffSOoWk+02jp+7huruz5GB1xmDV6dd+NqwfqV42AS9Om 65Ej4sXA3wwHx1Uo0XXFl6+LFTdttajQLhkYPi2e3q+a6K4iGZYpu/FURIwyJvtMQ+PrshMYhYkQf nw2LYI9w5NF39lTytVig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4dye-0000000Epyv-0Dbd; Wed, 08 May 2024 09:52:44 +0000 Received: from mail-am6eur05on20600.outbound.protection.outlook.com ([2a01:111:f403:2612::600] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4dyb-0000000Epwj-1PXs for linux-arm-kernel@lists.infradead.org; Wed, 08 May 2024 09:52:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SCzL+6ZENlM0CVncr+MDW334LZ/lgWzArNCF30e6HbTWXceSHkCP0DP+96Rz7o4YtwgmKi2w7hCND89ahtU0C5rXhhsAGjZPPiqApFKsQvXaOjzEZwlvoWqSYpSvBRcjowZiKLfIzQoWxi7l2QM/VXcRKNEnoiQlOnssH/GaOmXrbjbiPPQd1pyDKPOu8I/P+jg3Q1P9s3ZNtMuEs/kizodw3DXVK1iAtbbOkVhyXxj+U93ZS5iG/3r6BOZIY6fBWZmNWuZ8/msBexWfSft/FMyv25MjucGP05chInVdpMpTjo3W3MZoWk4QA86zXqNdXP6iMSSqik+efShuCKWpgA== 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=Xs98spefrIN/RuSSeBRfeMHEkXHi3HLZNCBM8h1TC74=; b=hTnSDmUmne/0o1Cp+zM6ap4BT1d5FH2zfmToEnmFhDMch2IhWn3mg9XZifiuqRoN/tqwARv2hXgcP7tFnQJFiq6mRKKZqg4Sz38G+cNOPsbLDWyJJC40xYlS15Cli9ffXgQqn06JJAdkwCTK2DAIIXbUznYn6VM6GSkqPzjug1Wx+mGBXCIRV3q7ZVTjQNVx9TuZ6E0YcfxsMwItvl5GPkKJW2CTkmsA7AslPTxwx+iVykwlcMfPlyZmFFu3FEyUHOzNHg5q6VgqLl4S3CebIZJxBPmcZsyixHy6WK5cGq3yGnqKzVBlGTQZ46SttIyeuRLSqeON718RgZ9KLA897Q== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Xs98spefrIN/RuSSeBRfeMHEkXHi3HLZNCBM8h1TC74=; b=klIX2UExd6HTIJQCR3IZPnj79NpSxhOkC/oMazt08Lvnz3PLyybg9NhbNEZ+C3HB6lZprnzvVXSPST9AEhYQsTkXuh3B32UM4N4eQuaNiZIBSVrBvHsURwHgQ1hrvyKI/ukwNpnAIASAY/SkXNe/CcWeRR2msiOWmwdHEGZXmbE= 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 DB8PR04MB7196.eurprd04.prod.outlook.com (2603:10a6:10:123::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.45; Wed, 8 May 2024 09:52: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%3]) with mapi id 15.20.7544.041; Wed, 8 May 2024 09:52:33 +0000 From: Liu Ying To: imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Subject: [PATCH] arm64: dts: imx8mp-evk: Add MX8-DLVDS-LCD1 display module support Date: Wed, 8 May 2024 18:00:13 +0800 Message-Id: <20240508100013.2693440-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI2PR02CA0039.apcprd02.prod.outlook.com (2603:1096:4:196::9) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DB8PR04MB7196:EE_ X-MS-Office365-Filtering-Correlation-Id: 93e8f17d-0c0e-4a82-dea2-08dc6f449556 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|366007|376005|7416005|52116005|38350700005; X-Microsoft-Antispam-Message-Info: O+qHScgnBoW5omal+aP4IJ8RSt0fmFZf/xUWqPcWG3n1WSAAKLacCdoMPGC+ZNI2neIhqd1wHcAH1lAFTWPc1YUl5sOqYodyUlTc6BYHxc7ktvjDU6gYY4I7co+vN/l8WsFf6X7uqWqiVJkokVQl2mMCfIXHQXNIx0IHgCiLkvX7d5FzRGZw3p50bF9CCFk1jkzrFfDJhalQdIBsytAWRymE9pUzH4kwI/xgwXRsW9yeqGj7CeoUSLWrzNdaEiqw7dQlVcYepTe4zHWeTrYESoQhyAOI2hGVQJ1eMEYnYHbe8Pg4SD3bBt2XrmVfAEM7jeGpIdJPMUJY2wl+Ex1RWt2IgzeCc5Uz7Bcr3TqD96khY8v6UL/6bAk8TU4oi+4TyIl1jfHPusy5bgjKQaECQbH4fYo6lLQdmzxyR0lszdG9ALEJCpLo5nBceUNf+l3PtTcBRQuaZVqYfBgSj8qazPSEZ9t8LyDtHVulnSOF+moHBbZWu3i8DpS2ehXIDsuL734cuBxrMtEQXvTxFYGyPNYQp2QMZTE1B0sJvX1TyEc3gl6KKG84zD2sz+Uwcm9Nuumdpon+Kk9xIAiji/HG2OOjIatvctLTFga5a+hI1OSSTVzGVzJdybkmd7F/O3tF8C6Ii9OdpXdN3lHfBcMP2nqZ7Jf+OeoyVclMWJ5Gm6rbqnQqFT/J/3u29g0ubTS0X+B2rWmrDj+93UMYoXZTIe2U1667LsWmB9ORZK2tfygy6YWHYuG/oaOsgWphzg7jQ35e9LyuHWS1wmdnFA+K/244/2hknrXOX25bAX4M6JRbjWxX8hDu87rX8qa92M7q5X8iW8MUGzT21WfA64O79T1DE1kIPsE7dXcGuSEgDjM6YoEv4V1VaoBUf/DE2jCYbp4PwoOYwhZqQHr3kcxpyxGp70LhPfWLAhTqgHHj1+M/Lp67GXjunhq+zeXwHdLPoSrlpID+RLhZU9NZ4SGmV4YP3F9itmzPq4U2keT1IOVTv48ihM0QNKxTP1KWR1P0paS+YkZYYegcBcvk/stm3mebcdtopWnu375K/+OcZ5LE09yyghkkLUaOEtZlUFY+IyTnsBoqziXz54S6T0Afg6PyoPq1E9uMpvjvWY8puccU8srk3bCJs45+JRasYr0owOE+ZPFcx8VtEeaY7XsD+7wpfsg1bgPJMvzatkeGfWqALNsFtiFxiuS3fnUK0AIpYLlaeUZizMnlUtHu70NrorcdqfFu9FDrWxe5wp2dPbTtjYyPM/iA/noaWNW2vWWPJR6RB6f1LNLB+IsOr3hEfgwouauGuR658WURY3ZH/RUkLyx2RBaPQD7ozJK26DRYoh6rB8TOnLxsXYO00MozeA== 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:(13230031)(1800799015)(366007)(376005)(7416005)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GxdI6yqLyZHjyuze89wf1C85roUstk/X9Bm2NpkmT2P4oWhSyOGFcqV5daEhdnAhKIAmc+BatwOlxL349z0JjFNpYp0Ez92D6ef6/aRj3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COhNdXLFDv4if0DWRgYGgp9OUBTdpJqtFIZshx5K+yq4B7ViJKU8NGww4hnw0si/mHBKoRk2RKrSzbzMh1vDxlc21JB2vH8NnojBfTHdiGGeAB/oivhTpGN+dOOYP/IKeSW2HAuduQHGUTGWSvVPjsZuTYacDDCLkFwFMV3qjBVax9qhLM9lZBWC6FM7PlmuqqoEXZFguG5pc1kdKLKi7eGSdEyFQzIdpdjfBnkI92h28OEwNm+pF8kVBMqKHRMcsrrxyKLnsqfhYQsHA4HPC/TpC6Z0/4tDw7HCCJQUFgoPZIUckjBpYlyasYe76XM771J7rV5Q/dyYwtdnuY0toCR1fSKGLUtfqCfU8U8Rn0SuUpNS+NXHeu6i1wsuJJh7tR5cOpxbU+/7Bg9TVO2PbyBbofNcXkQvPM7JwdAS X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 93e8f17d-0c0e-4a82-dea2-08dc6f449556 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2024 09:52:33.5497 (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: jJcqxaETnbicKiefaMDjHatDI8wbdUVdw3ArBYGOIPtYKig2W0ML43pS850RFFy8ViFNhcLtf89fTaB1b+pRvQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7196 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240508_025241_410684_B58EF4ED X-CRM114-Status: GOOD ( 14.90 ) 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 MX8-DLVDS-LCD1 display module integrates a KOE TX26D202VM0BWA LCD panel and a touch IC. Add an overlay to support the LCD panel on i.MX8MP EVK. Specify 148.5MHz clock frequency in panel-timing node to accommodate 3.5-fold 519.75MHz media_ldb clock which is derived from 1.0395GHz video_pll1 clock. Signed-off-by: Liu Ying --- arch/arm64/boot/dts/freescale/Makefile | 3 + .../freescale/imx8mp-evk-mx8-dlvds-lcd1.dtso | 77 +++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 19 +++++ 3 files changed, 99 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-mx8-dlvds-lcd1.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 045250d0a040..005f6c514f44 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -185,6 +185,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-dev.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-mallow.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-yavia.dtb +imx8mp-evk-mx8-dlvds-lcd1-dtbs += imx8mp-evk.dtb imx8mp-evk-mx8-dlvds-lcd1.dtbo +dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-mx8-dlvds-lcd1.dtb + imx8mp-tqma8mpql-mba8mpxl-lvds-dtbs += imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds.dtbo imx8mp-tqma8mpql-mba8mpxl-lvds-g133han01-dtbs += imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-g133han01.dtbo dtb-$(CONFIG_ARCH_MXC) += imx8mp-tqma8mpql-mba8mpxl-lvds.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-mx8-dlvds-lcd1.dtso b/arch/arm64/boot/dts/freescale/imx8mp-evk-mx8-dlvds-lcd1.dtso new file mode 100644 index 000000000000..1b71890d43d5 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-mx8-dlvds-lcd1.dtso @@ -0,0 +1,77 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +/dts-v1/; +/plugin/; + +&{/} { + panel-lvds { + compatible = "koe,tx26d202vm0bwa"; + backlight = <&backlight_lvds>; + power-supply = <®_vext_3v3>; + + panel-timing { + clock-frequency = <148500000>; + hactive = <1920>; + vactive = <1200>; + hfront-porch = <130>; + hback-porch = <70>; + hsync-len = <30>; + vfront-porch = <5>; + vback-porch = <5>; + vsync-len = <5>; + de-active = <1>; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dual-lvds-odd-pixels; + + panel_in_odd: endpoint { + remote-endpoint = <&ldb_lvds_ch0>; + }; + }; + + port@1 { + reg = <1>; + dual-lvds-even-pixels; + + panel_in_even: endpoint { + remote-endpoint = <&ldb_lvds_ch1>; + }; + }; + }; + }; +}; + +&backlight_lvds { + status = "okay"; +}; + +&lcdif2 { + status = "okay"; +}; + +&lvds_bridge { + status = "okay"; + + ports { + port@1 { + ldb_lvds_ch0: endpoint { + remote-endpoint = <&panel_in_odd>; + }; + }; + + port@2 { + ldb_lvds_ch1: endpoint { + remote-endpoint = <&panel_in_even>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index 9beba8d6a0df..1cb71f566b0f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -16,6 +16,16 @@ chosen { stdout-path = &uart2; }; + backlight_lvds: backlight-lvds { + compatible = "pwm-backlight"; + pwms = <&pwm2 0 100000 0>; + brightness-levels = <0 100>; + num-interpolated-steps = <100>; + default-brightness-level = <100>; + power-supply = <®_per_12v>; + status = "disabled"; + }; + hdmi-connector { compatible = "hdmi-connector"; label = "hdmi"; @@ -96,6 +106,15 @@ reg_pcie0: regulator-pcie { enable-active-high; }; + reg_per_12v: regulator-per-12v { + compatible = "regulator-fixed"; + regulator-name = "PER_12V"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + gpio = <&pca6416 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; pinctrl-names = "default";