From patchwork Thu Nov 11 15:22:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 1748 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 967253F07B for ; Thu, 11 Nov 2021 16:23:13 +0100 (CET) Received: by mail-wm1-f70.google.com with SMTP id o18-20020a05600c511200b00332fa17a02esf2846359wms.5 for ; Thu, 11 Nov 2021 07:23:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636644193; cv=pass; d=google.com; s=arc-20160816; b=dpwS0lWnnGWCrmgZN9Zjtjn9axXGsppCO2QMfIhXcsvkRynmJpP9CieNfnX2lkXS4H K0BUDrVzUrv4eshKOukd4gPoTXJoXzYRf1Ep5MapILdRsUu9BApGYHLO8WeNy8mj3snM UZU0XM259eXqS24al7CXDDWZfXtfAOdru2ktrJJtH+gfO7wYIthETNHc2WKDFjKF/Sgs SFDzt6wNvPLITCVX8dYWIp0LTS30Bp/vPvNxMLUGU16vFyG5/Q6mGjBoCDhlPIh6DPnz z5cEH7BkKqeZfWdc8WkCBNyi67ugFIvR2sH3+0ZPjjPuCDZHZPDnZbBhhdaPYjniHT3b /2nA== 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=KQqanUIKRGPN5u5YEDDitXh/fXFtQXbUkmkhPley8Pw=; b=Bk8C2pwyIEVy5Rooofx0qGCvfUv8nxAM7c0HKLFMZtGi39yYAo+5Jfn2zgSJqJM2s+ N754fe057ho+r7rpRnumi57r1onnuq2JMpeuilSMK8Bk3Yd5IH+zHHolY9n9YvgIz+N+ qei3gokW7IdRuZsEWU/tP7EoVRJTTro9Rcy2BFn96Cwrw+F8beUHCuDJ7Zsrepisvmao Eaoc2QBuJUUda0JVQ9+VzoXFVq2IA3Wf+F10Ro2BSgvG/EuQCdmw0sAkzsBJqiTKqYSY d1SWwvjNyQPvrxBHOa72yBEFRaPmFfNNwGBgnaPo6eZ89YB2QS/YzpnTFpYXJ0Epo+1n xt8w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="rJRA/r67"; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=KQqanUIKRGPN5u5YEDDitXh/fXFtQXbUkmkhPley8Pw=; b=e8u4Uwwk0dJxloLtJkmDwjCMleDfasEVnNn1k8nYyuChOuiRG8xQ0OIkluhE3029XV 2j7R1Yawn9yGYnspehQjrAGr6qZ2PsgB9zoaUjzOwV94uIGs4VF+0Gbr4j1o4fUZwv6L LRm8QcPMFI0R+VnqlvdbmXKEoIxbEsYGT3ufo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=KQqanUIKRGPN5u5YEDDitXh/fXFtQXbUkmkhPley8Pw=; b=CbkOFYlzYy2watYjj7rzUQTLnvXl+5pzJzzSNF2aCGiiKHgIthE9/cn0e0CdDIED96 ps/v4tVuYCtqDvKufOqs6I7hhqcINzLlqzcRmvM7U1ueojlKWPcKQAQjjv+xodMqYz0m DR5sqhQ/cQo9Q9xTXVnN0F75o1LB0sPUljLJvI626ezvenvBBQDRckJbNKDbiTP7UxQv QKEYVQYQ14gCAwVzq3n/PKeb2oTukYVTDSD+ISk5ku6zmeG2AeyOYJU0WGA8qZwayl/r QmfZVAWd0qKt8GQg7x1ZLFVqtg4VJdNDuDS4St26BD9tfSkj0C5L5wPdA5XKoy2TsOad aVjw== X-Gm-Message-State: AOAM53382eoyiQlNSbUiDsV8nTaRrESn0MzgZsp3OS0n3Bhl1JVsWS1U 0AeYhwdBv2xGu33AYK3ZD+lLAWty X-Google-Smtp-Source: ABdhPJzTJbpXu7j1o70RWV5OzLj9kPkFFkXNUJsf4lL6pBal7v0lt70VudYUB6qSCxOd4eipy1ZAzA== X-Received: by 2002:a5d:48cf:: with SMTP id p15mr9646884wrs.277.1636644193345; Thu, 11 Nov 2021 07:23:13 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:4092:: with SMTP id o18ls2188075wrp.1.gmail; Thu, 11 Nov 2021 07:23:12 -0800 (PST) X-Received: by 2002:adf:e848:: with SMTP id d8mr9671800wrn.3.1636644192349; Thu, 11 Nov 2021 07:23:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636644192; cv=none; d=google.com; s=arc-20160816; b=wiD3xi/c4zkhHXOdwREN7aTkpk8kFowcdKcA3nlCqr+7Eh8kbKJwAg8siDyk3F9Kew 7SvJCq+E2JaSY8AMSCWAXTMj/fj8n2pN4/Ld702+qbXUecMsg+z0SMwS7XvDGEs8rGeE aDRgTcoNNca7Km625mK6FhIqbdAQRLYtJSH5Z4COXb73vmNliWOxOKABJj+hufSCmgAg qC4ccKFmdsg+qNgysn0MwEfoxzCseIUF4/bzyCuTQORzfM+BKk5qNznJwDpX7LY6GtCa S2uJXgvmuM3kWQt/eaUAf3vWe2eM8GA5dWkHC2Qfa8qu6STzA6Uig0Rz/gffaEK9Kflq pKHw== 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=kG4p4t0GNhMc6vSdxbHA90k2Ua/G4bxUK2nIlAZ2vk4=; b=gYeHGwWupavNlRJ2NvEev+LkLoo0aHujR/TcDG76FPmorLpaNhFXZVd2JMcv7mKlJx AH/rPaBxa8YT71tJcndRpXvLXbazPM9BluTSzXmdsUkgvw1YebZ99Cu9i3TCiMsRGMvH 3F6upWsAqaMvF8qrgpUw9HqxaZYus1+lQSgsufXgic+/0kGRCMAXvtHAsm7TtVnBlLIL dBry28oDzvb1JYokDxrjCQ92B9Xjm+r20bmlH31HiV0tN3sRmx5xjcb4WS8WvEUFDCMi gUjDeyp82NMyONFEsp7tza/j65UZn4dwKDAJyF4A2mTaHsjJTxBiuXENa0QP2ZaoIOtL poqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="rJRA/r67"; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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 x2sor6120050wmc.24.2021.11.11.07.23.12 for (Google Transport Security); Thu, 11 Nov 2021 07:23:12 -0800 (PST) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:600c:4e4a:: with SMTP id e10mr5118458wmq.176.1636644191942; Thu, 11 Nov 2021 07:23:11 -0800 (PST) Received: from panicking.pdxnet.pdxeng.ch ([5.171.215.77]) by smtp.gmail.com with ESMTPSA id f3sm8973683wmb.12.2021.11.11.07.23.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 07:23:11 -0800 (PST) From: Michael Trimarchi To: Ariel D'Alessandro Cc: linux-amarula@amarulasolutions.com, Anthony Brandon Subject: [PATCH 08/11] drm/panel: Add Ilitek ILI9805 panel driver Date: Thu, 11 Nov 2021 16:22:55 +0100 Message-Id: <20211111152258.26131-8-michael@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111152258.26131-1-michael@amarulasolutions.com> References: <20211111152258.26131-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="rJRA/r67"; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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: , The GPM1790A0 panel is based on the Ilitek ILI9805 Controller. Add a driver for it. Signed-off-by: Michael Trimarchi --- drivers/gpu/drm/panel/Kconfig | 8 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-ilitek-ili9805.c | 286 +++++++++++++++++++ 3 files changed, 295 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-ilitek-ili9805.c diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index ee135b178235..fa3860f801bb 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -149,6 +149,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 9e80106f69dc..060a205d9cea 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -13,6 +13,7 @@ obj-$(CONFIG_DRM_PANEL_FEIXIN_K101_IM2BA02) += panel-feixin-k101-im2ba02.o obj-$(CONFIG_DRM_PANEL_FEIYANG_FY07024DI26A30D) += panel-feiyang-fy07024di26a30d.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..2cf10f5c17d4 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9805.c @@ -0,0 +1,286 @@ +// 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