From: Giandomenico Rossi <rossi@amelchem.com>
To: barebox@lists.infradead.org
Cc: Giandomenico Rossi <rossi@amelchem.com>
Subject: [PATCH v1 2/4] video: mipi-dbi: add display rotation support
Date: Fri, 13 Feb 2026 20:12:45 +0100 [thread overview]
Message-ID: <20260213191247.1671231-3-rossi@amelchem.com> (raw)
In-Reply-To: <20260213191247.1671231-1-rossi@amelchem.com>
Add a rotation field to struct mipi_dbi_dev to allow panel drivers
to configure the display orientation via the MADCTL register.
The value is expressed in degrees counter-clockwise (0, 90, 180, 270)
and is intended to be parsed from the optional 'rotation' device tree
property by individual panel drivers.
Signed-off-by: Giandomenico Rossi <rossi@amelchem.com>
---
include/video/mipi_dbi.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/video/mipi_dbi.h b/include/video/mipi_dbi.h
index 42ca8a6332..ee6aca675c 100644
--- a/include/video/mipi_dbi.h
+++ b/include/video/mipi_dbi.h
@@ -121,6 +121,11 @@ struct mipi_dbi_dev {
*/
void *driver_private;
+ /**
+ * @rotation: initial rotation in degrees Counter Clock Wise
+ */
+ unsigned int rotation;
+
/**
* @damage: Damage rectangle.
*/
--
2.34.1
next prev parent reply other threads:[~2026-02-13 19:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-13 19:12 [PATCH v1 0/4] video: add ILI9488 panel support with MIPI DBI Type C1 Giandomenico Rossi
2026-02-13 19:12 ` [PATCH v1 1/4] video: mipi-dbi: support for MIPI DBI Type C Option 1 Giandomenico Rossi
2026-02-13 19:12 ` Giandomenico Rossi [this message]
2026-02-13 19:12 ` [PATCH v1 3/4] dt-bindings: display: panel: add Ilitek ILI9488 panel Giandomenico Rossi
2026-02-13 19:12 ` [PATCH v1 4/4] video: add Ilitek ILI9488 driver for WF35 panel Giandomenico Rossi
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=20260213191247.1671231-3-rossi@amelchem.com \
--to=rossi@amelchem.com \
--cc=barebox@lists.infradead.org \
/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