From: Chen-Yu Tsai <wens@kernel.org>
To: Neil Armstrong <neil.armstrong@linaro.org>,
Jessica Zhang <jesszhan0024@gmail.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>
Cc: Sebastian Reichel <sebastian.reichel@collabora.com>,
Gerald Loacker <gerald.loacker@wolfvision.net>,
Michael Riesch <michael.riesch@collabora.com>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Chen-Yu Tsai <wens@kernel.org>, David Airlie <airlied@gmail.com>,
Simona Vetter <simona@ffwll.ch>,
Archit Anant <architanant5@gmail.com>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: [RFT PATCH v2 0/2] drm/panel: sitronix-st7789v: Convert to mipi_dbi
Date: Tue, 17 Feb 2026 17:27:35 +0800 [thread overview]
Message-ID: <20260217092738.3238016-1-wens@kernel.org> (raw)
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.
Thanks
ChenYu
Changes since v1:
- Fix compile error from half changed reset GPIO handling
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 | 306 +++++++-----------
include/drm/drm_mipi_dbi.h | 9 +
4 files changed, 121 insertions(+), 199 deletions(-)
--
2.47.3
next reply other threads:[~2026-02-17 9:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-17 9:27 Chen-Yu Tsai [this message]
2026-02-17 9:27 ` [RFT PATCH v2 1/2] drm/mipi-dbi: Provide option to invert reset GPIO logic Chen-Yu Tsai
2026-02-17 9:27 ` [RFT PATCH v2 2/2] drm/panel: sitronix-st7789v: Convert to mipi_dbi Chen-Yu Tsai
2026-02-18 6:37 ` [RFT PATCH v2 0/2] " Archit Anant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260217092738.3238016-1-wens@kernel.org \
--to=wens@kernel.org \
--cc=airlied@gmail.com \
--cc=architanant5@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gerald.loacker@wolfvision.net \
--cc=jesszhan0024@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=michael.riesch@collabora.com \
--cc=miquel.raynal@bootlin.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=sebastian.reichel@collabora.com \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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