Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1686501rdb; Thu, 7 Dec 2023 06:20:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgNmZk4gubTMvmCDqoMgjZ70R7NJsrGFwa2V0ykieq93NmjhcHkBa6UONBwSePwQabeyj7 X-Received: by 2002:a17:90a:d509:b0:286:65a2:a047 with SMTP id t9-20020a17090ad50900b0028665a2a047mr2455802pju.2.1701958814057; Thu, 07 Dec 2023 06:20:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701958814; cv=none; d=google.com; s=arc-20160816; b=XdQyB2askTqrGlyxzSG5/OCTBdTjcHLrSC/yE0LXprZTAWj4klNH+3ISYzofPY1WdB ZKw81iH9nfKY9BMQrDElXNLpm9cgm0LU73hA5EG3ADwRD0r99LEshmgctwRl/8s/mHsX 4m6YStKpOWX0eHe9S8LTa1Y6Ltxsl4JdFERZ82GDYUB9syuV2tEX89Uuiza2zztdRAei jcBeGnAoeKJsfWURBz2VSPD7r9smb4fnc3uNVN4dP5kCByohPqrtMVhgM4QQ08XxdvkY fX7n13yVJf5Gw9aoUQ98ZM333VvjPkoq66F4s38tLPKDtQ5jhricU5iJZhsyppLJl4xY 12tA== 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=z6cxFn4aO0yy5UrlpVJXqr6Ib0MVPiNBWSNHmUIHG5s=; fh=YMCpMfj2GNScjLvWYsHyWUGLqrAoIyNb9XBc8eC5U/M=; b=wL6UlCToS1/2U+1zIuUw/pyRt6xhKxQ7OS1p8qHAOzsvgUIusjZZ/VTtydAoMYNUNM p7NS8u/7pnAL7103xpvLZQurvOCBpNIWcw46hOppU1Axgu1QlV/1vX16DpcbpAwnP/kC ponkw/bfu3D2NGhIqkRbPLpflINs/F6iUfS+kPcy3ClnG0bGLS7QAja5wB8twUCH9pxt 61HlY10xSA8Q1QesC2sH+WQOjtXYPfQqJ1moQChCuk4qys14e+IT7FIjIDwS8fDaQ0XT O7oHZKww4/ZlaHIWdnslUwUjM1j+phBuySGwbUa7M9lduDlmL73KmwGW97f/FF8Rnnob QqTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lFIw9IDm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n14-20020a17090a2bce00b002859d78c5f7si1188221pje.112.2023.12.07.06.20.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 06:20:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lFIw9IDm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 26BCE803BAA8; Thu, 7 Dec 2023 06:20:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443330AbjLGOTq (ORCPT + 99 others); Thu, 7 Dec 2023 09:19:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443346AbjLGOTT (ORCPT ); Thu, 7 Dec 2023 09:19:19 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FD3B271F for ; Thu, 7 Dec 2023 06:17:54 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a1d2f89ddabso118373566b.1 for ; Thu, 07 Dec 2023 06:17:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1701958658; x=1702563458; 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=z6cxFn4aO0yy5UrlpVJXqr6Ib0MVPiNBWSNHmUIHG5s=; b=lFIw9IDmDbFxtTdV2HWq4nh4D43Bw7ixnPJds1UR9LQwepPGs4xq10btTh5p57TA+a 83MwlRKgC+8psICTGQPTWdnitWfvqqT4Ho/BaDVDujbACFh6SBPb/txEtYwGToN793hU vsSGHt/sLqSlBSsRG4zs0cku2cKkorzamqXzo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701958658; x=1702563458; 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=z6cxFn4aO0yy5UrlpVJXqr6Ib0MVPiNBWSNHmUIHG5s=; b=vB2o+MT6YFLke0ImWVetN+rEY76MOCoL2X78h+UtrRks+TlEO/IYkhcpF2m5eEQNzB ym/0F7VwfWbpHJ++fOdtDbro7p9bxS3G/kBJd7wW6Vcnkh4CTNZ77g8cmuNNJidF3LgJ wS5SOddnd6GESJCDakqUGqIbPtfNtzu3WCItUHNwXMZjG2uTRtDHI1ShBya4OHK90xaN fQqmowlHUNZx93tvYd6jiSkA/oPhWt83k3t2G3ebolDZ+tp03BVAnCT/UFHvbCEFuuki 6PzJmSQs3FZXmzfZQ3Isn5ZAWG46Uj6MLkvLfEMQHu8EQMkxCeWOmS3WKgaIevVawTsm WkBA== X-Gm-Message-State: AOJu0Yy7w96PJ4zvB2/pQRieZ8CSGlne+97jXI6No+t3s9Yt4Pcf/+WT OH+XAR3HRt1ssTufzatnGLJSzM2/bULDzdbF/rtOhw== X-Received: by 2002:a17:906:284:b0:a17:3097:3f6e with SMTP id 4-20020a170906028400b00a1730973f6emr1932701ejf.30.1701958657883; Thu, 07 Dec 2023 06:17:37 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:9bf:959c:3c66:46c2]) by smtp.gmail.com with ESMTPSA id f24-20020a170906c09800b00a1e814b7155sm885421ejz.62.2023.12.07.06.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 06:17:37 -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 v5 08/10] drm/panel: Add Ilitek ILI9805 panel driver Date: Thu, 7 Dec 2023 15:16:37 +0100 Message-ID: <20231207141723.108004-9-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231207141723.108004-1-dario.binacchi@amarulasolutions.com> References: <20231207141723.108004-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 06:20:08 -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 v4) Changes in v4: - Remove duplicated code for prepare/unprepare callbacks MAINTAINERS | 6 + drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9805.c | 353 +++++++++++++++++++ 4 files changed, 369 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9805.c diff --git a/MAINTAINERS b/MAINTAINERS index b82dc141d209..4dccc72a0ed6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6646,6 +6646,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..e36984b46e14 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9805.c @@ -0,0 +1,353 @@ +// 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