[PATCH] drm/panel: simple: fix AUO g185han01 horizontal blanking

Philipp Zabel p.zabel at pengutronix.de
Fri Jan 25 11:20:20 UTC 2019


On Mon, 2018-11-12 at 18:41 +0100, Lucas Stach wrote:
> The horizontal blanking periods are too short, as the values are
> specified for a single LVDS channel. Since this panel is dual LVDS
> they need to be doubled. With this change the panel reaches its
> nominal vrefresh rate of 60Fps, instead of the 64Fps with the
> current wrong blanking.
> 
> Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 97964f7f2ace..2c89792e91e2 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -663,9 +663,9 @@ static const struct panel_desc auo_g133han01 = {
>  static const struct display_timing auo_g185han01_timings = {
>  	.pixelclock = { 120000000, 144000000, 175000000 },
>  	.hactive = { 1920, 1920, 1920 },
> -	.hfront_porch = { 18, 60, 74 },
> -	.hback_porch = { 12, 44, 54 },
> -	.hsync_len = { 10, 24, 32 },
> +	.hfront_porch = { 36, 120, 148 },
> +	.hback_porch = { 24, 88, 108 },
> +	.hsync_len = { 20, 48, 64 },

The datasheet specifies 960 active clocks + 40/128/160 clocks blanking
on each of the two LVDS channels (min/typical/max), so doubled this is
now correct.

Reviewed-by: Philipp Zabel <p.zabel at pengutronix.de>

regards
Philipp


More information about the dri-devel mailing list