From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Subject: Re: [PATCH v1 2/2] drm/tinydrm: add driver for ST7735R panels Date: Wed, 6 Dec 2017 19:27:47 +0100 Message-ID: <455f5c7a-9f3c-c019-9418-94f0c2015afd@tronnes.org> References: <1511924469-11448-1-git-send-email-david@lechnology.com> <1511924469-11448-3-git-send-email-david@lechnology.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <1511924469-11448-3-git-send-email-david-nq/r/kbU++upp/zk7JDF2g@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: David Lechner , dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: limor-6aDhHjTmHzzR7s880joybQ@public.gmane.org, Rob Herring , Mark Rutland , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Den 29.11.2017 04.01, skrev David Lechner: > This adds a new driver for Sitronix ST7735R display panels. > > This has been tested using an Adafruit 1.8" TFT. > > Signed-off-by: David Lechner > --- > MAINTAINERS | 6 + > drivers/gpu/drm/tinydrm/Kconfig | 10 ++ > drivers/gpu/drm/tinydrm/Makefile | 1 + > drivers/gpu/drm/tinydrm/st7735r.c | 237 ++++++++++++++++++++++++++++++++++++++ > 4 files changed, 254 insertions(+) > create mode 100644 drivers/gpu/drm/tinydrm/st7735r.c > > diff --git a/MAINTAINERS b/MAINTAINERS > index a174632..9c7707e 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -4462,6 +4462,12 @@ S: Maintained > F: drivers/gpu/drm/tinydrm/st7586.c > F: Documentation/devicetree/bindings/display/st7586.txt > > +DRM DRIVER FOR SITRONIX ST7735R PANELS > +M: David Lechner I know we haven't done this in the other tinydrm drivers, but I think we should start adding which tree the development is happening in: T:    git git://anongit.freedesktop.org/drm/drm-misc > +S: Maintained > +F: drivers/gpu/drm/tinydrm/st7735r.c > +F: Documentation/devicetree/bindings/display/st7735r.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 90c5bd5..b0e567d 100644 > --- a/drivers/gpu/drm/tinydrm/Kconfig > +++ b/drivers/gpu/drm/tinydrm/Kconfig > @@ -52,3 +52,13 @@ config TINYDRM_ST7586 > * LEGO MINDSTORMS EV3 > > If M is selected the module will be called st7586. > + > +config TINYDRM_ST7735R > + tristate "DRM support for Sitronix ST7735R display panels" > + depends on DRM_TINYDRM && SPI > + select TINYDRM_MIPI_DBI > + help > + DRM driver Sitronix ST7735R with one of the following LCDs: > + * JD-T18003-T01 1.8" 128x160 TFT > + > + If M is selected the module will be called st7735r. > diff --git a/drivers/gpu/drm/tinydrm/Makefile b/drivers/gpu/drm/tinydrm/Makefile > index 8aeee53..49a1119 100644 > --- a/drivers/gpu/drm/tinydrm/Makefile > +++ b/drivers/gpu/drm/tinydrm/Makefile > @@ -8,3 +8,4 @@ obj-$(CONFIG_TINYDRM_ILI9225) += ili9225.o > obj-$(CONFIG_TINYDRM_MI0283QT) += mi0283qt.o > obj-$(CONFIG_TINYDRM_REPAPER) += repaper.o > obj-$(CONFIG_TINYDRM_ST7586) += st7586.o > +obj-$(CONFIG_TINYDRM_ST7735R) += st7735r.o > diff --git a/drivers/gpu/drm/tinydrm/st7735r.c b/drivers/gpu/drm/tinydrm/st7735r.c > new file mode 100644 > index 0000000..6435b00 > --- /dev/null > +++ b/drivers/gpu/drm/tinydrm/st7735r.c > @@ -0,0 +1,237 @@ > +/* > + * DRM driver for Sitronix ST7735R 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