Unverified Commit b362de16 authored by Marcus Folkesson's avatar Marcus Folkesson Committed by Javier Martinez Canillas
Browse files

drm/sitronix/st7571: split up the driver into a common and an i2c part



Split up the driver to make it possible to add support for hw interfaces
other than I2C.

Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Signed-off-by: default avatarMarcus Folkesson <marcus.folkesson@gmail.com>
Link: https://patch.msgid.link/20251215-st7571-split-v3-5-d5f3205c3138@gmail.com


Signed-off-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
parent b0c20d82
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8201,6 +8201,7 @@ S: Maintained
F:	Documentation/devicetree/bindings/display/sitronix,st7567.yaml
F:	Documentation/devicetree/bindings/display/sitronix,st7571.yaml
F:	drivers/gpu/drm/sitronix/st7571-i2c.c
F:	drivers/gpu/drm/sitronix/st7571.c
F:	drivers/gpu/drm/sitronix/st7571.h
DRM DRIVER FOR SITRONIX ST7701 PANELS
+21 −5
Original line number Diff line number Diff line
config DRM_ST7571_I2C
	tristate "DRM support for Sitronix ST7571 display panels (I2C)"
	depends on DRM && I2C && MMU
config DRM_ST7571
	tristate "DRM support for Sitronix ST7567/ST7571 display panels"
	depends on DRM && MMU
	select DRM_CLIENT_SELECTION
	select DRM_GEM_SHMEM_HELPER
	select DRM_KMS_HELPER
	select REGMAP_I2C
	select VIDEOMODE_HELPERS
	help
	  DRM driver for Sitronix ST7571 panels controlled over I2C.
	  Sitronix ST7571 is a driver and controller for 4-level gray
	  scale and monochrome dot matrix LCD panels.

	  DRM driver for Sitronix ST7567/ST7571 panels.
	  This is only the core driver, a driver for the appropriate bus
	  transport in your chip also must be selected.

	  if M is selected the module will be called st7571.

config DRM_ST7571_I2C
	tristate "DRM support for Sitronix ST7567/ST7571 display panels (I2C)"
	depends on DRM_ST7571 && I2C
	select REGMAP
	help
	  Sitronix ST7571 is a driver and controller for 4-level gray
	  scale and monochrome dot matrix LCD panels.

	  DRM driver for Sitronix ST7565/ST7571 panels connected via I2C bus.

	  if M is selected the module will be called st7571-i2c.

+1 −0
Original line number Diff line number Diff line
obj-$(CONFIG_DRM_ST7571)		+= st7571.o
obj-$(CONFIG_DRM_ST7571_I2C)		+= st7571-i2c.o
obj-$(CONFIG_DRM_ST7586)		+= st7586.o
obj-$(CONFIG_DRM_ST7735R)		+= st7735r.o
+13 −912

File changed.

Preview size limit exceeded, changes collapsed.

+918 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading