Skip to contentSkip to conversation

video: bridge: tc358768: Add delay after PLL init

PATCH New Svyatoslav Ryhel 1 participant 2 messages May 20 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

cover video: bridge: tc358768: Add delay after PLL init

After tc358768_setup_pll() enables PLL_CKEN and the lock indicator comes up, the downstream DSI register sequence runs 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):
video: bridge: tc358768: Add delay after PLL init

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

PATCH 1/1 video: bridge: tc358768: Add delay after PLL init

After tc358768_setup_pll() enables PLL_CKEN and the lock indicator comes up, the downstream DSI register sequence runs 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/video/bridge/tc358768.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/video/bridge/tc358768.c +3 -0
index 358004f30f2..9fa9631fdcc 100644
@@ -488,6 +488,9 @@ static int tc358768_attach(struct udevice *dev)
 
 	tc358768_setup_pll(dev);
 
+	/* Allow the PLL to settle */
+	mdelay(20);
+
 	dsiclk = priv->dsiclk;
 	hsbyteclk = dsiclk / 4;
 
Signature · 1 line
2.51.0