Skip to contentSkip to conversation

drm/tiny: add support for Waveshare 2inch LCD module

PATCH Superseded Carlis 2 participants 3 messages Mar 30, 2021 – Mar 31, 2021

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Carlis

author
#0 lore raw

v3 cover drm/tiny: add support for Waveshare 2inch LCD module

From: Xuezhi Zhang <[email protected]>

This adds a new module for the ST7789V controller with parameters for the Waveshare 2inch LCD module.

---
v2:change compatible value.
v3:change author name.

---
 MAINTAINERS                    |   8 +
 drivers/gpu/drm/tiny/Kconfig   |  14 ++
 drivers/gpu/drm/tiny/Makefile  |   1 +
 drivers/gpu/drm/tiny/st7789v.c | 269 +++++++++++++++++++++++++++++++++
 4 files changed, 292 insertions(+)
 create mode 100644 drivers/gpu/drm/tiny/st7789v.c
MAINTAINERS +8 -0
index d92f85ca831d..df25e8e0deb1 100644
@@ -5769,6 +5769,14 @@ T:	git git://anongit.freedesktop.org/drm/drm-misc
 F:	Documentation/devicetree/bindings/display/sitronix,st7735r.yaml
 F:	drivers/gpu/drm/tiny/st7735r.c
 
+DRM DRIVER FOR SITRONIX ST7789V PANELS
+M:	David Lechner <[email protected]>
+M:	Xuezhi Zhang <[email protected]>
+S:	Maintained
+T:	git git://anongit.freedesktop.org/drm/drm-misc
+F:	Documentation/devicetree/bindings/display/sitronix,st7789v-dbi.yaml
+F:	drivers/gpu/drm/tiny/st7789v.c
+
 DRM DRIVER FOR SONY ACX424AKP PANELS
 M:	Linus Walleij <[email protected]>
 S:	Maintained
drivers/gpu/drm/tiny/Kconfig +14 -0
index 2b6414f0fa75..ac2c7fb702f0 100644
@@ -131,3 +131,17 @@ config TINYDRM_ST7735R
 	  * Okaya RH128128T 1.44" 128x128 TFT
 
 	  If M is selected the module will be called st7735r.
+
+config TINYDRM_ST7789V
+	tristate "DRM support for Sitronix ST7789V display panels"
+	depends on DRM && SPI
+	select DRM_KMS_HELPER
+	select DRM_KMS_CMA_HELPER
+	select DRM_MIPI_DBI
+	select BACKLIGHT_CLASS_DEVICE
+	help
+	  DRM driver for Sitronix ST7789V with one of the following
+	  LCDs:
+	  * Waveshare 2inch lcd module 240x320 TFT
+
+	  If M is selected the module will be called st7789v.
drivers/gpu/drm/tiny/Makefile +1 -0
index 6ae4e9e5a35f..aa0caa2b6c16 100644
@@ -10,3 +10,4 @@ obj-$(CONFIG_TINYDRM_MI0283QT)		+= mi0283qt.o
 obj-$(CONFIG_TINYDRM_REPAPER)		+= repaper.o
 obj-$(CONFIG_TINYDRM_ST7586)		+= st7586.o
 obj-$(CONFIG_TINYDRM_ST7735R)		+= st7735r.o
+obj-$(CONFIG_TINYDRM_ST7789V)		+= st7789v.o
drivers/gpu/drm/tiny/st7789v.c new file +269 -0

269 lines not on this page · raw message

Signature · 6 lines
2.25.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 22 lines · Carlis

From: Xuezhi Zhang <[email protected]>

This adds a new module for the ST7789V controller with parameters for the Waveshare 2inch LCD module.

---
v2:change compatible value.
v3:change author name.

---
  MAINTAINERS                    |   8 +
  drivers/gpu/drm/tiny/Kconfig   |  14 ++
  drivers/gpu/drm/tiny/Makefile  |   1 +
  drivers/gpu/drm/tiny/st7789v.c | 269 +++++++++++++++++++++++++++++++++
  4 files changed, 292 insertions(+)

create mode 100644 drivers/gpu/drm/tiny/st7789v.c

MAINTAINERS +0 -0
index d92f85ca831d..df25e8e0deb1 100644

MAINTAINERS T: git git://anongit.freedesktop.org/drm/drm-misc · line 5773

Quoted 5 lines
MAINTAINERS +2 -0
@@ -5769,6 +5769,14 @@ T:	git git://anongit.freedesktop.org/drm/drm-misc
  F:	Documentation/devicetree/bindings/display/sitronix,st7735r.yaml
  F:	drivers/gpu/drm/tiny/st7735r.c
 
+DRM DRIVER FOR SITRONIX ST7789V PANELS
+M:	David Lechner <[email protected]>

I should not be added here. I don't have one of these displays.

Quoted 9 lines
MAINTAINERS +6 -0
+M:	Xuezhi Zhang <[email protected]>
+S:	Maintained
+T:	git git://anongit.freedesktop.org/drm/drm-misc
+F:	Documentation/devicetree/bindings/display/sitronix,st7789v-dbi.yaml
+F:	drivers/gpu/drm/tiny/st7789v.c
+
  DRM DRIVER FOR SONY ACX424AKP PANELS
  M:	Linus Walleij <[email protected]>
  S:	Maintained
author
#2 lore raw
Quoted 18 lines · On Tue, 30 Mar 2021 09:17:19 -0500 David Lechner <[email protected]> wrote:
Quoted 17 lines · Carlis

From: Xuezhi Zhang <[email protected]>

This adds a new module for the ST7789V controller with parameters for the Waveshare 2inch LCD module.

---
v2:change compatible value.
v3:change author name.

---
  MAINTAINERS                    |   8 +
  drivers/gpu/drm/tiny/Kconfig   |  14 ++
  drivers/gpu/drm/tiny/Makefile  |   1 +
  drivers/gpu/drm/tiny/st7789v.c | 269

+++++++++++++++++++++++++++++++++ 4 files changed, 292 insertions(+)
create mode 100644 drivers/gpu/drm/tiny/st7789v.c

Quoted 11 lines

MAINTAINERS T: git git://anongit.freedesktop.org/drm/drm-misc · line 5773

Quoted 10 lines
MAINTAINERS +0 -0
index d92f85ca831d..df25e8e0deb1 100644
@@ -5769,6 +5769,14 @@ T:	git

git://anongit.freedesktop.org/drm/drm-misc F:
Documentation/devicetree/bindings/display/sitronix,st7735r.yaml
F: drivers/gpu/drm/tiny/st7735r.c

MAINTAINERS +2 -0
+DRM DRIVER FOR SITRONIX ST7789V PANELS
+M:	David Lechner <[email protected]>  

OK, i will remove this in the next patch.

Quoted 11 lines

I should not be added here. I don't have one of these displays.

Quoted 9 lines
MAINTAINERS +4 -0
+M:	Xuezhi Zhang <[email protected]>
+S:	Maintained
+T:	git git://anongit.freedesktop.org/drm/drm-misc
+F:

Documentation/devicetree/bindings/display/sitronix,st7789v-dbi.yaml
+F: drivers/gpu/drm/tiny/st7789v.c +
DRM DRIVER FOR SONY ACX424AKP PANELS
M: Linus Walleij <[email protected]>
S: Maintained

thanks,
Xuezhi Zhang

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel