From patchwork Sun Jul 5 09:45:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitao Shi X-Patchwork-Id: 11644309 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5A233739 for ; Sun, 5 Jul 2020 09:45:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38024207CD for ; Sun, 5 Jul 2020 09:45:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="HiAajLMN" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38024207CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4ED756EBFF; Sun, 5 Jul 2020 09:45:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailgw02.mediatek.com (unknown [1.203.163.81]) by gabe.freedesktop.org (Postfix) with ESMTP id 3A8756EBFF for ; Sun, 5 Jul 2020 09:45:19 +0000 (UTC) X-UUID: 01c2d30a1a264464bfaf3bdfa81b5c77-20200705 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=QLXFgb8ipruaYvgJKRS7Q6ukuCrrcRqCGEhV6ucS7zw=; b=HiAajLMNjaXMw8PKwsFvnhhjmiD1xG5++uTtU9Pm9P8JCDt6qBaeKgX8nMOkz3qCL0fb31ecLkXr82FJ2dY03Gpd+TYrzb7DjEiJqttSnkJEyUt0BUR95EZVwtHxCv3oaiqlNLmenXL04UsOMWKaaXFdVy0qSsYdLetDocRHtN4=; X-UUID: 01c2d30a1a264464bfaf3bdfa81b5c77-20200705 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 739802030; Sun, 05 Jul 2020 17:45:10 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 5 Jul 2020 17:45:08 +0800 Received: from mszsdclx1018.gcn.mediatek.inc (10.16.6.18) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 5 Jul 2020 17:45:08 +0800 From: Jitao Shi To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , , Subject: [v2 PATCH] drm/panel: auo, b116xw03: fix flash backlight when power on Date: Sun, 5 Jul 2020 17:45:14 +0800 Message-ID: <20200705094514.34526-1-jitao.shi@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-TM-SNTS-SMTP: 17185F853249A3A30FADDE7A20621E16B03AD050448041C032CAE16CCD00B50E2000:8 X-MTK: N X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huijuan.xie@mediatek.com, stonea168@163.com, linux-mediatek@lists.infradead.org, Jitao Shi Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Delay the backlight on to make sure the video stable. Signed-off-by: Jitao Shi --- drivers/gpu/drm/panel/panel-simple.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 3ad828eaefe1..61781ffa7840 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -724,6 +724,7 @@ static const struct drm_display_mode auo_b116xw03_mode = { .vsync_end = 768 + 10 + 12, .vtotal = 768 + 10 + 12 + 6, .vrefresh = 60, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, }; static const struct panel_desc auo_b116xw03 = { @@ -734,6 +735,12 @@ static const struct panel_desc auo_b116xw03 = { .width = 256, .height = 144, }, + .delay = { + .enable = 400, + }, + .bus_flags = DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, + .connector_type = DRM_MODE_CONNECTOR_eDP, }; static const struct drm_display_mode auo_b133xtn01_mode = {