From patchwork Fri Apr 21 15:43:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2859 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 79E313F07F for ; Fri, 21 Apr 2023 17:43:39 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-3f08901fed3sf11677875e9.1 for ; Fri, 21 Apr 2023 08:43:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682091819; cv=pass; d=google.com; s=arc-20160816; b=PK8GORUzdzHux8P9BF4Y2/uOjLdAEBZkhu4ZJ24VEfVmlR2+42BtziWmqDQmbRr1ix mngb8omaIIHq9wMfcNjy+2weytghI/weY4XoN7e2Fd4oiz9qrNaTGCZTLaH3sWwTr+7r vACEJ/B/mKMXrNgbJu+qQ9MQSlZPSBbY8Ndp9mnUPYnnu7pnn4gnM9Rji0ydHKdfrH35 N1JBUQBTzgcyAQLISmqQ3t6P550hmGXzqtwvMEU2THeBlmBz237Jv64r5eHD1rSZfVje 4aKMHzUBoeufQqupVKa5fSwI/0O8m+ZpipWviRlUZnZtyota5nFx8t2xTzu4XN2hYV9+ jJ8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=fSnplxBweCCocUr1/uA8hqV25pGjDSjz5OO9NSnPmis=; b=QX3O4uOUnMuJB+G/wwpNdaL4dqVdlRxetqqz6Id32346/fJ83moVLqnWxzLv8OTeSp XosYTAcm9bNwbWNRiNEbaGmRwAyZEEyft8mZPkiiqwyF7TAv63ZFe2IFo+nE9j30Vhax 9P4O/GB9hfA5fgppUSp3NRlyQhqpZSwfY8HmM283iElFDBtDQy0KqgndwBBK+zwoCiPV MoejdVhVjittWvNsyhmgL+EwqhrmAOuT1nH3iFRsJ1ZIAvfpuFkM/SPovVcd+egfjPpS 9XMTqWEa7ExlC+NTGRDPeCgH/yZ2E2y+d+F4uscvjPNpeVce12/2nuP0IyxhhEbDYGWl ujXg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lkrtEmQd; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1682091819; x=1684683819; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=fSnplxBweCCocUr1/uA8hqV25pGjDSjz5OO9NSnPmis=; b=fuL7cg3UgvPnUzqmyf1SwjnT++e080iga1wxV/+IhIYwRGkS9S6IS6MU69WAt4lmU+ anYGysB82WGBACJoM643McohYxsKdmVmeeoGphEobfdogm8HacwoGN8g2sxjPaIgGOdX xfcIEKsM1WpE03h5IGrEPrYsvE/bSMtr6t2ZE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682091819; x=1684683819; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fSnplxBweCCocUr1/uA8hqV25pGjDSjz5OO9NSnPmis=; b=gdsA2hA+ncv8W/pqNJOx47fFP0HKJNhz0KObZ2+BmYSqWi0IV6ypeiizD4fz9beTjQ Pw9N8W1GmAbuHJhGv/p5fKVrntZBqpTNlC2J1vva0KiarZ8rwbFFKgr3LKJ+Z3IT6uOI r2B6TzTWR7qLFdLv792LAUrVdMMCCBup+Aqs+DNACP+SrXnirp/iseuVe8wyXZ5FCiX7 jaa2jY0Is92ZFxx6q8pkqSoJ+0SdH/rOh/UGx6n3ADV7aJZOfGRiFN/U5Gt7ggxFNp2Z RL26hWuzvv16TAEL6aC7o4flt0G5MzMxZTjlJIeue65EHTXUpzj/EWa/wR4uVNPjVlmr fwYg== X-Gm-Message-State: AAQBX9fRmicKZi5Q1OGtIDf+KQ1yHZVofg79PV9GnGqc6rxGCMqA9+66 gB6KlbNJRYy9ucAoaPPo9Rrn9zx/ X-Google-Smtp-Source: AKy350bXyXL4bB4ifswl+vKyyHuavLMFzO2k4IqRJgK5xcOvQH4dOHWA/srNUtK+ZNGiAYTrxzKDWw== X-Received: by 2002:a5d:440d:0:b0:2fb:1269:13d9 with SMTP id z13-20020a5d440d000000b002fb126913d9mr947543wrq.14.1682091819170; Fri, 21 Apr 2023 08:43:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:5e90:0:b0:2f8:4432:9c7e with SMTP id ck16-20020a5d5e90000000b002f844329c7els7737037wrb.3.-pod-prod-gmail; Fri, 21 Apr 2023 08:43:38 -0700 (PDT) X-Received: by 2002:adf:e803:0:b0:304:2b3:93c with SMTP id o3-20020adfe803000000b0030402b3093cmr1728075wrm.26.1682091817660; Fri, 21 Apr 2023 08:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682091817; cv=none; d=google.com; s=arc-20160816; b=pz2HUtyQew+dTh+e1c0txSyoijCPOglrvJNyEZRbB66zf12/fGO+VfQImlQcCfhjtQ pz3e/oQfqluNpnKIGkcTsIeQygXsrIab2eEtCWIuhXBWGHbi+mk26GFA2STfDuDzsoEA C4vPLbHT7WwEGK6w04Zg/A6OW7WOUcLD71NQPWp8Eq0suwWgM+kbWXmEDfBaE1dhbjbT mgN+G24J+BQQm6Wc5NZSFtFJJSPJbc6ig1NizRGNe6mCmjJlwIuCM77qW+IlCavsGxh/ 0c5imWBjWiGsh9K/M/8FGaLiXV35tyrGtJEK1Jzil9fjFxBqK1+D6oR+HEjNqzlGR0Dz fPiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=djNvB67cbKXRTcN8CpC06efR9fMemuAiNFDY+IwZgm3+8n/vu9gh8ZExXJ1Hy4Iu6C KWGBOtIFWMa9phW5YEuEm8gWvT/kIUZqf14N+hQc4n1MO3DjRPSO9RIDGbgShpQGu3T6 Sj+wJmijQN77IFBs+qZjBzjsNktrOwLtqoNx/RIjshY2KN1ifGKplFYaOpHgz5UW+/27 PQLvPzWVfKu9CO4JukFFEpx0rjbAxxUSAd3b+8wVtc8XpFzszCO0PurOlZZdTn8yNEGz cE/E8nEpzzHloTzX/2TIg9o0BWZqVWhkPGOlo5wMeUv5ALokYd2ea/ZwbO6vQ9czSQzB /COA== 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 dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id d4-20020adfe844000000b002f3de0cd6a6sor2111365wrn.44.2023.04.21.08.43.37 for (Google Transport Security); Fri, 21 Apr 2023 08:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lkrtEmQd; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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