From nobody Thu Oct 2 20:45:48 2025 Received: from out-173.mta1.migadu.com (out-173.mta1.migadu.com [95.215.58.173]) (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 13B1721C16A for ; Thu, 11 Sep 2025 03:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757560134; cv=none; b=ciSGX+Z9u2qsL4HFULY1WIzYhneZBqFMYm5Br8pbOz9/HTjMhz3F3af3rk3m7Oe9aA4tUBdf/UjLM4vZH5FuNjyi3O/rV2HFeOgZ2Vu0WTTSzDa1O1LyDsWJ1TVZV9m2E1j4oLs0NT79M1Ac6bmyJlrOc+o4ggZJdWb6ShMDyKk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757560134; c=relaxed/simple; bh=7gkznN0/jOYqfz2cfHc9StQSeywJpPSlmCquxcJhQYk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IOPFcZ2kkFJmN7go00MhXK5xx59czU2BcyP1fgO6WhxYRsZzUHMLpilTsILfxLHRFPJC8Tb214Z3UQNjnjU9iUqDLEzsud3U1+OdJTlZnCb76fJ17TJ4oWWvStDc8HotIyebP0C8yuO3NBVaT6LmaVdzHlMq4lRQ/lwWrMrEqS8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org; spf=pass smtp.mailfrom=postmarketos.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b=hSy89b1O; arc=none smtp.client-ip=95.215.58.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=postmarketos.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=postmarketos.org header.i=@postmarketos.org header.b="hSy89b1O" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=key1; t=1757560129; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=my4VXG33o5/UipCKkCc2ACdG1828cAAulDjIp55a/1U=; b=hSy89b1OYVy9/X5sz3WKDNIgyCSM14mLdo+yYboX5eaX9dOJekC9ZXESlNwGUg/wo/Gyej IJpVrkg8wLFGvbwGMtp7FaA+DceHR1U3LZqTiY7E0SyihG+HN4+QOvj3J2H+gOAVM5HdKb xIX+WHhqu7C5rS5+9I4dTkLgl4vpFfCu5YDLh3FHIBWt+NWp7PC0VaZRUj7mnWbpiBfnrF dzy7tL+CMgRvSvw0ONGYbrFnTdqitwR0e/J+fNZzPl/+77ZnG8aiANZenyFqixwxH4DVIt 5o3DMQi5sVjZCw93mxk2owBRcyjT8rK0qjxJf2F7SQhvp06qwqK0L6Hz9U0dPw== From: Paul Sajna Date: Wed, 10 Sep 2025 20:08:20 -0700 Subject: [PATCH 1/3] drm/panel: Add LG SW49410 Panel Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250910-judyln-panel-v1-1-825c74403bbb@postmarketos.org> References: <20250910-judyln-panel-v1-0-825c74403bbb@postmarketos.org> In-Reply-To: <20250910-judyln-panel-v1-0-825c74403bbb@postmarketos.org> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, David Heidelberg , Amir Dahan , Paul Sajna X-Developer-Signature: v=1; a=ed25519-sha256; t=1757560120; l=20553; i=sajattack@postmarketos.org; s=20250422; h=from:subject:message-id; bh=KVV4fd5h8tr00JFWK8SRYbXnEMB5hthGG+crcXG74/Y=; b=nnFDeKrPhXxOYKWJHamjNuTq04e9UupundkssnDCiilyX3ZMzmxnJCZpQBqlYbko4yCVa9VOu f8TYRjd3Aw4AqZf+2uwHkdX2joyrpaZdt8AjGqCcVOKOpdBOvnoZvUF X-Developer-Key: i=sajattack@postmarketos.org; a=ed25519; pk=TwacvEOiRJ2P2oAdEqIDrtQTL18QS4FfcHfP/zNsxkQ= X-Migadu-Flow: FLOW_OUT From: Amir Dahan Added panel driver used by LG G7 ThinQ (judyln) Signed-off-by: Amir Dahan Signed-off-by: Paul Sajna Co-authored-by: Paul Sajna --- drivers/gpu/drm/panel/Kconfig | 14 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-lg-sw49410.c | 513 +++++++++++++++++++++++++++= ++++ 3 files changed, 528 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index cfebb08e8a62680a14a500d28decfafc2daf743a..48144848c8d3282d231d7495d69= 4381456dde63b 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -406,6 +406,20 @@ config DRM_PANEL_LG_SW43408 pixel. It provides a MIPI DSI interface to the host and has a built-in LED backlight. =20 +config DRM_PANEL_LG_SW49410 + tristate "LG SW49410 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_DISPLAY_DSC_HELPER + select DRM_DISPLAY_DP_HELPER + select DRM_DISPLAY_HELPER + help + Say Y here if you want to enable support for LG sw49410 panel. + The panel has a 1440x3120@60Hz resolution and uses 24 bit RGB per + pixel. It provides a MIPI DSI interface to the host and has a + built-in LED backlight. + config DRM_PANEL_MAGNACHIP_D53E6EA8966 tristate "Magnachip D53E6EA8966 DSI panel" depends on OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 714cbac830e3f0be3659f1907c5dbacef863bbd8..f7f6d232ad9c7163f328d94f446= 1fcb3379f998b 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -41,6 +41,7 @@ obj-$(CONFIG_DRM_PANEL_LINCOLNTECH_LCD197) +=3D panel-lin= colntech-lcd197.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) +=3D panel-lg-lb035q02.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) +=3D panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_LG_SW43408) +=3D panel-lg-sw43408.o +obj-$(CONFIG_DRM_PANEL_LG_SW49410) +=3D panel-lg-sw49410.o obj-$(CONFIG_DRM_PANEL_MAGNACHIP_D53E6EA8966) +=3D panel-magnachip-d53e6ea= 8966.o obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) +=3D panel-nec-nl8048hl11.o obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3051D) +=3D panel-newvision-nv3051d.o diff --git a/drivers/gpu/drm/panel/panel-lg-sw49410.c b/drivers/gpu/drm/pan= el/panel-lg-sw49410.c new file mode 100644 index 0000000000000000000000000000000000000000..1243577f9280ecf3e906d2ad001= c6c313b3af495 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-lg-sw49410.c @@ -0,0 +1,513 @@ +// SPDX-License-Identifier: GPL-2.0-only +// Generated with linux-mdss-dsi-panel-driver-generator from vendor device= tree: +// Copyright (c) 2025, The Linux Foundation. All rights reserved. + +#include +#include +#include +#include +#include +#include + +#include