From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44C4FC5AD4E for ; Mon, 10 Aug 2026 09:58:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7356110E77C; Mon, 10 Aug 2026 09:58:43 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="GE5/lr+p"; dkim-atps=neutral Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id 15CDF10E77C for ; Mon, 10 Aug 2026 09:58:42 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4996f1ee4a4so5797515e9.2 for ; Mon, 10 Aug 2026 02:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1786355920; x=1786960720; darn=lists.freedesktop.org; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to:content-type; bh=kD0pMxuZ3raUNAZbYBvOzeB3CvmMmqgfQTOE6nazHnk=; b=GE5/lr+pYzIUB4M/kMk9p1/A3OlB52nJxE2aFE5LaMtPDjQyvH0H+YeX3sLPROw5Hn O2XO20uSOIx/YJQA7iI3r0TF5lyEC0j4JDFrWl+3+CeHH4S8iOrcbLOamKs2zmuJkiYG 7ZvIiUskfyFeHORbrq3VWD6doLvtt7/pHEgVcsCUlX9filkQdfUYNrVjwwPWPKu0YaPY CfpUsJk1NyYlJFupp8bt0nPrmdGza0r/V5/ZXTaeDWznVdUiJMB/DSBxvMVmhKU6ImTe 50QBb83z4uMKdprVvIE7Jwfjsa6d54IEha0dcJIctsgv5Y6gXSND0SR8ua0XOzjveKqC Rm/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786355920; x=1786960720; h=content-transfer-encoding:content-type:in-reply-to:organization :autocrypt:content-language:references:cc:to:subject:reply-to:from :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to:content-type; bh=kD0pMxuZ3raUNAZbYBvOzeB3CvmMmqgfQTOE6nazHnk=; b=ethfhSsEZV1XrXczeHANpgQmkG6kBUurBzZcxZvoWtLHuN+BT9warDjrVjfpHItgwL 1PtxlFhwfJ70TCyQ/27YndtSh+feYHfbWmVMiOtuDUNZOfep4yw1HCnuZJX2tdEGygi/ dTTQyz+sGGGgRnbAme+OFAijoGv/bgf8WBCSnLko1CqV3aayG+9/tPJiKDkcPozSXksn TxzdhalL7LVgTOAuHhnjlF9APAVqfxbKZWqffr9IFkJM5PqcnlYiKDu/2Bs8xsJActUJ cCtvBVM/+BYH6NxOz526s/kyoz6ZqNt1Vp/y5AFp439ZWOPmxzdBKIoNuYPwqWGMljXV fPVQ== X-Gm-Message-State: AOJu0Yyef2mqAuKe5uXNyyBliLIVwnEqwiTe/a0OvO9nhNkkQ9tI8zoQ bEl+z05SXVDIfuOZ6MKC7tY7UjslACMJRdd8y5AYRuFNL9y+0H9kI+T2QuP8iwIjw2o= X-Gm-Gg: AR+sD11xv33SooYFHFrO++JO32jiysv+wFaAjbhKQamVa+iNHe6w8vDylB9K2dg/RWP 1qBiI8zbu6O+2MFmBOp1VjVt2oYzjDZSnarJoRoKzuF0RNAS4qkM3MQ7I+oRAm5NKAiCDRsfIDz 1IUGkX5u348HiFzdRtFoWl5ugdxmNmajwJqXfV1B2qLkeDMr7Jtl5FwmuOjUxMNa7XkH2XP7bk7 M3xWMbvK6nQTQeV17QUWiLxmSBJVznwTwznztD09wYCAy/LaL9ZG5WW2Vxpagil3j7++z+WP1BT Wml4SoqEJQNaQMjETFkWnOQfQTgfxFcN6O1KxF7C8kmEfoyabOHOIUUAcrG4KtM2VDZeQkuqavK rFallfYz/j8kZ9Db3T3kWr8BEfHacEO46U9r6Qk50r5iVK9/UQp+WjLbxlSFo93d9Pr2CVcthzu g/XAK0bMrY43g51fRdhaouq9wf9seg9JkwnJ2ylxMDha7K1Pq9yU4NgPZs88up2oSqKq7uha7BY 5NKUhzu+BwzPYvGFnAL1RHG81twShyR5IxD/vkVzLF7qo4Xmn+b X-Received: by 2002:a05:600c:4f49:b0:493:cc25:9c0e with SMTP id 5b1f17b1804b1-499727a205cmr5365615e9.14.1786355920387; Mon, 10 Aug 2026 02:58:40 -0700 (PDT) Received: from ?IPV6:2a01:e0a:106d:1080:eb7f:37e4:e8c9:f32? ([2a01:e0a:106d:1080:eb7f:37e4:e8c9:f32]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4995ea27ef0sm323981765e9.9.2026.08.10.02.58.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Aug 2026 02:58:39 -0700 (PDT) Message-ID: <38df557d-cbe4-4db4-a300-d6af613ea68b@linaro.org> Date: Mon, 10 Aug 2026 11:58:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Subject: Re: [PATCH 2/2] drm/panel: add Ilitek ILI7836A panel driver To: webgeek1234@gmail.com, 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 References: <20260808-ili7836a-v1-0-07a7becc5636@gmail.com> <20260808-ili7836a-v1-2-07a7becc5636@gmail.com> Content-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iSvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY 4yG6xI99NIPEVE9lNBXBKIlewIyVlkOaYvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoM Mtsyw18YoX9BqMFInxqYQQ3j/HpVgTSvmo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUX oUk33HEAEQEAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20260808-ili7836a-v1-2-07a7becc5636@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Neil Armstrong Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On 8/8/26 21:01, Aaron Kling via B4 Relay wrote: > 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