Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4128210rdb; Mon, 11 Dec 2023 09:33:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/tD/KncpXHttej8bm7QrY6x5hL8O2++6X7Udf6PtlK65D988yHHng0yxoC78Ex5zNRBQT X-Received: by 2002:a17:902:e802:b0:1d0:8285:a1fe with SMTP id u2-20020a170902e80200b001d08285a1femr2514071plg.37.1702315996799; Mon, 11 Dec 2023 09:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702315996; cv=none; d=google.com; s=arc-20160816; b=WYMeyaKgnXFnL6SojCdwrUu7HYv5kJlYAQ26pnO/DENx7PglBPojub/GEbxZ46qGEV AWeh7Nc3uU8+jdm8rBGtpGDZJ8jt6f6xgEhIp+gR/NuAOX0XxUSNR+uwAfavjYMhz1Z6 X0Big52Dyssz4MYDHIV1NRqU1gTW7apE6q+y72BtiwlIs0+QSm6zh2XeW9jlGWyYcEgg DAzMzeln9V5SlOOu3bNAccgy7R8e7b/Go1OPrGy25nMx7UwKUs/fs3AAwz0yy5LxO0R8 NdVRbYevV1ue1jDDRHWfGUBQwcWOL9pmA2e+Wj6WpKW2c5wquMMSUaVh0MbMjM+NQe8J RvcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qH00nNWBCiSKt9YLOIQYM2pBf1zsgN8YRgWuZ3xpZZs=; fh=3+tEj70fzzHSK1wfNyP5066KVGkibb+/3YZ7PLZSKkw=; b=Ec2zJdlK1631qkl1axpmRDa5TQogTlIVJni6dRiXAc4NYZDHD3mM9B8QSVuvDoXp8G 2qEuw2QvNe2JlT7+4hnCQLuls5+2AjEgCc4WUudcZameeTYDIQC1TTzA2GLuweW/PvR7 DqLob9O7rwDRLfMuKtmJCFwqck4LeuJUoldfDbjQKXNwlL1Aapg3Ze9zTxqiDrXwKnxT n52oXIKf9DGQXv8A4MhXyxw5CCapTDTWpYbTS8D57y/f4ZBA9C6060IKsVG8eydl9q37 7BqScz6X4yakA2HpZm0XbfKLEfqFoqDF2JGFEeqjn+9D76JSrEgZdNaRZZ48JgwWAtmy kVag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W16uTtUl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id o18-20020a634e52000000b0055be9543340si6197501pgl.872.2023.12.11.09.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 09:33:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W16uTtUl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 0F9CB8041EEB; Mon, 11 Dec 2023 09:33:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344683AbjLKRcx (ORCPT + 99 others); Mon, 11 Dec 2023 12:32:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344543AbjLKRcx (ORCPT ); Mon, 11 Dec 2023 12:32:53 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13B52C7 for ; Mon, 11 Dec 2023 09:32:58 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2283C433CB for ; Mon, 11 Dec 2023 17:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702315977; bh=Lj2UpbE5cpbZnGKwwOZBgJWBP/YWAZRvQhiZ+6k83ls=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=W16uTtUlG7SeFPGRm3CCuc2Oop+KBJQ6Xa5b5H8u1/HtQCIrREB7vbPN8RFi4Ne/R dh4RQAj86qlua0L9ifnnCt6Jgi/RZs9IS9FSCCCsuV9qN3pcBBNiTEBCdGXHDmeV8s 3T5UKB/OTm42v3NsQsRGldKHFubiR9Ct2lPAcN4vekjjsfX8jHRcX7VnhD/vhEpe9h 1H1Xa6jvsa3+z5F5GuYdve0PfKUXKGIow/BufN63sgw981QMNzBaRhmr8jrnqXmDoB suAgIjxEzLhJJg8UZcZoK8Km88nv7iYHBhFcslOtjLocUTIkVsal0pHln9Rd1PQA+H 5w83OwhCENHGQ== Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-50bfa5a6cffso5385374e87.0 for ; Mon, 11 Dec 2023 09:32:57 -0800 (PST) X-Gm-Message-State: AOJu0YzCoIinKQIUprd21RwFlAb61XjDEkHjEBitKprA/LfWMA69oBLq lyDMXbaQB7dTFxZwnVTIZ8rG6BKsGFJ54VuNzw== X-Received: by 2002:a05:6512:b20:b0:50d:f81e:6872 with SMTP id w32-20020a0565120b2000b0050df81e6872mr1480473lfu.10.1702315975908; Mon, 11 Dec 2023 09:32:55 -0800 (PST) MIME-Version: 1.0 References: <20231207141723.108004-1-dario.binacchi@amarulasolutions.com> <20231207141723.108004-9-dario.binacchi@amarulasolutions.com> In-Reply-To: <20231207141723.108004-9-dario.binacchi@amarulasolutions.com> From: Rob Herring Date: Mon, 11 Dec 2023 11:32:43 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 08/10] drm/panel: Add Ilitek ILI9805 panel driver To: Dario Binacchi Cc: linux-kernel@vger.kernel.org, Neil Armstrong , Thomas Zimmermann , Sam Ravnborg , Amarula patchwork , Maxime Ripard , dri-devel@lists.freedesktop.org, Jessica Zhang , michael@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 11 Dec 2023 09:33:14 -0800 (PST) On Thu, Dec 7, 2023 at 8:17=E2=80=AFAM 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.ya= ml > +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/Kconfi= g > 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/Makef= ile > 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) +=3D pa= nel-feiyang-fy07024di26a30d > obj-$(CONFIG_DRM_PANEL_HIMAX_HX8394) +=3D panel-himax-hx8394.o > obj-$(CONFIG_DRM_PANEL_ILITEK_IL9322) +=3D panel-ilitek-ili9322.o > obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9341) +=3D panel-ilitek-ili9341.o > +obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9805) +=3D panel-ilitek-ili9805.o > obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9881C) +=3D panel-ilitek-ili9881c.o > obj-$(CONFIG_DRM_PANEL_ILITEK_ILI9882T) +=3D panel-ilitek-ili9882t.o > obj-$(CONFIG_DRM_PANEL_INNOLUX_EJ030NA) +=3D panel-innolux-ej030na.o > diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9805.c b/drivers/gpu/d= rm/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 You probably don't need this header and the implicit includes it makes are dropped now in linux-next. Please check what you actually need and make them explicit. Rob