Skip to contentSkip to conversation

gpu/drm: bridge: tc358768: Add delay after PLL setup

PATCH Superseded Svyatoslav Ryhel 1 participant 2 messages May 20

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover gpu/drm: bridge: tc358768: Add delay after PLL setup

After tc358768_setup_pll() enables PLL_CKEN and the lock indicator comes up, the DSI register sequence runs near immediately. On TF700T this results in the bridge claiming PLL lock but producing no DSI video output:
the panel powers up, the backlight comes on, but the framebuffer is never scanned out.

Insert a small settling delay between PLL setup and the rest of the attach.

Svyatoslav Ryhel (1):
gpu/drm: bridge: tc358768: Add delay after PLL setup

 drivers/gpu/drm/bridge/tc358768.c | 3 +++
 1 file changed, 3 insertions(+)
Signature · 1 line
2.51.0
#1 lore raw

PATCH 1/1 gpu/drm: bridge: tc358768: Add delay after PLL setup

After tc358768_setup_pll() enables PLL_CKEN and the lock indicator comes up, the DSI register sequence runs near immediately. On TF700T this results in the bridge claiming PLL lock but producing no DSI video output:
the panel powers up, the backlight comes on, but the framebuffer is never scanned out.

Insert a small settling delay between PLL setup and the rest of the attach.

---
 drivers/gpu/drm/bridge/tc358768.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/bridge/tc358768.c +3 -0
index 0f2820b37302..17abb24a7181 100644
@@ -824,6 +824,9 @@ static void tc358768_bridge_atomic_pre_enable(struct drm_bridge *bridge,
 		return;
 	}
 
+	/* Allow the PLL to settle */
+	msleep(20);
+
 	drm_display_mode_to_videomode(mode, &vm);
 
 	dsiclk = priv->dsiclk;
Signature · 1 line
2.51.0