Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp3826261rdb; Mon, 11 Dec 2023 00:31:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGw9bmV23Sro101FDJCINOolrRE4hE9UPkVPJAbvbIHizhqPrll8Sl6TBCBOJc1TgFjryF5 X-Received: by 2002:a05:6870:4201:b0:1fb:20ca:95df with SMTP id u1-20020a056870420100b001fb20ca95dfmr4927069oac.39.1702283489609; Mon, 11 Dec 2023 00:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702283489; cv=none; d=google.com; s=arc-20160816; b=aujsVT2osMff1qvOt4CVLAkVGK2C/KHNVEQW7mdz/ogyNhQdkgnZ8/5oqXJ49SsXaQ 02acf/ddzR6HY+m9pw1yHwv16fiLBe7VauKrcrVomAnB7ZjQxFuOT8iXypolteozcdE9 Kpn9I7TWMuBtYwdG9cdBCtHThmhdugU9ASfvwTZvOi9hhSDXF/tll5xUzE8/rGW7/Hwi dpGFO9bnKNWwdmIj3nSskqGzQ4uWnAUqjB253Rorskzv06UaGXmsHnNGF+Czgoehaciq CUr9Xz1QRTgF3iJrnKrDVBL4fRIMi7wyHKu+YAsYnyfdVQ2gNDnuhKDNBWCXKDHAopIA 8pZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:autocrypt:references:cc:to:content-language:subject :reply-to:from:user-agent:mime-version:date:message-id :dkim-signature; bh=hie7kqfhoG7lLXMPfWzBdiLzHzMSgpaIfadLIpcPChE=; fh=5V7tiqs7tRZjBlfWir49z7evivo7sLrjkx35BBMOHX8=; b=g7m6dYlgL0uvq4kAw3/r/cjOr+qKTnqFzd6zB/wRUEZvHw0mzqMoPP2fA/ww9sjkxK tIpLcSaicgNoUTNX6GTQNm0U6D+zRsMjxSE077gxTMBsrv6yllqNe5M38fV4r63eMQXo zEv42FDaH9PaXOlVNlkY0QmjX1Vc+f6At9gn/cbDiwAhQ/a7kBJBB5F83IC5r9SXYa8W xFmtQKsGpeAsfB9ldMisuaGlEv7ji7tAnzZPfemgn+sNFEVxJsgWMse7copcMRq95cgf cy0Ya1mr1uGJVM2kLklz42m04ItEfNiKrpYW0W1Q3xSg5WHphp6tWG02RTYZB9EaDaf7 XtRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nCIihp1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b8-20020a6541c8000000b005c626072edfsi5560509pgq.773.2023.12.11.00.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 00:31:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nCIihp1x; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 235318068973; Mon, 11 Dec 2023 00:31:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229654AbjLKIbH (ORCPT + 99 others); Mon, 11 Dec 2023 03:31:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234092AbjLKIbC (ORCPT ); Mon, 11 Dec 2023 03:31:02 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8D9510C for ; Mon, 11 Dec 2023 00:31:06 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-33622099f23so461299f8f.0 for ; Mon, 11 Dec 2023 00:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702283465; x=1702888265; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=hie7kqfhoG7lLXMPfWzBdiLzHzMSgpaIfadLIpcPChE=; b=nCIihp1xYErs+BoF+Tcia4OhJGF23QMGvvrFEy6o/3ZHjMlIyUlRDxtN4cHESbX6h6 JAzf6TV0f6McQ77J/Crgu2btRV1oIyaTgKyz1C4gx/8GVL/Ol3F3FEaA40J80cxiVUyM baqdd8pUYHwsX3p+qdQuukZrwMoETEOpQZYBcExQNZwdPfGN0mIqxicXaln5Ug/Be6Az H5QJ+zxRTP2qhZISk40ed/YvyAsHokcVIqSJNE4s/qlV7nPMyOt2uWNywcYVOc4CO1l+ 9s5MLNkjAQOH4yw/5R6jfLI9yY7ZCozVJuMwR7g/rulyXK7ATX05AQrzrxnJfoNzTN8L BG0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702283465; x=1702888265; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=hie7kqfhoG7lLXMPfWzBdiLzHzMSgpaIfadLIpcPChE=; b=jIs9/2zDl6KRudcOFoEvVbMwaI0mW9cgnqtAyA3QJ9B1pLJf2YYdmKN7IWxLD6pIRO ggD8oWv1vOjIvELlzXvCwZGntUOArwenB5sdHuiO7RK41qbTjvhX1hLEStjnZ+6t5TDr smno6d2VC2JEUZMkCwaKT4eEi8Yqhfi4ukUaXMWNwtHjurWCFCiscKeTAThgFzotOQ1c 0QCTy+o67N5i5oZeO8I2/f3M27U4rf69rja7QptK9OWTBJpomPMsnZ7yWnOgKCC8CkXK ZOEaVCqHm5KixZw/soeg/zZZ8uADOtM0SX1CSMlqXQbYdL3dE5syWEJp9gjNaR1aQ3Uc fN9Q== X-Gm-Message-State: AOJu0Yw0RaPHpXw9yl3nnRjvY2qylqRTX5jPeNoupm2OYGRaa3nfZX4K 2S3+c5KOiAjVWFS2y7wYLaAC5A== X-Received: by 2002:a5d:4b50:0:b0:333:5460:adb4 with SMTP id w16-20020a5d4b50000000b003335460adb4mr2188608wrs.22.1702283465038; Mon, 11 Dec 2023 00:31:05 -0800 (PST) Received: from ?IPV6:2a01:e0a:982:cbb0:302e:e0c2:d42c:cb23? ([2a01:e0a:982:cbb0:302e:e0c2:d42c:cb23]) by smtp.gmail.com with ESMTPSA id g13-20020a056000118d00b003333d46a9e8sm7955435wrx.56.2023.12.11.00.31.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Dec 2023 00:31:04 -0800 (PST) Message-ID: Date: Mon, 11 Dec 2023 09:31:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH v5 08/10] drm/panel: Add Ilitek ILI9805 panel driver Content-Language: en-US, fr To: Dario Binacchi , linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Sam Ravnborg , Thomas Zimmermann , dri-devel@lists.freedesktop.org References: <20231207141723.108004-1-dario.binacchi@amarulasolutions.com> <20231207141723.108004-9-dario.binacchi@amarulasolutions.com> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKk5laWwgQXJtc3Ryb25nIDxuZWlsLmFybXN0cm9uZ0BsaW5hcm8ub3JnPsLAkQQTAQoA OwIbIwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYhBInsPQWERiF0UPIoSBaat7Gkz/iuBQJk Q5wSAhkBAAoJEBaat7Gkz/iuyhMIANiD94qDtUTJRfEW6GwXmtKWwl/mvqQtaTtZID2dos04 YqBbshiJbejgVJjy+HODcNUIKBB3PSLaln4ltdsV73SBcwUNdzebfKspAQunCM22Mn6FBIxQ GizsMLcP/0FX4en9NaKGfK6ZdKK6kN1GR9YffMJd2P08EO8mHowmSRe/ExAODhAs9W7XXExw UNCY4pVJyRPpEhv373vvff60bHxc1k/FF9WaPscMt7hlkbFLUs85kHtQAmr8pV5Hy9ezsSRa GzJmiVclkPc2BY592IGBXRDQ38urXeM4nfhhvqA50b/nAEXc6FzqgXqDkEIwR66/Gbp0t3+r yQzpKRyQif3OwE0ETVkGzwEIALyKDN/OGURaHBVzwjgYq+ZtifvekdrSNl8TIDH8g1xicBYp QTbPn6bbSZbdvfeQPNCcD4/EhXZuhQXMcoJsQQQnO4vwVULmPGgtGf8PVc7dxKOeta+qUh6+ SRh3vIcAUFHDT3f/Zdspz+e2E0hPV2hiSvICLk11qO6cyJE13zeNFoeY3ggrKY+IzbFomIZY 4yG6xI99NIPEVE9lNBXBKIlewIyVlkOaYvJWSV+p5gdJXOvScNN1epm5YHmf9aE2ZjnqZGoM Mtsyw18YoX9BqMFInxqYQQ3j/HpVgTSvmo5ea5qQDDUaCsaTf8UeDcwYOtgI8iL4oHcsGtUX oUk33HEAEQEAAcLAXwQYAQIACQUCTVkGzwIbDAAKCRAWmrexpM/4rrXiB/sGbkQ6itMrAIfn M7IbRuiSZS1unlySUVYu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: <20231207141723.108004-9-dario.binacchi@amarulasolutions.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 11 Dec 2023 00:31:24 -0800 (PST) On 07/12/2023 15:16, Dario Binacchi wrote: > From: Michael Trimarchi > > The GPM1790A0 panel is based on the Ilitek ILI9805 Controller. > Add a driver for it. > > Signed-off-by: Michael Trimarchi > Signed-off-by: Dario Binacchi > > --- > > (no changes since v4) > > Changes in v4: > - Remove duplicated code for prepare/unprepare callbacks > > MAINTAINERS | 6 + > drivers/gpu/drm/panel/Kconfig | 9 + > drivers/gpu/drm/panel/Makefile | 1 + > drivers/gpu/drm/panel/panel-ilitek-ili9805.c | 353 +++++++++++++++++++ > 4 files changed, 369 insertions(+) > create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9805.c > > diff --git a/MAINTAINERS b/MAINTAINERS > index b82dc141d209..4dccc72a0ed6 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -6646,6 +6646,12 @@ T: git git://anongit.freedesktop.org/drm/drm-misc > F: Documentation/devicetree/bindings/display/ilitek,ili9486.yaml > F: drivers/gpu/drm/tiny/ili9486.c > > +DRM DRIVER FOR ILITEK ILI9805 PANELS > +M: Michael Trimarchi > +S: Maintained > +F: Documentation/devicetree/bindings/display/panel/ilitek,ili9805.yaml > +F: drivers/gpu/drm/panel/panel-ilitek-ili9805.c > + > DRM DRIVER FOR JADARD JD9365DA-H3 MIPI-DSI LCD PANELS > M: Jagan Teki > S: Maintained > diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig > index d018702be3dc..dad938cf6dec 100644 > --- a/drivers/gpu/drm/panel/Kconfig > +++ b/drivers/gpu/drm/panel/Kconfig > @@ -194,6 +194,15 @@ config DRM_PANEL_ILITEK_ILI9341 > QVGA (240x320) RGB panels. support serial & parallel rgb > interface. > > +config DRM_PANEL_ILITEK_ILI9805 > + tristate "Ilitek ILI9805-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 ILI9805 controller. > + > config DRM_PANEL_ILITEK_ILI9881C > tristate "Ilitek ILI9881C-based panels" > depends on OF > diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile > index f267d932c2b5..d94a644d0a6c 100644 > --- a/drivers/gpu/drm/panel/Makefile > +++ b/drivers/gpu/drm/panel/Makefile > @@ -17,6 +17,7 @@ obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d > obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) += panel-himax-hx8394.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_ILI9805) += panel-ilitek-ili9805.o > obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) += panel-ilitek-ili9881c.o > obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9882T) += panel-ilitek-ili9882t.o > obj-$(CONFIG_DRM_PANEL_INNOLUX_EJ030NA) += panel-innolux-ej030na.o > diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9805.c b/drivers/gpu/drm/panel/panel-ilitek-ili9805.c > new file mode 100644 > index 000000000000..e36984b46e14 > --- /dev/null > +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9805.c > @@ -0,0 +1,353 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2020 BSH Hausgerate GmbH > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > + > +#include > +#include > +#include > + > +#include