mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFT PATCH 0/2] drm/panel: sitronix-st7789v: Convert to mipi_dbi
@ 2026-02-17  6:36 Chen-Yu Tsai
  2026-02-17  6:36 ` [RFT PATCH 1/2] drm/mipi-dbi: Provide option to invert reset GPIO logic Chen-Yu Tsai
  2026-02-17  6:36 ` [RFT PATCH 2/2] drm/panel: sitronix-st7789v: Convert to mipi_dbi Chen-Yu Tsai
  0 siblings, 2 replies; 4+ messages in thread
From: Chen-Yu Tsai @ 2026-02-17  6:36 UTC (permalink / raw)
  To: Neil Armstrong, Jessica Zhang, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann
  Cc: Sebastian Reichel, Gerald Loacker, Michael Riesch, Miquel Raynal,
	Chen-Yu Tsai, David Airlie, Simona Vetter, Archit Anant,
	dri-devel, linux-kernel

Hi folks,

This small series converts the st7789v panel to use the mipi-dbi helpers
for register access.

Originally I intended to also add tinydrm support. My purpose was just
to test a TFT module that is on the Avaota A1 board. Archit is interested
in working on this driver, and I already used his/her previous patch to
check that my TFT was sort of working, albeit probably with the wrong
internal parameters. So this series will serve as a base for that work.

Patch 1 adds an option to invert the reset GPIO logic in the mipi-dbi
helpers. The reset logic originally assumes "high" is out of reset,
so an "enable" GPIO rather than a "reset" GPIO. However the st7789v
drivers assumes the proper "reset" GPIO logic.

Patch 2 converts all SPI register accesses in the st7789v to use the
mipi_dbi helpers. This actually reduces the number of function calls,
as the command and data portions of each message are combined. This
conversion also lets the driver support 8-bit plus D/C GPIO transfers.


This series is unfortunately only compile tested, as I do not have an
st7789v panel that is wired up for RGB input. So please help test the
changes.


Chen-Yu Tsai (2):
  drm/mipi-dbi: Provide option to invert reset GPIO logic
  drm/panel: sitronix-st7789v: Convert to mipi_dbi

 drivers/gpu/drm/drm_mipi_dbi.c                |   4 +-
 drivers/gpu/drm/panel/Kconfig                 |   1 +
 .../gpu/drm/panel/panel-sitronix-st7789v.c    | 304 +++++++-----------
 include/drm/drm_mipi_dbi.h                    |   9 +
 4 files changed, 120 insertions(+), 198 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-02-17  7:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-17  6:36 [RFT PATCH 0/2] drm/panel: sitronix-st7789v: Convert to mipi_dbi Chen-Yu Tsai
2026-02-17  6:36 ` [RFT PATCH 1/2] drm/mipi-dbi: Provide option to invert reset GPIO logic Chen-Yu Tsai
2026-02-17  6:36 ` [RFT PATCH 2/2] drm/panel: sitronix-st7789v: Convert to mipi_dbi Chen-Yu Tsai
2026-02-17  7:46   ` Chen-Yu Tsai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome