Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp339428rdb; Thu, 30 Nov 2023 06:18:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEA8/rOg/12WN1ij+r9LlnCSoRzWZyqXk6yrbM7fnk6Zgl4LA9S9DfAtbpxw0ITyuRvOn9R X-Received: by 2002:a17:90b:33d1:b0:285:dc80:e207 with SMTP id lk17-20020a17090b33d100b00285dc80e207mr10980631pjb.49.1701353897973; Thu, 30 Nov 2023 06:18:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701353897; cv=none; d=google.com; s=arc-20160816; b=qDzU2tPPD9txGPmilVnoQ38ohk60kLA9MYikIFq+Ya4URagxXtWPRfZRx4TIzlOsnC Bjp25G3Th8S9/+RUD3vI+OSzeg265KENmARU8LainhM0O2xh0xVOXl5MPZYb1+OukiCI 4ruZ25wyJYHeAGnEWlspg8pSLKKqQOWzDi+pWB1GwSmOveMRFHzYbV7teTZx1m0prIAA CwT0Ph98395PrOuUfC64kGeIdWPq9Bl9xQ8DQPsOByb9suD6N8bcv5XkugZ8OfnASned AlYUObovoQPzBpxdIux0+uBqrqtCgp3IZUlnP2k6cJNjNJKlDD89mE4w74U4z5Wm+c7w wD1Q== 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=C6qwsW/DQEq0A6OXLcfcgsxgL5/NA79mBjop/NNYrlM=; fh=YMCpMfj2GNScjLvWYsHyWUGLqrAoIyNb9XBc8eC5U/M=; b=x/vU9WYh2ZZZiVuXZ+er0dtSdYBaGNcpiG2ZWJ4ZsDKirwPlGptqTL+pMN0zDZAJMW mZms8jv4cnrx4XgZDYc+KytXJ6VXNzktKk/9q6F8GiO9lEpgzv1BbxsyfyiYCSgV7Nbt R7dCnYRq7ht/ym2WJmVmqhiA82lnSEdgD+XOE2pEoK/ZIIWHwEkyW35dpcyfZHJtkmv8 0ew5Mw4mNJns28nJer/UzP134ye/rrNFl5hMQ6ED38WORXoHYu9UEBv6ksWCPYyBAbGf TRgCTG68r8Qd67z1kfbOTDZnxX23JxyijUQLJpZzhnx8U6Mdoxus25KQ+GMfdZ4YIMlD BWYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="a/R2n6Qn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id l22-20020a17090b079600b0028515d4c7f9si1475474pjz.45.2023.11.30.06.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:18:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="a/R2n6Qn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 7E5E0826F7F1; Thu, 30 Nov 2023 06:18:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346065AbjK3ORm (ORCPT + 99 others); Thu, 30 Nov 2023 09:17:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346005AbjK3ORW (ORCPT ); Thu, 30 Nov 2023 09:17:22 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C05310E3 for ; Thu, 30 Nov 2023 06:17:25 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-54c109ed07aso960949a12.0 for ; Thu, 30 Nov 2023 06:17:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1701353844; x=1701958644; 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=C6qwsW/DQEq0A6OXLcfcgsxgL5/NA79mBjop/NNYrlM=; b=a/R2n6QndQCakxprouL7aQBlOHT5XPlEiNl248s7xw5B1xHoX2j7AQQQaONjHU9HUY rU0NjnLpWxjJzLhw2meaqsNc5GZSnlCvxSS+rTsDiPQijX8orQweLtXPz5jBDvJoEtWJ f5/9vn1QfkcUEEwEbaZSw0AJPjo79T/HSFqHA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701353844; x=1701958644; 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=C6qwsW/DQEq0A6OXLcfcgsxgL5/NA79mBjop/NNYrlM=; b=f3iK+XVwuYCz4/zlIxaOF//ZJUM1pg5jn0UlzqF9fAEuzM8XN1Rkz6pxNbMODLAYbj eF1kQ73apJgjzfy0EC8zO7r4fgt3jMh8KeJSgY/JEm47yHeYqEkC49N5s9OzOCqxSV/A p3/WjzV4smYu4iqACcIWVRllrR9sAc/8GLwkVs8E4JdfzI6h82wleFtXuxbBQCjOHOfs BvBa7ni8D9q4ABHlGJbM7XElv+UpR4CxkT01k1aNV/aUSgz5NgnAuGwwOThTvZVgiBfB DD7Jb2rsikiuMkEqF5oUt/bGh08XyCYtkeEfmPQYMbbtyT8fdtghKuN1MfvvfYohOonm s/JQ== X-Gm-Message-State: AOJu0YwGA18pmQxLgRsoauoFQew4EhrHMW/1YwrZOgn4/Yh323ke+SSb Vx/tLNuL2k4H9Whg/CsAkW8OEpiRYxZbm1c/ldeVkQ== X-Received: by 2002:a17:906:1006:b0:a18:7350:82d with SMTP id 6-20020a170906100600b00a187350082dmr1674188ejm.16.1701353843643; Thu, 30 Nov 2023 06:17:23 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:d1eb:b106:516d:db0a]) by smtp.gmail.com with ESMTPSA id my18-20020a1709065a5200b009f28db2b702sm716064ejc.209.2023.11.30.06.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 06:17:23 -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 v3 08/10] drm/panel: Add Ilitek ILI9805 panel driver Date: Thu, 30 Nov 2023 15:16:25 +0100 Message-ID: <20231130141705.1796672-9-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231130141705.1796672-1-dario.binacchi@amarulasolutions.com> References: <20231130141705.1796672-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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 30 Nov 2023 06:18:14 -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 c373764b6e64..a89fbc811dc5 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