Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1484518pxa; Sat, 15 Aug 2020 23:32:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0SIe37z6pi0qqO4vzfc+PMEBkYi5+C7y3Lp373Gd8KDq31EiKvtC46P/KFAFG3lC6fmEn X-Received: by 2002:a17:906:140e:: with SMTP id p14mr9868702ejc.430.1597559525408; Sat, 15 Aug 2020 23:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597559525; cv=none; d=google.com; s=arc-20160816; b=S95dAYk8k9r/MZkC45BRMmDKE5PegC3yO/waK5K1Gz3JzESgWjqZJkKnDKUlqEbYdN ztWvqzQldZULkOs3psuoFDgY31qenBTExSXMim1yALBtiFpAFxqRBl33Vh37H7TyU6MO m9a9Df2XpYO3uZgW3vtt5qx6eAf6cAYem/sy7Kr5ZTbi+PxB7SHvFuuTHFiBg4W4sARf 7BzHq+W6vGZBFKt3LBeH4qHi8/WgW8sAwzCKYNRgBFP2+Cj/MdUabOZ1bjaJrSjuCAUg ULeWEBaQquvPYBQdJNjPDjQYhQWhvX7MrwQYsZad27UTLxzqozhKK58SARzCA9ijEycq OdvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=AIyvBU/C5uwA9Kj8NSVEBSrwqE5SwszcqIjrw22ALBs=; b=qzK/YU0cl7gSilcWMHzBHdDfgVt2YSWg1AkWgYA8HypTX+o9gj1TbglA9Nn342C6jW /98osA2moQtprn5SN+CtHy9lOOkzm6clw8EOQVExs2SE6x6wlcpS0RNw24nXxmLXJecM jZW7rZaxdrKdUCYys86VsEaTV/Hr6emXJfTrmHTAEpQc5x12vLD7D/hWhbM9SZfyvvmH aQ17C9RqICDprvWj5NtnTgUqhDWGCoBGcZMYyoGmisjzkM0ILtQkss+TGUjBlaSSDo33 SRKimSeox3/9o2Z7Q4OM+eE9bvW5aZlzn5i8y6mw4O4DqqsieJfd20PZVi64E2h8w4vf LWGA== 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 e12si7879490ejr.708.2020.08.15.23.31.42; Sat, 15 Aug 2020 23:32:05 -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 S1728670AbgHOWaA (ORCPT + 99 others); Sat, 15 Aug 2020 18:30:00 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:51354 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726598AbgHOWaA (ORCPT ); Sat, 15 Aug 2020 18:30:00 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 3000580537; Sat, 15 Aug 2020 11:32:28 +0200 (CEST) Date: Sat, 15 Aug 2020 11:32:26 +0200 From: Sam Ravnborg To: Guido =?iso-8859-1?Q?G=FCnther?= Cc: Thierry Reding , 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: Re: [PATCH 3/3] drm/panel: Add panel driver for the Mantix MLAF057WE51-X DSI panel Message-ID: <20200815093226.GB993113@ravnborg.org> References: <0a7539135cc46eec5636ca89f52695f4a1197841.1597412076.git.agx@sigxcpu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0a7539135cc46eec5636ca89f52695f4a1197841.1597412076.git.agx@sigxcpu.org> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=aP3eV41m c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=8nJEP1OIZ-IA:10 a=ze386MxoAAAA:8 a=e5mUnYsNAAAA:8 a=3KzlNI64WeVczAfcRB8A:9 a=wPNLvfGTeEIA:10 a=iBZjaW-pnkserzjvUTHh:22 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guido. On Fri, Aug 14, 2020 at 03:36:23PM +0200, Guido G?nther wrote: > The panel uses a Focaltech FT8006p, the touch part is handled by the > already existing edt-ft5x06. > > Signed-off-by: Guido G?nther Looks good. A few notes in the following, nothing major. Sam > --- > 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 not needed. > +#include > +#include > + > +#include