Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2479640rdh; Sun, 26 Nov 2023 07:49:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvylUwaBIryzz73A8x+X7DsGPnhG5rhqXdcjX9KE3/ox8Ndq8W8B3FTlp2yku2kLxEzw5I X-Received: by 2002:a05:6a00:1ca8:b0:6c3:78a4:223 with SMTP id y40-20020a056a001ca800b006c378a40223mr8542079pfw.18.1701013761487; Sun, 26 Nov 2023 07:49:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701013761; cv=none; d=google.com; s=arc-20160816; b=F1viYQODJ23PREsc/ecujaqQzcmhMRSl9JctEkyzQ5qMOPmbpxkGonHT1FzP1zsN15 HbS5G6Ibgoi/ezszkqoSOxIgMCM2ZwhkmUDSW8hAWTeDUxt0HNE8mHlQFxhF1eMUt+4O x7KA5iCyJPl6DOE+KixBIatZy/2H2WA5s4Je8H+RJbQq4FrbOI/TKlXVyRggyKd36ds5 VnXkPfU5qTUbJGckV7WK4BPT5UFmEAEj9AmCRWuDh6v7gxiR5o0NGdjWG9LMtZiEjxuZ +Wht5u1bFSo8dLBRZ6Az2bZUcJEasb2w6jvil/XzXe4c2dNeEwCQ4BUnEA/AGmZPMMiD kYOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GMVsgCn4eIAFVitbr2ys3sbwrOA0qnI8MnSvHzR6QGs=; fh=YMCpMfj2GNScjLvWYsHyWUGLqrAoIyNb9XBc8eC5U/M=; b=RqMZOIj7WimQFugEuhHL9l+uMm12GfiG6nfiqvkzUuygAWOsVI6b/TuogDHfFyw3OV 1imTCA/rszsa1viTXnmLlRskWR9fdtKwWmfNdVoGUl/Ad/U6gRDJxGv5qXxPDovm69ZR x9X648SV7KxtfZ1FufNdFpFK0W/4vSOetlJ69e4bR4RC/+v2aXN3ulS8uju7jVQckUGH t9P8Euc5flo+/PRSeSuIb8OwGBqunBk1IxoDG65OP3pklVrTOJXR5yHcoJJFRZ8wf/P+ BvJ8VLy4pFkFq9tte6zdn8dUNDNaeXGmbCfQMSG8ZR5BN2KyCQ+VKM8Ty0fu2GUFTHdD TfIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=k19aFuMD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c1-20020a63da01000000b005ad11a5ac8fsi7994776pgh.323.2023.11.26.07.49.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 07:49:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=k19aFuMD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4793F80608DC; Sun, 26 Nov 2023 07:49:00 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232373AbjKZPr4 (ORCPT + 99 others); Sun, 26 Nov 2023 10:47:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232066AbjKZPrS (ORCPT ); Sun, 26 Nov 2023 10:47:18 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0DFE1BC2 for ; Sun, 26 Nov 2023 07:46:55 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-507be298d2aso4651116e87.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=vger.kernel.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=k19aFuMDPRz6MvhJfiCi85JHE+CT3QzpCDqsA3/W8WJFnMkiMlqggV++Z5FeU4xYMO LKjxTeKqWR8xADRexxL8peWbn4DYqHhJprnoxICPAwmpoYvwMFULIzfI7Pv1wnEMudZK StfuuWmFf0Wu5QC9fmslRh3LjtM3Tm6aa9QrM= 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=d3r0352Is1OPx8x4RfkPn4zuPux0g8JOyR3xU53i6ZTnuCAkSc66d3XEd/KAlHgzO/ YfE+NBtWje6GOSg3NvpQ4KQsqRTGnGpZpnVNpYtIhTP0GeXIn/OWhiX6mnHtc1+5sA3t 4MlxTVtlrD4ILKF1M7gD2QUeYbHrqVy1gqolkAAI3o+m1HxYXQB24LYsVo4aNu9RLmoo wSluu8t42ueSMoqLVY8U4/+uG1usj0feIC/XIcHE1ONzJq4VwfyzocAmz1YPxm/DKRlf hMavZQwEcYyDjEBUwQU61jZCwhVgEtj3yZe1Rj9S2+hUq7T0PXRuanv2GZVdQ1trHNzc Tl3A== X-Gm-Message-State: AOJu0YxDB5pbDWMPrSE/b9T9a2zdIstydaSsbZNlsnvJWpoPit+HAUdy zy5KCmEr/NbrlqaeXwKVd9blrfX/RGyzU2x8w4lCvw== 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 Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Daniel Vetter , David Airlie , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Neil Armstrong , Sam Ravnborg , Thomas Zimmermann , dri-devel@lists.freedesktop.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 Content-Transfer-Encoding: 8bit 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 howler.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 (howler.vger.email [0.0.0.0]); Sun, 26 Nov 2023 07:49:00 -0800 (PST) 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