From nobody Thu Oct 2 07:43:55 2025 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 D64B231B128 for ; Fri, 19 Sep 2025 15:39:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758296354; cv=none; b=L81EDMjjm4KJ6BOtUHzlFfrk5MN/eFxrgpuPRGK59JsM+9ZN8HJQXfi8tnRwA5pELlkjQPUt0cPMMB+9A2zketDgu1zOipCkz6lLJ3E649UAlvqJF/HV+sgck12Rp0oMToQHaZiWDjn5os3fsMCPaEdvI6yD9gK/pmW3XRXs2KY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758296354; c=relaxed/simple; bh=86WXS9lP0SG30gZYq5CnNwv2T0FnEVo/IgAB4nzDdlU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rR+GvgQOyVV5hkE++Eg3jopY7htOvLrzAGeRsm98XKsj3sv5zL5IBr2MPCEwW1IIgrWPxcQveKCjMm7kKopeiSm8Nz354Ja7mcFmUKJNlcO8nti041THEhj3me77EqRl3k3caQnQT79Xs2T7UzJM1XLrA1pjc0hK+26KG8nbtJQ= 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=Rd8eEh7e; arc=none smtp.client-ip=209.85.167.43 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="Rd8eEh7e" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-57b35e176dbso45149e87.1 for ; Fri, 19 Sep 2025 08:39:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758296351; x=1758901151; 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; bh=ozGRK/lcNTXqKTfVfxOg4AENasqLy/jB/aKQu5LHALg=; b=Rd8eEh7ey/WkJsoq3jiEv832dPgWPNdDBB853p/ma6rMixo44BI1V0ImgHulvMoRns 5W5LyMpvB5idOzY+QzkkLjkWLYlroCfviqLgOj541hgoTjn1ngJ8dcAZgJEMfE5/iZxo 1uDTXhBGXbPRGDJKoEfcj3/c1OksRkQqdarHXVftjFXZySsFr0FjyNPGTch/72N6D3UM 4EmDA2F0UFa1HjOEYe5fwTHsxziiA49RfTs+qIMlB2GcQ7NNNWZap2e5oS7SFgQ03Vmv w08EvEef/ivpf/OkwtujhcZu8Fl46hz1cq3uDDdXu36KbQpfoUrpJ214oeqaKO3vMZyw sCZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758296351; x=1758901151; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ozGRK/lcNTXqKTfVfxOg4AENasqLy/jB/aKQu5LHALg=; b=JawkKbbeeRSvb0T2mgZ10re9TSpziDHCcHj2CSMWgBxT4AzqnnrdRt6/Fc2qNyC1Mn 0OLWXRvAexXiRDaY3d8bjirrSrpuKzmF59zWIu4bUmod4jwA87E219RwlI0SA7RcFxhl tJfsdS7jGbRh4FUS2azGnMY4qjNZ5oLmAsI7yq4tltyDmIEJh+ZHb8V83a+uaFjlhCWk ZHbIWtVnepr+Bc7OBDtkcLPiHjF+EtATqahxFYC/ffB2v4qnnZPuZCGkWvELjnwsdz4E 3Lp7w5DAenIa8ufwXK0YGB7STYGP4/JR4ycyXx8BLVEi2SlP5kqyzL8B8pkKiQqEx82E qSRA== X-Forwarded-Encrypted: i=1; AJvYcCWGbzor/50iFMNaAh2K92lWl6RKyuaLqa0v0XajkurDUAh2tSXyEjR/Wh17q5S70BSmH3OgcP1zJgWD04M=@vger.kernel.org X-Gm-Message-State: AOJu0YzNarWtzzq/WhhHv+ITUeTA2NtySDJIYIDp3MBobSRev3GLhkyJ faHplErQQq699ciqpxo5ZiqBiaB0bog9bCXYInsSjkv2Hq+aj3QXDNJC X-Gm-Gg: ASbGncuIMqODUSM97No2kDCWeJJ5kgutOwJCyIrEayW4gYpbi9hpBAxAIZ2l87QTczN V2U/+sffJGmdjXzZlaLQvyY6crGrQ1b5KLVECeDFkWIIpuX1kBdfzmhKRAH2lqmZWHPOj8lydJA RBnSBE15Kr/j2eQuvaGa7LqebVAut12pyaqYtzq3lR46K4hvf1C+q3XyVtvA7uZTtHP2yhbWMVj apGOZ16bewaac6WUrpR+pQXniTeDYW6ur8rkw5i1e3jTBnyJ7oXXBqFsfbXZyhByBAd4+G6ayJd sMGf/BOKOFJ/pzpRnquQzZn0e0T4iZ/TWMJGPHEYYz9ORLw1L4WDIqRxVrtqeTLC2WgnT/8Mwr/ TYfSKNq2OT/HBQQ== X-Google-Smtp-Source: AGHT+IEk9Rm+m+Dotob+wF4upJ7TYkn5JaaQVEGQ0Fd5BVKaUqFFF/how5al8ALh6tCrm5Y6gZHJgQ== X-Received: by 2002:a05:6512:134e:b0:572:1f0b:5ee2 with SMTP id 2adb3069b0e04-579e25fe471mr1393145e87.43.1758296350590; Fri, 19 Sep 2025 08:39:10 -0700 (PDT) Received: from xeon.. ([188.163.112.70]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-578a5f44771sm1485769e87.20.2025.09.19.08.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Sep 2025 08:39:10 -0700 (PDT) From: Svyatoslav Ryhel To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Svyatoslav Ryhel Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/2] gpu/drm: panel: Add Sharp LQ079L1SX01 panel support Date: Fri, 19 Sep 2025 18:38:39 +0300 Message-ID: <20250919153839.236241-3-clamor95@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250919153839.236241-1-clamor95@gmail.com> References: <20250919153839.236241-1-clamor95@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This panel requires dual-channel mode. The device accepts video-mode data on 8 lanes and will therefore need a dual-channel DSI controller. The two interfaces that make up this device need to be instantiated in the controllers that gang up to provide the dual-channel DSI host. Signed-off-by: Svyatoslav Ryhel Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/panel/Kconfig | 15 ++ drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-sharp-lq079l1sx01.c | 225 ++++++++++++++++++ 3 files changed, 241 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-sharp-lq079l1sx01.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 407c5f6a268b..045ffb2ccd0f 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -888,6 +888,21 @@ config DRM_PANEL_SEIKO_43WVF1G Say Y here if you want to enable support for the Seiko 43WVF1G controller for 800x480 LCD panels =20 +config DRM_PANEL_SHARP_LQ079L1SX01 + tristate "Sharp LQ079L1SX01 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select VIDEOMODE_HELPERS + help + Say Y here if you want to enable support for Sharp LQ079L1SX01 + TFT-LCD modules. The panel has a 2560x1600 resolution and uses + 24 bit RGB per pixel. It provides a dual MIPI DSI interface to + the host. + + To compile this driver as a module, choose M here: the module + will be called panel-sharp-lq079l1sx01. + config DRM_PANEL_SHARP_LQ101R1SX01 tristate "Sharp LQ101R1SX01 panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 3615a761b44f..0356775a443a 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -91,6 +91,7 @@ obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA0) +=3D panel-samsun= g-s6e8aa0.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_S6E8AA5X01_AMS561RA01) +=3D panel-samsung-s= 6e8aa5x01-ams561ra01.o obj-$(CONFIG_DRM_PANEL_SAMSUNG_SOFEF00) +=3D panel-samsung-sofef00.o obj-$(CONFIG_DRM_PANEL_SEIKO_43WVF1G) +=3D panel-seiko-43wvf1g.o +obj-$(CONFIG_DRM_PANEL_SHARP_LQ079L1SX01) +=3D panel-sharp-lq079l1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LQ101R1SX01) +=3D panel-sharp-lq101r1sx01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS037V7DW01) +=3D panel-sharp-ls037v7dw01.o obj-$(CONFIG_DRM_PANEL_SHARP_LS043T1LE01) +=3D panel-sharp-ls043t1le01.o diff --git a/drivers/gpu/drm/panel/panel-sharp-lq079l1sx01.c b/drivers/gpu/= drm/panel/panel-sharp-lq079l1sx01.c new file mode 100644 index 000000000000..8c00fde1c4a9 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-sharp-lq079l1sx01.c @@ -0,0 +1,225 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2016 XiaoMi, Inc. + * Copyright (c) 2024 Svyatoslav Ryhel + */ + +#include +#include +#include +#include +#include +#include + +#include