Skip to contentSkip to conversation

drm/bridge: cdns-dsi: Set bridge connector type

PATCH In review Swamil Jain 2 participants 2 messages Nov 19, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/bridge: cdns-dsi: Set bridge connector type

Set the bridge connector type to DRM_MODE_CONNECTOR_DSI to properly identify the DSI connector in the display pipeline.

Without this, the bridge connector type defaults to DRM_MODE_CONNECTOR_Unknown. Hence, to get correct bridge type set the bridge connector type to DRM_MODE_CONNECTOR_DSI.

---
 drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +1 -0
index 09b289f0fcbf..84b5a0cdf722 100644
@@ -1323,6 +1323,7 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev)
 	 */
 	input->id = CDNS_DPI_INPUT;
 	input->bridge.of_node = pdev->dev.of_node;
+	input->bridge.type = DRM_MODE_CONNECTOR_DSI;
 
 	/* Mask all interrupts before registering the IRQ handler. */
 	writel(0, dsi->regs + MCTL_MAIN_STS_CTL);
#1 lore raw

Hi,

Quoted 17 lines · Swamil Jain

Set the bridge connector type to DRM_MODE_CONNECTOR_DSI to properly identify the DSI connector in the display pipeline.

Without this, the bridge connector type defaults to DRM_MODE_CONNECTOR_Unknown. Hence, to get correct bridge type set the bridge connector type to DRM_MODE_CONNECTOR_DSI.

---
 drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +0 -0
index 09b289f0fcbf..84b5a0cdf722 100644

drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c static int cdns_dsi_drm_probe(struct platform_device *pdev) · line 1329

Quoted 7 lines
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c +1 -0
@@ -1323,6 +1323,7 @@ static int cdns_dsi_drm_probe(struct platform_device *pdev)
 	 */
 	input->id = CDNS_DPI_INPUT;
 	input->bridge.of_node = pdev->dev.of_node;
+	input->bridge.type = DRM_MODE_CONNECTOR_DSI;
 
 	/* Mask all interrupts before registering the IRQ handler. */
 	writel(0, dsi->regs + MCTL_MAIN_STS_CTL);

Hmm, how does this all work...

tidss_kms.c calls devm_drm_panel_bridge_add(), which then does devm_drm_panel_bridge_add_typed() with panel's connector type. Doesn't that already work?

Why do you need the bridge type to be set, i.e. what's the use case?

Somewhat besides the point of this patch, but input->bridge feels odd. Why "input"... Why isn't the bridge just in the struct cdns_dsi? And what's the bridge in cdns_dsi_output? Is that the next bridge?

Tomi