* [PATCH] gpu: drm: tegra: Adjust dsi phy timing
@ 2014-12-02 0:52 David Ung
[not found] ` <1417481522-32110-1-git-send-email-davidu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: David Ung @ 2014-12-02 0:52 UTC (permalink / raw)
To: linux-tegra-u79uwXL29TY76Z2rM5mHXA; +Cc: David Ung
Fixing DSI phy setting of HS trail timings.
Signed-off-by: David Ung <davidu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
drivers/gpu/drm/tegra/mipi-phy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/tegra/mipi-phy.c b/drivers/gpu/drm/tegra/mipi-phy.c
index 486d19d..974bc68 100644
--- a/drivers/gpu/drm/tegra/mipi-phy.c
+++ b/drivers/gpu/drm/tegra/mipi-phy.c
@@ -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;
--
1.8.1.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] gpu: drm: tegra: Adjust dsi phy timing
[not found] ` <1417481522-32110-1-git-send-email-davidu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
@ 2014-12-02 9:37 ` Thierry Reding
2014-12-03 1:32 ` David Ung
0 siblings, 1 reply; 3+ messages in thread
From: Thierry Reding @ 2014-12-02 9:37 UTC (permalink / raw)
To: David Ung; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]
Please use the scripts/get_maintainer.pl script to find the correct list
of recipients.
On Mon, Dec 01, 2014 at 04:52:02PM -0800, David Ung wrote:
> 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".
>
> Signed-off-by: David Ung <davidu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
> ---
> drivers/gpu/drm/tegra/mipi-phy.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tegra/mipi-phy.c b/drivers/gpu/drm/tegra/mipi-phy.c
> index 486d19d..974bc68 100644
> --- a/drivers/gpu/drm/tegra/mipi-phy.c
> +++ b/drivers/gpu/drm/tegra/mipi-phy.c
> @@ -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
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] gpu: drm: tegra: Adjust dsi phy timing
2014-12-02 9:37 ` Thierry Reding
@ 2014-12-03 1:32 ` David Ung
0 siblings, 0 replies; 3+ messages in thread
From: David Ung @ 2014-12-03 1:32 UTC (permalink / raw)
To: 'Thierry Reding'
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
'airlied-cv59FeDIM0c@public.gmane.org', Terje Bergstrom,
'swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org',
'gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org'
> Please use the scripts/get_maintainer.pl script to find the correct list
> of recipients.
ccing airlied-cv59FeDIM0c@public.gmane.org, tbergstrom-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org, swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org and gnurou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
> > 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.
> Also: "phy" -> "PHY".
I'll adjust comment.
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-03 1:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-02 0:52 [PATCH] gpu: drm: tegra: Adjust dsi phy timing David Ung
[not found] ` <1417481522-32110-1-git-send-email-davidu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2014-12-02 9:37 ` Thierry Reding
2014-12-03 1:32 ` David Ung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox