From patchwork Fri Jul 26 06:50:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13742403 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 9F7E4C3DA49 for ; Fri, 26 Jul 2024 06:51:05 +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: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=49Wf9uGevXP/V2CbnDdnacO7G3O4CTmL/fdgQijpdx8=; b=sVQUFOxP58mnZ350K8FpRJZpng 4zsYL2/Tg/G2ufmnusOWeqHVdRMFoxW1x1/XgCYFvze3O1yv6WFjfZPhmKgp7alS5a7VKzLeDvdVn teG/QVevrlPmxgP2XzaPDDDexGNff9d10QAFiGHOyNNLTzYb5jmSv20r7W787qpIu95Vmvfqol4Vv 0i5sooyiGd8mazQ7bhHYU/SAWWVP4cf88op6CC0JE90hne71JGQGzZLapEXMJjV1lMHa1EYo7R9le C5sX587rz/XiX+zTEy/2GDyt+40QtasXH6VzbfZD3HJDHl9GFwuBrgecBtn0U8T47IHlKWAvgHq3H 5EZ1Itqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXEmu-000000035BJ-39jM; Fri, 26 Jul 2024 06:50:48 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXEmV-0000000353m-3Yxj for linux-arm-kernel@lists.infradead.org; Fri, 26 Jul 2024 06:50:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Edc4i34XqO37wLn3aTFxMiqyU2fJSuEX+maRJSFqQfNgy/voru1qSJwujk9GtFbxHMAJKE7KaAEunICY58K7/4hSWg6qoECtkImVBCRgaT0PXKXF9ZiPI4whd926SrU5yFfSyWdUG6rw45+1RjSI3lACXVPfOz5zYqKoRr+6Wu8S0NLqGhbXmb1VD/7Rap++lp7OfighxIL3tl6e5CNfFr00eUZiLNrNEF+E2v0uu3Tl/XtqpKkIzWODxYUkGu5fLSbvNlOVt1JpFMqI1TICmmWdkpKaqtEXx8rm19njb/ZDs/yNFmn2odLpzRACh+msiVetcuzpyDee03z6O/pbMA== 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=49Wf9uGevXP/V2CbnDdnacO7G3O4CTmL/fdgQijpdx8=; b=ySvKk3oDoeC0uDfjfT/UCr4FG1QA4yO6htdKe1kD8jvrlmqi+GYR4XZ73gY4zryNQ7A5BCDuZ9KzITHiBrKr/oQ2z44zr9QVy7LsfgiqIM6GI4+1aEQPvUQfZhotuHp75CCBWcUV5+ia9MxWByp6FZ0SPdzVbvVmJfjNqMqXUpeG9uY99C2rwztDNCAoNvT7nlRulDGTwIqhGhU5/LTvwAyBxEXQ3XEIlWgZuY2leoXZaSTmU448Hzujv6frRKmwQUde7kOD/0RPD83EHjREx8J6w7LbIr1CwnUialN8vwJzde5Dee5wY7Dak446tVWHJRu/0hFDeYVZcu4gFO9fGg== 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=49Wf9uGevXP/V2CbnDdnacO7G3O4CTmL/fdgQijpdx8=; b=CAuXMEtt0+RlFCCN4ypPDIQYLV5Yq2/BJTh+BesvcjxSOOOwZqnmXnx9o6EGEGWrrvJuT0gic5bydqnjX6tdBW7pbO1Tb/Ofp6PG5kPmG6qo6hKwKRiTuAaqrcptp0ZOSptm6AFWGputiaY3vdTlu3uXuTiUxpD6eZb2fVdATb9/JDpvq9I3mWKh8wVhDDiedWZ57xOphXgWQ9vIWfo/8q236o5PqlXB0L67CRLNGSCX/+JcseaOixmTKctlSLt6MnzmGSULCterSFO4WFr1mVgw+5JdXo4BN/4KfkZjdKVGtNt55Y/moa4izOYRKaIpXf4RoihDcy5hmqjuswjpFw== 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 DB9PR04MB9775.eurprd04.prod.outlook.com (2603:10a6:10:4ce::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.29; Fri, 26 Jul 2024 06:50:15 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%2]) with mapi id 15.20.7784.020; Fri, 26 Jul 2024 06:50:14 +0000 From: Liu Ying To: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, saravanak@google.com Subject: [RFC PATCH] ARM: dts: imx53-qsb: Add MCIMX-LVDS1 display module support Date: Fri, 26 Jul 2024 14:50:12 +0800 Message-Id: <20240726065012.618606-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR02CA0043.apcprd02.prod.outlook.com (2603:1096:4:196::12) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DB9PR04MB9775:EE_ X-MS-Office365-Filtering-Correlation-Id: f877974c-56f9-4925-9eb0-08dcad3f33f6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|52116014|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: C/3n1W6g3693pVTiPMk08aG8Hj1/tMYB9Kq+Z1JGoSyZ/dBq0l0VwculmgUrQLcCd/JfRPlQPLh7SHih0fS313vxTCLwWpu65PnGHI7dd8rYrn9U3xAVDF8nE/Va4S9+HWhYf29LK64meCgMOm7YBEY+QifkUP2rr93YQAfetoOA0GUjMs0ezOL8HHt4ihH8SUjOA/zl9d6NYBAFlRxhO65aV4UhfMVQBULVK6MA6h4CnMcmjupQuuhzfl4G1FVB7jhjmlTKMFQU3uqVUxeb8gWTksSbO3UFhEMxq4GSyxAoawWrNk8mT0ltXl7Rre0g7LhM5GGKy1qqcHanucNtV9KevPaN6Lk3Jj79o7TGU+yExCUZLtjUtNO4qbneUmFqi8yoXxkpbNS8jnqFlpU+Jl/2dTQTV2uuUJ3ta4OmmxrBo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MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(52116014)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /3BE7ZpKz5WZFt2dF4qNQ8VhLUvPCB/1UF4q3Nd98LUSs2zeDwQGveb+tmuLDDreh+cVvzCjadeu+QjvvGPIGq+BSe/QX1SqH9Y2AQo5enqVgsD5ZvlbCiSfo+9sHTdocg+1coeS7b96DilEVETmWqDLJb6WuBWhUs3VqLIstmUBHF7kgRpjOW1qGt3gaJygWS0Im9FcQG5aryyo6HA+BWk9jX8QTzMKLLd5fZ/EBxEwMkumdhvKVA+kQznAeziF9LohJ64Tq+zTBAFP7CyxZn0YsBfEx965eTyHJV19Q5YDTLeiVnPR1srKPwIaR7ltej/w3U9SHU9zZ+zXn7k5jkXhuQUUk/Mr2mM3ah/DoAZcjb9txrB3jIjJut3VJqal474ZRrb8i8RXhkTgy+tJ6/RFVfY+s2naDqF/ZwMJv7j/LE2zGXjY4e76PNmtKJROFIGz4U577tx6lvlS83EgAv7I/Y1YpBioDbyKhGOycpe0IHzKE5LBXa/TKARD9H+FAK5rVBBy9wf0FcOGS0T2q+57HOzBC1yri9fAb0pQs48Qey7s6e8mihQFgLLK6USXivYnehjw5NMQyaELZ9dP620wxVHijQgdS4+1NwMxyn0nakUB3tDaYQOLY9l/bcPYXOT3TicXV0aF8iWGyv3tgYQEU1H/TBWOw0SIkIfsBO7ziGjktUm5Ix8vBt0lQDRKOQrBMeG+xDxEhYvmPuJq041q11b7iTrEfMpZ8Ogq67uw1MQbn+GQvf0cSSQ7qW8Si1Z+jHG20uiYlGTuXtthxf6dbGyUMoAY1iGMeDvHeUU/mBZ9yJaJJqgYDtXPCQyK3vmj0sr4QTmMyyefC8rIXFe4pYNdWFkGeDlCVd+Fat4hDUfVHqSqZYvOAsVHDQIDi44v9Qe+Y7hNiClDe6MctlnYDBE4IXntNI9jGNhJFFCMRLvcsk3z95RQXnywOeUi9wVXR4gt8MDft4lB1GodMKW3rdgL/4iI8VPhrPij3etZIL0kCABdEG3R1AwjvaD4IO0XSj5bzN5+yFFrhn7Is508E/x21ALpD58KEquV64cuifDGQXy49bk9LROHJgU01aqfFEujbivS2nRSDd6BRpikrgNtf32BIujvP14r8fgDHW70BqxVwp3mfYUdaYA654re1BH7HYJt/KbWT5eZsn9sO/zdW7fUmm4vzu0vO5oIxlV6jgmbulEHHuGP1lZlh8zw2Ayy1JIGdIPpjWHj8h4cXXu1AQXgo9XDke4OZvmd9Xfh2O2uu3Ay2gbijkGPHXC6P6m2yQQsImIECOTWHmSGyTB9gKZq+emlqYWfCmmoix33zrZjRlIudPqITukx1TzVxlthBhWkDvRFL28jIFeQgTlBrDiaKCCJRcL6pvwTRPBi6hwptjunkMgtsgGuIy93cTRLxu4hB/oYrcpgW5+XkUHFOVx+Wmh2SE+A2xFI5zT1zj3uTqxM616WGTrwyNaphoAIA5duqjgSrSzLaHkgaOC+FyMooYB1vc4LCi0Hz3dvZ72TfYb8mE1w9UIA1EftISCiJpN+CiTPcCBVhrgcjcREdMQf6Nzz5MPSl6gmmEh5lGc+exsraEPZHUmo X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f877974c-56f9-4925-9eb0-08dcad3f33f6 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2024 06:50:14.7889 (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: 3Uih8CVvpSkya9BgEoD8liHv1F3K3Mxjr0HYmPWFW90c/eEX+T1NStkgZgLIw1qVlpceMR5OkDZjzydv2xJw2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9775 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240725_235023_901906_4A29CF60 X-CRM114-Status: GOOD ( 17.89 ) 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 MCIMX-LVDS1[1] display module integrates a HannStar HSD100PXN1 LVDS display panel and a touch IC. Add an overlay to support the LVDS panel on i.MX53 QSB / QSRB platforms. [1] https://www.nxp.com/part/MCIMX-LVDS1 Signed-off-by: Liu Ying --- I mark RFC in patch subject prefix because if the DT overlay is used, both ldb and panel devices end up as devices deferred. However, if the DT overlay is not used and the devices are defined in imx53-qsb-common.dtsi, then they can be probed ok. With a dev_err_probe() added to imx_ldb_probe() in imx-ldb.c, devices_deferred indicates 53fa8008.ldb and panel-lvds kind of depend on each other. root@imx53qsb:~# cat /sys/kernel/debug/devices_deferred 53fa8008.ldb imx-ldb: failed to find panel or bridge for channel0 panel-lvds platform: wait for supplier /soc/bus@50000000/ldb@53fa8008/lvds-channel@0 It looks like the issue is related to fw_devlink, because if "fw_devlink=off" is added to kernel bootup command line, then the issue doesn't happen. Saravana, DT folks, any ideas? Thanks. arch/arm/boot/dts/nxp/imx/Makefile | 4 ++ .../boot/dts/nxp/imx/imx53-qsb-common.dtsi | 4 +- .../dts/nxp/imx/imx53-qsb-mcimx-lvds1.dtso | 43 +++++++++++++++++++ 3 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 arch/arm/boot/dts/nxp/imx/imx53-qsb-mcimx-lvds1.dtso diff --git a/arch/arm/boot/dts/nxp/imx/Makefile b/arch/arm/boot/dts/nxp/imx/Makefile index 92e291603ea1..7116889e1515 100644 --- a/arch/arm/boot/dts/nxp/imx/Makefile +++ b/arch/arm/boot/dts/nxp/imx/Makefile @@ -46,8 +46,10 @@ dtb-$(CONFIG_SOC_IMX53) += \ imx53-ppd.dtb \ imx53-qsb.dtb \ imx53-qsb-hdmi.dtb \ + imx53-qsb-mcimx-lvds1.dtb \ imx53-qsrb.dtb \ imx53-qsrb-hdmi.dtb \ + imx53-qsrb-mcimx-lvds1.dtb \ imx53-sk-imx53.dtb \ imx53-sk-imx53-atm0700d4-lvds.dtb \ imx53-sk-imx53-atm0700d4-rgb.dtb \ @@ -57,7 +59,9 @@ dtb-$(CONFIG_SOC_IMX53) += \ imx53-usbarmory.dtb \ imx53-voipac-bsb.dtb imx53-qsb-hdmi-dtbs := imx53-qsb.dtb imx53-qsb-hdmi.dtbo +imx53-qsb-mcimx-lvds1-dtbs := imx53-qsb.dtb imx53-qsb-mcimx-lvds1.dtbo imx53-qsrb-hdmi-dtbs := imx53-qsrb.dtb imx53-qsb-hdmi.dtbo +imx53-qsrb-mcimx-lvds1-dtbs := imx53-qsrb.dtb imx53-qsb-mcimx-lvds1.dtbo dtb-$(CONFIG_SOC_IMX6Q) += \ imx6dl-alti6p.dtb \ imx6dl-apf6dev.dtb \ diff --git a/arch/arm/boot/dts/nxp/imx/imx53-qsb-common.dtsi b/arch/arm/boot/dts/nxp/imx/imx53-qsb-common.dtsi index 05d7a462ea25..430792a91ccf 100644 --- a/arch/arm/boot/dts/nxp/imx/imx53-qsb-common.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx53-qsb-common.dtsi @@ -16,7 +16,7 @@ memory@70000000 { <0xb0000000 0x20000000>; }; - backlight_parallel: backlight-parallel { + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm2 0 5000000 0>; brightness-levels = <0 4 8 16 32 64 128 255>; @@ -89,7 +89,7 @@ panel_dpi: panel { compatible = "sii,43wvf1g"; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_display_power>; - backlight = <&backlight_parallel>; + backlight = <&backlight>; enable-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; port { diff --git a/arch/arm/boot/dts/nxp/imx/imx53-qsb-mcimx-lvds1.dtso b/arch/arm/boot/dts/nxp/imx/imx53-qsb-mcimx-lvds1.dtso new file mode 100644 index 000000000000..27f6bedf3d39 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx53-qsb-mcimx-lvds1.dtso @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +/dts-v1/; +/plugin/; + +&{/} { + panel-lvds { + compatible = "hannstar,hsd100pxn1"; + backlight = <&backlight>; + power-supply = <®_3p2v>; + + port { + panel_lvds_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + }; +}; + +&ldb { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + lvds-channel@0 { + #address-cells = <1>; + #size-cells = <0>; + fsl,data-mapping = "spwg"; + fsl,data-width = <18>; + status = "okay"; + + port@2 { + reg = <2>; + + lvds0_out: endpoint { + remote-endpoint = <&panel_lvds_in>; + }; + }; + }; +};