From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2034C2DECDF; Sat, 8 Aug 2026 19:01:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786215683; cv=none; b=PgWnk8PzPHRuZNCZm4+kswTXUlBpu9ezOHlopP+yxciHBFrKqxzOa9VQSw2304QyZBVtt+1DyrZCLgxyQXA/jRLU/3QEQQCygJPyBCSIh/zfhDg7fc32KhmZwremW7qZbOVDyfvbcRCq+A4P/7SUH6sB988BLqaaa0PH8B4RjUE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786215683; c=relaxed/simple; bh=hYwxTD9WoX0xDSArh6fZKQD2SNXAMjCHETUSu6mXxL8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ou4LdIXz4rkCCRYQtToNBNvLcUouzrI6eu0INgwyHbB3R+P2ibAOzQKzGMbFl6ViFrXyDfN82QoS9ko2gWA+y8b2Jtj1cXw0OrFLGSEQZ2hWUMs6Ks0thOBq2TPIudfjCvNa0BwO4YSePNXzWoQgUbli7sx+EDIG9V7wogG/EF0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c6h+kEih; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="c6h+kEih" Received: by smtp.kernel.org (Postfix) with ESMTPS id BB4F1C2BCFA; Sat, 8 Aug 2026 19:01:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1786215682; bh=hYwxTD9WoX0xDSArh6fZKQD2SNXAMjCHETUSu6mXxL8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=c6h+kEihngyAupvnphG4twdJpoLoJJ3FXNGI6oiXFf63SjlL4xWpREZ1Ggg1H+WAN kdGHYzZ+2T10ymhaeD1vuucY8tRwf33AOy8KkBTVxT0+d+PwmKqXuLsHvYtxUaPUh4 vvcdi5y1U4dHmh07hmAmzML6U9mJK1N4KC+sLP+MG6Kg5LlyEcAl1CaQ6b+4luukKT aeQSF+ANcieluan1y0WSc5G+f8zPeMul7/MQkF/OkcdPMICDDt2tzBNzq+lDKhLDaw YzyE0FNeYi6plEuatGYDUKXroVXa88uQccTRwQ7EkuoiubbR6OOcu4G4j8DJf79HO4 F4NVTl7kQBzLg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0ED8C5AD55; Sat, 8 Aug 2026 19:01:22 +0000 (UTC) From: Aaron Kling via B4 Relay Date: Sat, 08 Aug 2026 14:01:15 -0500 Subject: [PATCH 2/2] drm/panel: add Ilitek ILI7836A panel driver Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260808-ili7836a-v1-2-07a7becc5636@gmail.com> References: <20260808-ili7836a-v1-0-07a7becc5636@gmail.com> In-Reply-To: <20260808-ili7836a-v1-0-07a7becc5636@gmail.com> To: 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, Aaron Kling X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1786215681; l=10610; i=webgeek1234@gmail.com; s=20250217; h=from:subject:message-id; bh=o1XtdrXdnPzlUMNUfoJNW0UDzz3bsr+IAfKa1R2/tjc=; b=2nh9FKq+EDA+BnC49V3guIkJehCYTasf7D7eeofbubqTQF9dl0YpYkQV4JETW4zYP0rTKXXiz DZR8O4fUxSyB6tTOSFimq0TeUjxM7sRFiNJl532/nhtZcmNvPNfGeTL X-Developer-Key: i=webgeek1234@gmail.com; a=ed25519; pk=TQwd6q26txw7bkK7B8qtI/kcAohZc7bHHGSD7domdrU= X-Endpoint-Received: by B4 Relay for webgeek1234@gmail.com/20250217 with auth_id=342 X-Original-From: Aaron Kling Reply-To: webgeek1234@gmail.com From: Aaron Kling This is a DDIC which can be used in various panels. The first supported panel is the one used in the Retroid Pocket Nova. Signed-off-by: Aaron Kling --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili7836a.c | 297 ++++++++++++++++++++++++++ 3 files changed, 309 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index cbdf7b8f7f7af..792d6b92798d9 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -298,6 +298,17 @@ config DRM_PANEL_ILITEK_ILI7807S If M is selected the module will be called panel-ilitek-ili7807s. +config DRM_PANEL_ILITEK_ILI7836A + tristate "Ilitek ILI7836A-based panels" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for panels based on the + Ilitek ILI7836A DDIC. + + If M is selected the module will be called panel-ilitek-ili7836a. + config DRM_PANEL_ILITEK_IL9322 tristate "Ilitek ILI9322 320x240 QVGA panels" depends on OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 3b523cf378330..be96f4e8112da 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -29,6 +29,7 @@ obj-$(CONFIG_DRM_PANEL_HIMAX_HX83121A) += panel-himax-hx83121a.o obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) += panel-himax-hx8394.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 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 diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili7836a.c b/drivers/gpu/drm/panel/panel-ilitek-ili7836a.c new file mode 100644 index 0000000000000..f6331129dadf2 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ilitek-ili7836a.c @@ -0,0 +1,297 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include