Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2428041rwr; Fri, 21 Apr 2023 08:45:38 -0700 (PDT) X-Google-Smtp-Source: AKy350bwbZtuaier7+op+i1+9zSYg8NFSHmAeToOdHpOPIXDXdDtliqCqDPgO5CdJqvyW+q+Adk1 X-Received: by 2002:a05:6a21:9982:b0:e8:dcca:d9cb with SMTP id ve2-20020a056a21998200b000e8dccad9cbmr7579379pzb.5.1682091938507; Fri, 21 Apr 2023 08:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682091938; cv=none; d=google.com; s=arc-20160816; b=tPmvqw7nE6JWEa+vL18svsRpugX/XIWIZSBMMdfewXM8YyqiAqQr4YZdwr2om9QfVJ +XkNWscwiVSfYOy8edS6Dj0cBmP7OGQp2ZedhB9wbYGemZARybn7xpLMny77jiN8w0em D3Ul//qWKVY1LexOoA8K9I+/nkJOYwjYmnkZ9Fyq3q2mwMHMq41WgJbEB0glOxOGOmxB 1foaAgC4ref/531o46ZiH2246wr+je49c/Iwdj4V/KH1K1Vi4C/tkUh6djK5OFhjk2Th oMt0+iYP8y3kTQFRg8PfhqFOwe7Yfq6eev+B/uaLGdeCF2E3XnIajbH/De3EruCGV4Ag iKjg== 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=E035Ramrjcz+9+/qPLMa1DpK0xDLwM+hl+g9gb+W7N8=; b=LGL8CO7lWaWTpV53QFzugh6sDe3NIk9tcs+ISG/igaDliN7xCVXtbxpsG+0qusvhi6 raCt087ta9wvq/ngDQ7TSVIk0eChKWp5YjlqTmpSeYb5SiELWDhK6B+AD2WmeeAVj/Cc bM/KdwbBUJGPW202o/DLpOeW7i+Au1i8SEmFJ6Mx2hX31CbK5rEMaEy0JByghQbCmKlX 74NIOHRws2T/L2NoGWH9EzjTCX91nHuzHhQtT6rB51XQP0mnd448TiZHhAsKsNP8mkPf U6oPgGgN/aT20XI9OLM83d+jzcq0JqW0ZyIif/HnWvIwIWm5fTPyf5gkXS2R3uCSEmvl yF6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lkrtEmQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j64-20020a638b43000000b0052132a8e4efsi4718237pge.326.2023.04.21.08.45.25; Fri, 21 Apr 2023 08:45:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lkrtEmQd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232902AbjDUPnx (ORCPT + 99 others); Fri, 21 Apr 2023 11:43:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232648AbjDUPnn (ORCPT ); Fri, 21 Apr 2023 11:43:43 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 322321385E for ; Fri, 21 Apr 2023 08:43:39 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f09b9ac51dso54332575e9.0 for ; Fri, 21 Apr 2023 08:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1682091817; x=1684683817; 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=E035Ramrjcz+9+/qPLMa1DpK0xDLwM+hl+g9gb+W7N8=; b=lkrtEmQd/6o4kpNmrW6G2hw3/eNiSdLnBSJ039QveyYMZIfHAk6bhXbNHoK/F9LQbs IRx70QaqlYKdVOEtKZkLS6o0QO7S5NWG1MZPx29EUPWruNsS4x5M6eeN5M1GQO0naQ8t ee5sHZIG2gb4h+QCgRm4IIFzGoUgfirFHsFNM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682091817; x=1684683817; 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=E035Ramrjcz+9+/qPLMa1DpK0xDLwM+hl+g9gb+W7N8=; b=IIEhamsvNaAXMbIuZU3HZs0yrwNeDxSF+wNkwDLyGuzA9W3SpousnqgSiR+X5COrnl A+X+e/jXLRgbNsOLe1YYDRIxzIrVtcqzH6YZgZJYfHQsO229Nq/imwxCQ9pMKf9h/sJN kxp5XAs/eGFk0UTNI3kdBD9dmySx18uYPsycmjivDCF3Apg5LL3OqCV1mBUwwTvgSkri feMNL/gbTgl2nzjeOZ9E9IhJtGH5jjF4Hzc/F2D3zSAnp9gYYu6rUadoiZzobtSNXEkT HEe0YHSI9SAH0CBZf3l8O8Xw8dZiFd53eYUjQtTAGMK0vzSIOjbh//89aAPWdOwdDDpS 56zw== X-Gm-Message-State: AAQBX9e7APPXq/+JZGZxnqRkmvuhFlIFdzmBIgBVaddCdbhhRwSK3cce b4mYavjb9jQX9vMPu5zbBCLE8UyVvIoXKMqlRf+YCg== X-Received: by 2002:a5d:4573:0:b0:2ef:bac1:9c48 with SMTP id a19-20020a5d4573000000b002efbac19c48mr7995660wrc.6.1682091817204; Fri, 21 Apr 2023 08:43:37 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.127.129]) by smtp.gmail.com with ESMTPSA id g18-20020a5d5552000000b002e51195a3e2sm4651609wrw.79.2023.04.21.08.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 08:43:36 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Dario Binacchi , Daniel Vetter , David Airlie , Sam Ravnborg , Thierry Reding , dri-devel@lists.freedesktop.org Subject: [PATCH 5/7] drm/panel: Add Ilitek ILI9805 panel driver Date: Fri, 21 Apr 2023 17:43:06 +0200 Message-Id: <20230421154308.527128-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230421154308.527128-1-dario.binacchi@amarulasolutions.com> References: <20230421154308.527128-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9805.c | 365 +++++++++++++++++++ 4 files changed, 380 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9805.c diff --git a/MAINTAINERS b/MAINTAINERS index cfe4f5013632..11dd5771ae23 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6458,6 +6458,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 e6c4ec4f0cab..438b67fc7f0d 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -194,6 +194,14 @@ 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 + 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 dea6177e3d95..bd423f3e62ea 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_INNOLUX_EJ030NA) += panel-innolux-ej030na.o obj-$(CONFIG_DRM_PANEL_INNOLUX_P079ZCA) += panel-innolux-p079zca.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