Skip to contentSkip to conversation

gpu: drm: tegra: Adjust dsi phy timing

PATCH Superseded David Ung 2 participants 3 messages Dec 2, 2014 – Dec 3, 2014 1 message not in the archive

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

David Ung

author
#0 lore raw

PATCH 1/1 gpu: drm: tegra: Adjust dsi phy timing

Fixing DSI phy setting of HS trail timings.

---
 drivers/gpu/drm/tegra/mipi-phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tegra/mipi-phy.c +1 -1
index 486d19d..974bc68 100644
@@ -34,7 +34,7 @@ int mipi_dphy_timing_get_default(struct mipi_dphy_timing *timing,
 	timing->hszero = 145 + 5 * period;
 	timing->hssettle = 85 + 6 * period;
 	timing->hsskip = 40;
-	timing->hstrail = max(8 * period, 60 + 4 * period);
+	timing->hstrail = 3 * period * 8 + max(8 * period, 60 + 4 * period);
 	timing->init = 100000;
 	timing->lpx = 60;
 	timing->taget = 5 * timing->lpx;
Signature · 1 line
1.8.1.5
#2 lore raw
In reply to a message not in the archive

Please use the scripts/get_maintainer.pl script to find the correct list of recipients.

Quoted 1 line · David Ung

Fixing DSI phy setting of HS trail timings.

You're going to have to explain /why/ you're making this change and describe what exactly this fixes. DSI works fine on any of the boards that I have, so I'm surprised that this would need "fixing".

Also: "phy" -> "PHY".

Quoted 11 lines
---
 drivers/gpu/drm/tegra/mipi-phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tegra/mipi-phy.c +0 -0
index 486d19d..974bc68 100644

drivers/gpu/drm/tegra/mipi-phy.c int mipi_dphy_timing_get_default(struct mipi_dphy_timing *timing, · line 37

Quoted 5 lines
drivers/gpu/drm/tegra/mipi-phy.c +1 -1
@@ -34,7 +34,7 @@ int mipi_dphy_timing_get_default(struct mipi_dphy_timing *timing,
 	timing->hszero = 145 + 5 * period;
 	timing->hssettle = 85 + 6 * period;
 	timing->hsskip = 40;
-	timing->hstrail = max(8 * period, 60 + 4 * period);
+	timing->hstrail = 3 * period * 8 + max(8 * period, 60 + 4 * period);

My recollection is that I took these timing values straight from the D-PHY specification, so you're going to have to explain why this is necessary and where you took this from.

Thierry

author
#3 lore raw
Quoted 3 lines

Please use the scripts/get_maintainer.pl script to find the correct list of recipients.

ccing [email protected], [email protected], [email protected] and [email protected]

Quoted 5 lines
Quoted 1 line

Fixing DSI phy setting of HS trail timings.

You're going to have to explain /why/ you're making this change and describe what exactly this fixes. DSI works fine on any of the boards that I have, so I'm surprised that this would need "fixing".

It is found by hardware that after HS data burst, the HS trail is off by -12% during compliance testing.

Quoted 1 line

Also: "phy" -> "PHY".

I'll adjust comment.

Quoted 3 lines

My recollection is that I took these timing values straight from the D-PHY specification, so you're going to have to explain why this is necessary and where you took this from.

There is set of timings recommendations in the tegra dsi programming guide. The D-PHY spec is the minimal setting, but the SOC may need other adjustments.

David