[PATCH v5 3/6] drm/mipi-dsi: Add flag to support dual-panel configurations

From: Jun Nie

Date: Mon Jul 27 2026 - 04:10:16 EST


Some devices treat two independent physical DSI panels as a single
logical panel from the CRTC's perspective. However, two separate DSI
hosts are still required to drive the panels individually.

Introduce a `dual_panel` flag to the `mipi_dsi_device` struct. This
allows a panel driver to inform the DSI host that it is part of a
dual-panel setup, enabling the host to coordinate both physical
displays as one.

This change does not force individual panel driver to manage
system-level display topology if the driver does not intended to
support dual panel topology. Only the driver that set the flag to
true need to take care of panel topology.

Signed-off-by: Jun Nie <jun.nie@xxxxxxxxxx>
---
include/drm/drm_mipi_dsi.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h
index 2ab651a36115d..889ef1421207a 100644
--- a/include/drm/drm_mipi_dsi.h
+++ b/include/drm/drm_mipi_dsi.h
@@ -169,6 +169,7 @@ struct mipi_dsi_device_info {
* @host: DSI host for this peripheral
* @dev: driver model device node for this peripheral
* @attached: the DSI device has been successfully attached
+ * @dual_panel: the DSI device is one instance of dual panel
* @name: DSI peripheral chip type
* @channel: virtual channel assigned to the peripheral
* @format: pixel format for video mode
@@ -186,6 +187,7 @@ struct mipi_dsi_device {
struct mipi_dsi_host *host;
struct device dev;
bool attached;
+ bool dual_panel;

char name[DSI_DEV_NAME_SIZE];
unsigned int channel;

--
2.43.0