From patchwork Sun Nov 26 15:45:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13468884 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 1E156C07D5A for ; Sun, 26 Nov 2023 15:47:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 875EA10E117; Sun, 26 Nov 2023 15:47:05 +0000 (UTC) Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4AA4B10E10F for ; Sun, 26 Nov 2023 15:46:55 +0000 (UTC) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-507be298d2aso4651114e87.1 for ; Sun, 26 Nov 2023 07:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1701013613; x=1701618413; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GMVsgCn4eIAFVitbr2ys3sbwrOA0qnI8MnSvHzR6QGs=; b=olm1g7ZZle1Ru5ctty5hj/Z0ACe/rDSfUidrPLLTtPxPNUZQE7kRtnxbBL0alHIkKI Q5o0BW/1lPpBJq+E/js04io/N39ifGO9LqV032dn/YzOVPKQ4W2/C4AvBq5EJ78IqvCf OMlrLkddve1hGcnB4qO+fua256Skmr+sW9lik= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701013613; x=1701618413; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GMVsgCn4eIAFVitbr2ys3sbwrOA0qnI8MnSvHzR6QGs=; b=KgEZIUryqUmx3qGFs2ZYZjBnqt/l64NeQAzj1THCW322gzgSo56a5RMTjZ6YWEo9r5 hVQsidmgqMSpQWooSVAmbYHdm0QGVfUT1J/7e37FTaAWCy+0SBjaxqV9tVepetCpd2Px p+h/nbBPvZYNuYB3mVvlFQTU5AA32g4dxk7YyH6Yd1KbEmw/7ybYZuZ0LUUIwhFd2EHZ mTF+ooWb9WlHOGl2L4y9r6iPYjSg/HnRX4/7P9U2u8dz+zZowmowxDp0Z2YgkPdLoCh6 0wOdtjKidjbB8lOrM0ObvP6PxULAyRIx5M5/Zu4HCzWudfUZabTIE8FFJXnq6Bsd9oKq p32g== X-Gm-Message-State: AOJu0Yzq10l3a5cb5YLKeR3t0eBb8jMY+wf7amK7OOjR5CA1GvaDT9JU KxVi53EYyUdlcddwNe0ZWTZStw== X-Google-Smtp-Source: AGHT+IGYp/SAZPkmVJ1M36D4sBu6AAaxLc0FLNgWbo3jYH6VFVXLTLQxBVpLcQoQzMXPRaUUn8dGWg== X-Received: by 2002:ac2:420a:0:b0:508:e4b1:a785 with SMTP id y10-20020ac2420a000000b00508e4b1a785mr4927827lfh.62.1701013613500; Sun, 26 Nov 2023 07:46:53 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-244-100-54.retail.telecomitalia.it. [95.244.100.54]) by smtp.gmail.com with ESMTPSA id h24-20020a170906591800b009fdc684a79esm4656158ejq.124.2023.11.26.07.46.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 07:46:53 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Subject: [PATCH v2 08/11] drm/panel: Add Ilitek ILI9805 panel driver Date: Sun, 26 Nov 2023 16:45:00 +0100 Message-ID: <20231126154605.15767-9-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231126154605.15767-1-dario.binacchi@amarulasolutions.com> References: <20231126154605.15767-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 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: , Cc: Neil Armstrong , Dario Binacchi , Thomas Zimmermann , Sam Ravnborg , Amarula patchwork , Maxime Ripard , dri-devel@lists.freedesktop.org, Jessica Zhang , michael@amarulasolutions.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 v1) MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9805.c | 365 +++++++++++++++++++ 4 files changed, 381 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9805.c diff --git a/MAINTAINERS b/MAINTAINERS index ab6985806793..db2a2e6ee14f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6647,6 +6647,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..749959e10d92 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9805.c @@ -0,0 +1,365 @@ +// 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