From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f12.google.com (mail-wm2-f12.google.com [74.125.225.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16FE13C5DDB for ; Sun, 4 Oct 2026 16:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791131515; cv=none; b=NUbp+t7WwTgn4o7kna+keScXkgYcS6HN10Og7ss0s8hMPRc4InROAxLxsx3kWJxxLw7wUE4L/kAxqUg/ieBNoRpqTDPSOQnY2E0Ras8DnMx2HHw31ba8ZGCHqUGUMsbotnoTy1NG2OJZEolBQQ4nyge6HlSnf4LaC3YnSPYE3iw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791131515; c=relaxed/simple; bh=rjx9P8u2OQBh75m88vRSyDlnFb3KTLsJ2xhClRuDYwc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I3IWmsVDjGpr7xnTOAYeCA8fYPMIi6pmnNzcSF++vIpnRm1PVU1ejDy5snoe4qmcY6aD02SA70fvN2QYgwnFKfnfPd3K+ewdT2dT1KVhoj2hv61LDfgjlBdjLRf4eyVF0W1YVyjnvt6GJ6nhZmFxOlILnOmRajLUeFCotYDoziY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TdecQkux; arc=none smtp.client-ip=74.125.225.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TdecQkux" Received: by mail-wm2-f12.google.com with SMTP id 5b1f17b1804b1-49ccf3ca626so7213465e9.0 for ; Sun, 04 Oct 2026 09:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791131500; x=1791736300; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Q+zPMfUMmOUlTJbyvmKPlE1XJl+xCDuNseUrhEUtbX0=; b=TdecQkuxO1KKmNJEv6LnvyarPhRBylL9elksZ7vyI8qkk8/arzPfisMjt8vDqSdSGB or3N+b4teabTztCCkdvcMq4XSe4X3IFUeMTfDICn4G4Vyk/DrkHnU+qiyK7UIHPKNv4r vqLxcCKbYF3VtgkhMHtQwdnChk9VFJlxKJj19TTBVm+/8cEX7GSvj1BEmT/wkn04Wj/B STZ4WM42pvQkGIr3h0Cg+ZZhjfoXI2syceqe/ebCNlerKODGJUxXevv8VtBVHQV2To2h 7MN7n4sbSV1NRXAQdnd5cZ5SV8rZtAdrRL5/sPQOU2FgGrmZVQLgvCPyYQNUwh/Tcl+G u2QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791131500; x=1791736300; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Q+zPMfUMmOUlTJbyvmKPlE1XJl+xCDuNseUrhEUtbX0=; b=B7+ZD987ZVshqN1ZOQtON8pcG04CLBaLu6dSM5ZWrCfS3xGoZZ5E6+2tqYmrpyYMZ1 CXlT9g2uCUZRq/gQ1d4z1rXCRXKAoOxKQ1qAatwnlSuU5vshv1cXKkkZg3kSzW61vk+U /fTCkRQLITMn7bB/HTfyZDF+bTooFG3o9tGFOfEkODTODzLgo6N1RAmsHiCkLUGbV6+u S3HXis3vrnn5Isbv9cDKwZTcdGXGFcRBBDJjuo8sQ74Jog70ZbmrgXDYyIiCjNixKDnb ndYtc4ZMDMH8At/F7x+tYzKtWaRl8w8QeVd3ISfJLTgbZ1U2mAJzYk7LtNnGr9wQPW1r jsiA== X-Forwarded-Encrypted: i=1; AKwUvBz3DKBf71S3FAx8qnULLOIlnL2oPPj9cKMEVlYxtvjytwWoUkCRibZrNxH1BaLT5sMUrXkUl4VJmrp+@vger.kernel.org X-Gm-Message-State: AFuF++lvB/01Htfjd5E+JaXsEjMWhkkl2EvmRv36/tOctYTWfBE/Q4jZ +G6bloCcalxZBoE2fQX1wRVBOAXJjVE7pvhdXhOe/mr5EMtL0uBbIwosotSqnQ== X-Gm-Gg: AYBFou0xbwbAiJhos3RCygIdeY6N9KF/GPSk7CG0qj8AJjd4Ea7QtvjgkXl3mqT/vls q6ngsVb6vKdVVTz/ktVG/HfRQ+5DkXKLCsoBGswR9+F24baBHLxD7n408q8QlkQOjqFeorWb6RA 52U+IsDMQtAplX2BncoVPwN4RhPPlWECJwFzRQb+v+cHlQCaLFk7gRx3oSWdzfMNU5PGTV9+gJD 7o0ZPNAQVr7I2p0K3A3AAvNkoxU07j2tbEqMw+JYOzXOnCbOb68giXCvY4XN7hR4PhQ/oya4q4s i9hsOryAl0kUgLi5y2iKE+a36xS3QRmnjLPwY85/JNm3fQxjCR2eW2RCHhoDKlfXQwXzg5cOBIY K2vp4HphOIY5YlX5sUH6UV+yh0KncS63Sszn6xanvtMpDG9/DFip3C1vkECESNGNfPKD2bJ0mx1 necwzcIUc/k0vtrJua+nIPFMU+/KtYU9Lx3Um/5eXkZn6wVeBYpVW5j9lAamKUAq+sYQYJnbBXN ZWpgFUMEQENTq5HhXxQGC/Lp9tCng== X-Received: by 2002:a05:600c:1394:b0:4a0:1c17:4fb2 with SMTP id 5b1f17b1804b1-4a02759dc21mr154737945e9.31.1791131499953; Sun, 04 Oct 2026 09:31:39 -0700 (PDT) Received: from xeon ([188.163.112.76]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a0316b2524sm315365035e9.1.2026.10.04.09.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Oct 2026 09:31:39 -0700 (PDT) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thierry Reding , Jonathan Hunter , Mikko Perttunen , Svyatoslav Ryhel Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH v2 7/7] drm/panel: Add LG LH400WV3-SD04 MIPI DBI Type B panel driver Date: Sun, 4 Oct 2026 19:31:14 +0300 Message-ID: <20261004163114.181800-8-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261004163114.181800-1-clamor95@gmail.com> References: <20261004163114.181800-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a driver for panel used in LG Optimus 2X P990. Panel is 4" WVGA MIPI DBI Type B linked to DRM encoder via RGB to DBI bridge. Signed-off-by: Svyatoslav Ryhel --- drivers/gpu/drm/panel/Kconfig | 13 ++ drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-lg-lh400wv3.c | 236 ++++++++++++++++++++++ 3 files changed, 250 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-lg-lh400wv3.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index f9e4441dad1c0..0d3845c9bd477 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -553,6 +553,19 @@ config DRM_PANEL_LG_LG4573 Say Y here if you want to enable support for LG4573 RGB panel. To compile this driver as a module, choose M here. +config DRM_PANEL_LG_LH400WV3 + tristate "LG LH400WV3 MIPI DBI Type B panel" + depends on OF + depends on BACKLIGHT_CLASS_DEVICE + select DRM_MIPI_DBI + select VIDEOMODE_HELPERS + help + Say Y here if you want to enable support for the LG LH400WV3 MIPI + DBI Type B panel found in the LG Optimus 2X P990 smartphone. + + To compile this driver as a module, choose M here: the module will + be called panel-lg-lh400wv3. + config DRM_PANEL_LG_SW43408 tristate "LG SW43408 panel" depends on GPIOLIB diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 414267a49d922..842a2a973777f 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -54,6 +54,7 @@ obj-$(CONFIG_DRM_PANEL_LINCOLNTECH_LCD197) += panel-lincolntech-lcd197.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o obj-$(CONFIG_DRM_PANEL_LG_LD070WX3) += panel-lg-ld070wx3.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o +obj-$(CONFIG_DRM_PANEL_LG_LH400WV3) += panel-lg-lh400wv3.o obj-$(CONFIG_DRM_PANEL_LG_SW43408) += panel-lg-sw43408.o obj-$(CONFIG_DRM_PANEL_LXD_M9189A) += panel-lxd-m9189a.o obj-$(CONFIG_DRM_PANEL_MAGNACHIP_D53E6EA8966) += panel-magnachip-d53e6ea8966.o diff --git a/drivers/gpu/drm/panel/panel-lg-lh400wv3.c b/drivers/gpu/drm/panel/panel-lg-lh400wv3.c new file mode 100644 index 0000000000000..cb2a09699fc6d --- /dev/null +++ b/drivers/gpu/drm/panel/panel-lg-lh400wv3.c @@ -0,0 +1,236 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include