From: Venkat Yadlapati Date: Mon, 16 Nov 2026 13:10:13 +0530 Subject: [PATCH v2 2/2] drm/panel: Add Ilitek ILI97680A DSC command mode panel driver MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261116-vantage-panel-v2-2-e2ab48645e2c@yahoo.com> References: <20261116-vantage-panel-v2-0-e2ab48645e2c@yahoo.com> In-Reply-To: <20261116-vantage-panel-v2-0-e2ab48645e2c@yahoo.com> To: Venkat Yadlapati , Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794814811; l=24564; i=venkat.yadlapati@yahoo.com; s=20261023; h=from:subject:message-id; bh=rjks1WaUFG1tSSADM6hxDU6nxQN8DAaPKVrlMMeE2Dk=; b=KG8CHfTxo4LX5XKJ+Y8igxWpiH8vqOq9N5A+6B+sm0pp1gkw51a9gmsfMy0zBvfa4bCYd+5u+ LH2yJlEqCk8BnB0GHwTTu9I8Hw8gdHS0lK47KqpYA5sNGlEvl5DGv59 X-Developer-Key: i=venkat.yadlapati@yahoo.com; a=ed25519; pk=e8KStCtEMvUP1Se/riB/KVnDAQFEVR2Dw2PcuA8/eME= X-Endpoint-Received: by B4 Relay for venkat.yadlapati@yahoo.com/20261023 with auth_id=1303 List-Id: B4 Relay Submissions Add a driver for the 1264x2780 BOE AMOLED panel driven by an Ilitek ILI97680A, found in the Motorola Signature. The panel runs in DSI command mode on four lanes with DSC 1.2 at 10 bits per component and 8 bits per pixel, two 632x20 slices per line. The picture parameter set is not taken from the standard DSC PPS packet but written to a vendor register on command page 7. Brightness is controlled through DCS with a range of 0 to 16180. Assisted-by: LLM Signed-off-by: Venkat Yadlapati --- drivers/gpu/drm/panel/Kconfig | 16 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili97680a.c | 494 +++++++++++++++++++++++++ 3 files changed, 511 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 26ffa2378f55..070f152f01e2 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -353,6 +353,22 @@ config DRM_PANEL_ILITEK_ILI9488 Say Y if you want to enable support for panels based on the Ilitek ILI9488 controller. +config DRM_PANEL_ILITEK_ILI97680A + tristate "Ilitek ILI97680A-based DSC command mode panels" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_DISPLAY_DSC_HELPER + select DRM_DISPLAY_HELPER + help + Say Y here if you want to enable support for Ilitek ILI97680A-based + DSI command mode panels with DSC, such as the 1264x2780 BOE panel in + the Motorola Signature. The panel is driven in command mode with + Display Stream Compression and its brightness is controlled over DCS. + + To compile this driver as a module, choose M here: the module + will be called panel-ilitek-ili97680a. + config DRM_PANEL_ILITEK_ILI9805 tristate "Ilitek ILI9805-based panels" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 365f2e73f6b4..3ac5685662e3 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -34,6 +34,7 @@ obj-$(CONFIG_DRM_PANEL_ILITEK_ILI7836A) += panel-ilitek-ili7836a.o obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) += panel-ilitek-ili9322.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9341) += panel-ilitek-ili9341.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9488) += panel-ilitek-ili9488.o +obj-$(CONFIG_DRM_PANEL_ILITEK_ILI97680A) += panel-ilitek-ili97680a.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9805) += panel-ilitek-ili9805.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9806E_CORE) += panel-ilitek-ili9806e-core.o obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9806E_DSI) += panel-ilitek-ili9806e-dsi.o diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili97680a.c b/drivers/gpu/drm/panel/panel-ilitek-ili97680a.c new file mode 100644 index 000000000000..c6fb8cff1a69 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ilitek-ili97680a.c @@ -0,0 +1,494 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Ilitek ILI97680A based DSI command mode panel with DSC, as found in the + * Motorola Signature (BOE 1264x2780). + * + * Copyright (c) 2026 Venkat Yadlapati + */ + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +#include