From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792675407; b=JwPIsISPZhSLo2sLKfKlaOJMBAwUOX5ozGxpCUoyuHJqljc7jfLh2ZoBjNiwhVxYU7PL kZCbqf0ZV7SqDTYeKYdxcXmYD7oTXQbLioszKoIm6Ob1NoZebTAfO191sUHaMTBaMbrs+ bpUUmYuRqbfBrRt3N/MCkmiJZbrUugjCj4KfND+E2uAw3ut7vxxjEVPRH7pnKbreZ+IfF 73fyh/VahSg1BFI0YSaIuzXCrE2zlyPMmnUerBpAw4U6pmNQPDr1NjSj0HIAGXRGN9KXa O9C7tpsRRq0tjfiMYvP/AUDX8r0muO4eUnfM50gVF8wODD2ll473XbcIznT4xGIjHUg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792675407; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=EX/2TnWJjwFB4VaA0G31A4iPoTuIiQg4QIhhFhV1DbY=; b=5Ja9FLDoRet2j926oFA0nWlO6EOv4wtV4ybcAv7PcI+oeQVfjXLYNzrKosjKQTNPTcht d08Nupcy0jRK5Qv+AHP97ApSWzi46WpcPFnph7hO2f1gtjG4jUeVqU3EHRrRSJr/LoLqI VhkemIG/Y6KkUHEtE53b8tp3OlONi1aNBWeKd5J/eFy3/xwWJXVy6N0Sx6gUVj7iaX4Ke utYuFlJ9XBX/XtHUB/UpP7NzV3X9qGDciTbghNbC4hNJl95wOY1JhestSSwbnwxcEXlUU ecMxJtVn2haskkUhzn44Ti/yW55evmMFB322tqIyDXQJmyFSt0q7TnkmllrHnr52Ssg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=qh3TlntW; arc=none smtp.remote-ip=209.85.208.42 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED8BD606A31D for ; Thu, 22 Oct 2026 13:23:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ED8BD606A31D 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, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=qh3TlntW Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-6af9a90e4bbso2127753a12.0 for ; Thu, 22 Oct 2026 06:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1792675405; x=1793280205; 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=EX/2TnWJjwFB4VaA0G31A4iPoTuIiQg4QIhhFhV1DbY=; b=qh3TlntWlpG45lkH7eZMj/ys3WLcUl7JWthErMAJlp0BltEYbsBXe6OTITIUq5ZhgX V9tGxdmBWNIXxIjJUYeByDJA63rLSw/R+3JJSUscLNiY7wXK5LBqjXV24BgjV9dR4veE IBZi9mrTVkLW6LVFZZkiKhcVJSTpwhN3NSyAPprz0iUvS1Tqkuj0w99jZvLUE5tfz1kD CXoLb+o+tJ/Q4m5VO3JT1ZD4kVsHBzm5GIEv9W0LOWLsDgC9JuZDLzxqnL/pfow33dUr Fa1OJRrQfSgHHWiECwJQA8BFlIDhV4ZALB/NdB91dQPWkkxWAEcF37alzE94fMJAcu8A o6Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792675405; x=1793280205; 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=EX/2TnWJjwFB4VaA0G31A4iPoTuIiQg4QIhhFhV1DbY=; b=ad301xj1DO2ZeNPBt85H55uw8SEDmAz9/8hPoqdQXbzr1qCKdcaCuLYtiYXqfhtU88 jPEbPaWWiSnrSQWRfQN9qqzzy6MJuCDrLWE/gp0O/SuPyaenAZZ6geJq24N3Z2Bq7ofk 6mw1xmwkDrPxMV9TyiYSl7cubqSXf0HTCbieGGxwCnlLZTll9OL0C+dFHEJb/CehCJLc yfBNVTVuU2VGJwSoo/zoXw1RFuDoPRQu9HR4rLG94KgjqFs9nBtrzHDGKpRNPs4vx5EI dvFdM/LgEF8+IVESStpCS6vaKKv6swonroHtacKq/0aVobkUnVaVTPeVq9wP/OpG1GzO xEMw== X-Forwarded-Encrypted: i=1; AKwUvBz9wNSFyVV0wGpOtr/B2pjZDev1Kf33rwmpdprWLphFAGvHkn2uaIBY+nDbcx9vGHhN0ZIbRYTUr71L@vger.kernel.org X-Gm-Message-State: AFq9FYJhK6boB10XBfSST8LkBvu8kp6v04888VHxUDvKwq6o1uhiSb++ cUtd45ieq5dEWtxvFnLt1IP89Y/SqsNMlxOydMMHwy2U8LiON4ldwLdU X-Gm-Gg: AYBFou0lECkMhvVTvYpuGYxc0vVCjn4xsdiwsBjS9u07b15f5drZpuQxru7Ci0cHnWb lRANu7iHWkEb1AbtU8M3Foty4oE4BS6hFUyeOY4KuIEEYtNhdrMvBglbp9eRLJKvG629hpE0mIw GclN30WczPrg8UTgfxIqxKFzranMGHaPqOGkN5Sp4HeUnJSNExIG6OGToBSyYrxTHjXRk8GLKuN qKcgAmdSetn+OTIShZg3daB6AbdaPJ2R5dfROPH3fMeU0HW8XV4nf4ZVwrCys+TtcG0gBodawwL QWSXYySIA8Cg9ytu2lgE99OWzYzfIawKc3x2xx24DRvPxFlJYCywyqIROKzwyeVhDuczJk8SV84 nKhPmDlIi3xC24uewOfHRUxs3GmLbK19z3LS2Hfxfya8s+xqv0ospVa8nu18dXPi85RnTtx1ikj gCyuB+3LsXTZz0H44JcU21M3xsNtL40uouR91xbyQuDyBgSfRC3Z5UsNbUwSGS7Ox/d60DSca7P GoQso1cOlGFyQzdXO9SE61otqVXqJBK7gyCs7JJHj12gcmzqD6RMYxcslKNL8lFLc75SYgBXUWh X-Received: by 2002:a05:6402:2b88:b0:6b3:c320:8858 with SMTP id 4fb4d7f45d1cf-6b408eaefa4mr4881926a12.24.1792675405031; Thu, 22 Oct 2026 06:23:25 -0700 (PDT) Received: from xeon ([188.163.112.62]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6b40313074esm1818061a12.27.2026.10.22.06.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 06:23:24 -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 v4 2/7] drm/panel: Add Hitachi TX10D07VM0BAA MIPI DBI Type B panel driver Date: Thu, 22 Oct 2026 16:22:54 +0300 Message-ID: <20261022132259.240717-3-clamor95@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261022132259.240717-1-clamor95@gmail.com> References: <20261022132259.240717-1-clamor95@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 | 14 + drivers/gpu/drm/panel/Makefile | 1 + .../drm/panel/panel-hitachi-tx10d07vm0baa.c | 297 ++++++++++++++++++ 3 files changed, 312 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-hitachi-tx10d07vm0baa.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 53a1fc2913fee..5f68b78526c3e 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -274,6 +274,20 @@ config DRM_PANEL_HIMAX_HX8394 If M is selected the module will be called panel-himax-hx8394. +config DRM_PANEL_HITACHI_TX10D07VM0BAA + tristate "Hitachi TX10D07VM0BAA 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 HITACHI + TX10D07VM0BAA 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-hitachi-tx10d07vm0baa. + config DRM_PANEL_HYDIS_HV101HD1 tristate "Hydis HV101HD1 panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index f2c9c80a218f0..414267a49d922 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -27,6 +27,7 @@ obj-$(CONFIG_DRM_PANEL_HIMAX_HX83112A) += panel-himax-hx83112a.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX83112B) += panel-himax-hx83112b.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX83121A) += panel-himax-hx83121a.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) += panel-himax-hx8394.o +obj-$(CONFIG_DRM_PANEL_HITACHI_TX10D07VM0BAA) += panel-hitachi-tx10d07vm0baa.o obj-$(CONFIG_DRM_PANEL_HYDIS_HV101HD1) += panel-hydis-hv101hd1.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI7807S) += panel-ilitek-ili7807s.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI7836A) += panel-ilitek-ili7836a.o diff --git a/drivers/gpu/drm/panel/panel-hitachi-tx10d07vm0baa.c b/drivers/gpu/drm/panel/panel-hitachi-tx10d07vm0baa.c new file mode 100644 index 0000000000000..83c2af1be9755 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-hitachi-tx10d07vm0baa.c @@ -0,0 +1,297 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include