Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp369708pxa; Fri, 14 Aug 2020 06:39:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqLysfbdNPpWyEIee8Rc1oA5GHianHuQop2nyrJhqqSirH5nNOCFtx8gReRUlJtPtYbBIN X-Received: by 2002:a17:906:4bc5:: with SMTP id x5mr2549236ejv.177.1597412357466; Fri, 14 Aug 2020 06:39:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597412357; cv=none; d=google.com; s=arc-20160816; b=chYzbwOamo4Kq5iSjwQ2DKrlE059nj0JlhOZE8W61yFPlGUDwUPBJGTmURGZv8rb84 a9/1t26m2aQ/usVRhA5DKbXsO5LNic22ol2Qk3K+gk8OlX6OYbxA1xnPSPYf9SLt5ImP CewUqrMKitC6mwpoOGBGzbLX8PCVszI8RSgD16wVq9MadN/n9V8JjMWURh83fzXlGPoI PdYO3LPs8vrI2itwAVWpruy5pgghHjeLfo91TQm7KPB2F/Uq7xlDCPh/ZijpDwIJ6Fgx xK1tp7yk86NcDu7k7MvgR3NdLFHhLjjyOBAqys1v1b9sx22sCrBvTrU3bMEeOIC0jTqr bw1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=7/ERF3UuiPzZvvouqMfoZ5dBnj9+oLUSCImF6wiKqDA=; b=Pa9P4f8mQXnWwuns0GD7jlZmZwfhW0XZFawxHJrQBgg4XhGxE5RZS4I0d01FdHU7I7 Ue6S+uhGxUt2YJ0ZBcbmnYHkIpsQ/69qYH2ZF7Ws8qqtfW7USRghz9BshV76vXRf/gsN 4lOBDObmYg/UysQKVZY5F+465Du5Skl45s2xNwcrBtbdH15puiLS88QLVfWOZ10tzq4m 6sCkwgL1WDjfkrOxVHC5Zckho5mxho6F4pqjAxcfbpyuzHdpK3YaB/ceFvSKTXzEQ305 6VkLn/sVvH+0lWVaEFTyuLKZrfwwXN2d9cNu/Hr4GwSy/gg2elRkIFvF1KYw2Uclnmjh TT2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si5614931ejr.110.2020.08.14.06.38.54; Fri, 14 Aug 2020 06:39:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728652AbgHNNgh (ORCPT + 99 others); Fri, 14 Aug 2020 09:36:37 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:43878 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728638AbgHNNgf (ORCPT ); Fri, 14 Aug 2020 09:36:35 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 63B8AFB06; Fri, 14 Aug 2020 15:36:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DA21eEaxDjRI; Fri, 14 Aug 2020 15:36:26 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 145A0457CF; Fri, 14 Aug 2020 15:36:24 +0200 (CEST) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Arnd Bergmann , Linus Walleij , Heiko Stuebner , Daniel Palmer , Lubomir Rintel , Mark Brown , Kuninori Morimoto , allen , Mauro Carvalho Chehab , "David S. Miller" , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel Date: Fri, 14 Aug 2020 15:36:23 +0200 Message-Id: <0a7539135cc46eec5636ca89f52695f4a1197841.1597412076.git.agx@sigxcpu.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The panel uses a Focaltech FT8006p, the touch part is handled by the already existing edt-ft5x06. Signed-off-by: Guido Günther --- MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-mantix-mlaf057we51.c | 362 ++++++++++++++++++ 4 files changed, 381 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c diff --git a/MAINTAINERS b/MAINTAINERS index 83ba7b62651f7..7dfe4cc3d4ec8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -5474,6 +5474,13 @@ S: Maintained F: drivers/gpu/drm/panel/panel-lvds.c F: Documentation/devicetree/bindings/display/panel/lvds.yaml +DRM DRIVER FOR MANTIX MLAF057WE51 PANELS +M: Guido Günther +R: Purism Kernel Team +S: Maintained +F: Documentation/devicetree/bindings/display/panel/mantix,mlaf057we51-x.yaml +F: drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c + DRM DRIVER FOR MATROX G200/G400 GRAPHICS CARDS S: Orphan / Obsolete F: drivers/gpu/drm/mga/ diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index de2f2a452be55..8d97d07c58713 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -217,6 +217,17 @@ config DRM_PANEL_NOVATEK_NT39016 Say Y here if you want to enable support for the panels built around the Novatek NT39016 display controller. +config DRM_PANEL_MANTIX_MLAF057WE51 + tristate "Mantix MLAF057WE51-X MIPI-DSI LCD panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for the Mantix + MLAF057WE51-X MIPI DSI panel as e.g. used in the Librem 5. It + has a resolution of 720x1440 pixels, a built in backlight and touch + controller. + config DRM_PANEL_OLIMEX_LCD_OLINUXINO tristate "Olimex LCD-OLinuXino panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index e45ceac6286fd..15a4e77529514 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -20,6 +20,7 @@ obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) += panel-nec-nl8048hl11.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35510) += panel-novatek-nt35510.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT39016) += panel-novatek-nt39016.o +obj-$(CONFIG_DRM_PANEL_MANTIX_MLAF057WE51) += panel-mantix-mlaf057we51.o obj-$(CONFIG_DRM_PANEL_OLIMEX_LCD_OLINUXINO) += panel-olimex-lcd-olinuxino.o obj-$(CONFIG_DRM_PANEL_ORISETECH_OTM8009A) += panel-orisetech-otm8009a.o obj-$(CONFIG_DRM_PANEL_OSD_OSD101T2587_53TS) += panel-osd-osd101t2587-53ts.o diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c new file mode 100644 index 0000000000000..6c07bcdb75937 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c @@ -0,0 +1,362 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Mantix MLAF057WE51 5.7" MIPI-DSI panel driver + * + * Copyright (C) Purism SPC 2020 + */ + +#include +#include +#include +#include +#include +#include + +#include