Path: csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Newsgroups: linux.kernel Subject: Re: [PATCH v4 3/5] drm/tinydrm: add support for LEGO MINDSTORMS EV3 LCD Date: Wed, 09 Aug 2017 20:10:02 +0200 Message-ID: References: X-Original-To: David Lechner , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 508 Organization: linux.* mail to news gateway X-Original-Cc: Daniel Vetter , David Airlie , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Laurent Pinchart , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-Original-Date: Wed, 9 Aug 2017 19:59:24 +0200 X-Original-Message-ID: X-Original-References: <1502127581-10517-1-git-send-email-david@lechnology.com> <1502127581-10517-4-git-send-email-david@lechnology.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1707645 Den 07.08.2017 19.39, skrev David Lechner: > LEGO MINDSTORMS EV3 has an LCD with a ST7586 controller. This adds a new > module for the ST7586 controller with parameters for the LEGO MINDSTORMS > EV3 LCD display. > > Signed-off-by: David Lechner > --- This looks good, even I understand the pixel packing now :-) Now we wait for the DT maintainers to have their say. Reviewed-by: Noralf Trønnes > v4 changes: > * correct order for MAINTAINERS entry > * Drop code not used by LEGO EV3 (regulator, backlight, suspend/resume) > * Make gpios required > * Use lookup table for pixel packing algorithm > * Don't modify clip when used as function parameter > * Use roundup/rounddown macros > > > MAINTAINERS | 6 + > drivers/gpu/drm/tinydrm/Kconfig | 10 + > drivers/gpu/drm/tinydrm/Makefile | 1 + > drivers/gpu/drm/tinydrm/st7586.c | 428 +++++++++++++++++++++++++++++++++++++++ > 4 files changed, 445 insertions(+) > create mode 100644 drivers/gpu/drm/tinydrm/st7586.c > > diff --git a/MAINTAINERS b/MAINTAINERS > index a1e772e..19ca3e6 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -4380,6 +4380,12 @@ S: Orphan / Obsolete > F: drivers/gpu/drm/sis/ > F: include/uapi/drm/sis_drm.h > > +DRM DRIVER FOR SITRONIX ST7586 PANELS > +M: David Lechner > +S: Maintained > +F: drivers/gpu/drm/tinydrm/st7586.c > +F: Documentation/devicetree/bindings/display/st7586.txt > + > DRM DRIVER FOR TDFX VIDEO CARDS > S: Orphan / Obsolete > F: drivers/gpu/drm/tdfx/ > diff --git a/drivers/gpu/drm/tinydrm/Kconfig b/drivers/gpu/drm/tinydrm/Kconfig > index f17c3ca..2e790e7 100644 > --- a/drivers/gpu/drm/tinydrm/Kconfig > +++ b/drivers/gpu/drm/tinydrm/Kconfig > @@ -32,3 +32,13 @@ config TINYDRM_REPAPER > 2.71" TFT EPD Panel (E2271CS021) > > If M is selected the module will be called repaper. > + > +config TINYDRM_ST7586 > + tristate "DRM support for Sitronix ST7586 display panels" > + depends on DRM_TINYDRM && SPI > + select TINYDRM_MIPI_DBI > + help > + DRM driver for the following Sitronix ST7586 panels: > + * LEGO MINDSTORMS EV3 > + > + If M is selected the module will be called st7586. > diff --git a/drivers/gpu/drm/tinydrm/Makefile b/drivers/gpu/drm/tinydrm/Makefile > index 95bb4d4..0c184bd 100644 > --- a/drivers/gpu/drm/tinydrm/Makefile > +++ b/drivers/gpu/drm/tinydrm/Makefile > @@ -6,3 +6,4 @@ obj-$(CONFIG_TINYDRM_MIPI_DBI) += mipi-dbi.o > # Displays > obj-$(CONFIG_TINYDRM_MI0283QT) += mi0283qt.o > obj-$(CONFIG_TINYDRM_REPAPER) += repaper.o > +obj-$(CONFIG_TINYDRM_ST7586) += st7586.o > diff --git a/drivers/gpu/drm/tinydrm/st7586.c b/drivers/gpu/drm/tinydrm/st7586.c > new file mode 100644 > index 0000000..1b39d3f > --- /dev/null > +++ b/drivers/gpu/drm/tinydrm/st7586.c > @@ -0,0 +1,428 @@ > +/* > + * DRM driver for Sitronix ST7586 panels > + * > + * Copyright 2017 David Lechner > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include