Skip to content

RFC drm/panel: sitronix-st7789v: Convert to mipi_dbi and add tinydrm

Archit Anant dri-devel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 RFC Latest3 patches 0 repliesNew

Changes in v3 from the cover letter

- Combined Chen-Yu's mipi_dbi conversion patches with the tinydrm extension.
- Added support for the HannStar HSD20-IPS panel.
- Refactored the architecture into a "Hybrid" driver that supports both standalone SPI and external display controllers.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/mipi-dbi: Provide option to invert reset GPIO logicdrivers/gpu/drm/drm_mipi_dbi.c include/drm/drm_mipi_dbi.h+11 -20 replies
2/3drm/panel: sitronix-st7789v: Convert to mipi_dbidrivers/gpu/drm/panel/Kconfig drivers/gpu/drm/panel/panel-sitronix-st7789v.c+110 -1970 replies
3/3drm/panel: sitronix-st7789v: add standalone tinydrm supportdrivers/gpu/drm/panel/panel-sitronix-st7789v.c+127 -260 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [RFC PATCH v3 0/3] drm/panel: sitronix-st7789v: Convert to mipi_dbi and add tinydrm

This series modernizes the ST7789V display driver by converting it to the mipi_dbi framework and adding standalone display support.

Patches 1 and 2 (by Chen-Yu Tsai) refactor the driver to use the mipi_dbi helpers for register access. This enables support for 8-bit SPI
+ D/C GPIO configurations, removing the previous 9-bit SPI restriction.

Patch 3 (my contribution) builds upon Chen-Yu's work to add the drm_simple_display_pipe infrastructure. This allows the panel driver to register as a full DRM device (tinydrm) when a master display controller is not present.

Hardware Testing Status:
Like Chen-Yu, I do not currently possess the ST7789V hardware wired for these configurations. This series is compile-tested only. I am sending this as an RFC to get feedback on the hybrid (Panel + TinyDRM) architecture while we wait/search for hardware testers.

Device Tree Bindings:
Note: The Device Tree bindings for the newly introduced 'hannstar,hsd20-ips' compatible string are currently undocumented. I intend to submit the accompanying YAML schema as a follow-up patch once the C-level architecture is reviewed and confirmed to be the preferred direction.

Changes in v3:
- Combined Chen-Yu's mipi_dbi conversion patches with the tinydrm extension.
- Added support for the HannStar HSD20-IPS panel.
- Refactored the architecture into a "Hybrid" driver that supports both standalone SPI and external display controllers.

Archit Anant (1):
drm/panel: sitronix-st7789v: add standalone tinydrm support

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    | 417 +++++++++---------
 include/drm/drm_mipi_dbi.h                    |   9 +
 4 files changed, 227 insertions(+), 204 deletions(-)
Signature · 1 line
2.39.5