From patchwork Mon May 15 09:49:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuijing Li X-Patchwork-Id: 94063 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6795580vqo; Mon, 15 May 2023 02:57:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ50Rh5d0CGNeQg03uI11SvthSpDesYws3Qe7n7tKIKRLP2kCdmr5bqAq6sh+0GW8YDSz/YA X-Received: by 2002:a05:6a20:7f83:b0:d5:73ad:87c2 with SMTP id d3-20020a056a207f8300b000d573ad87c2mr38381628pzj.56.1684144642521; Mon, 15 May 2023 02:57:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684144642; cv=none; d=google.com; s=arc-20160816; b=tC+pxMvA9iyfX20pUQ334Iv1IGFl+jfXPXO4x9XkCnodgI64qoBtA7BR+GFPOnVq6F EDRLb0mN+J06vHMRzWsHOcYnkHgxXJSgEz+G4cRUdLbRs2wjxA4F5lM4vBWXJCLmKTmY naPWWURp7Gy+mSPeUXq05gF2uRPkCkhLJKHcOWMYT7wAVsps1SlSN0JbFXWJ/dwf/Nzp S1yb77SMiX/Ag0mFfRR6LBcK33h1WL2NrtSKbBHzr5YVUmwIWx/T//hz1Q8sBU/G0B75 fOZiZbk3I91mTpIrU9uQTLY0qBaNmm1l28UASXQ/lrVwp257LP9vmjMSCL5ZMlfQSJYG Lp6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y8+mgLP8tw6Gn815CsDCAAKOTV0JLl/QHPy8/G9qnF8=; b=rq159hqILdyY8YlzVr7crM6z7UfYJf4AxBWE/xwQDggepL/kgJZzwxOYFuMA0QY2mf Jts3+PK0NCSJt6JrIISwh/ohRAzoLg7BC1K+UJ7zWYKxn2W/rOflR2pqDCG//B11x9O5 1VRjB8AJkfBdmMcZHTaRtudnRs6tKemHGGYKHgUmDiUHi+oyEz34p1iPrLSRvr/6D2Z2 NTV1GbymHCcZG/9ZK11VQioyV9Y7BnagTvc7efGG2BRTUrq5p/sEOHmkIRuniDNifJuJ 1fUXFOrfZnTBcwtvubTwzkwAB3Hn1IohsYoe7qvit9pqI7DcmziIYngG9MaKQZokRnsN pZsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TlE6gOay; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f24-20020a17090a4a9800b0024b91006d29si28119213pjh.48.2023.05.15.02.57.10; Mon, 15 May 2023 02:57:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TlE6gOay; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239707AbjEOJuV (ORCPT + 99 others); Mon, 15 May 2023 05:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238441AbjEOJt4 (ORCPT ); Mon, 15 May 2023 05:49:56 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB188B6 for ; Mon, 15 May 2023 02:49:50 -0700 (PDT) X-UUID: d09687c4f30511edb20a276fd37b9834-20230515 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=y8+mgLP8tw6Gn815CsDCAAKOTV0JLl/QHPy8/G9qnF8=; b=TlE6gOayBgxvvPdj/ZpCAMHpS50Ce2YU9CUjX1Qx2zqYrFISiFk7zOyVvSUsgUE9v4JflUWA4EMDtQOCFezpeoqcO11e1LjVCrdJ56Dgwg9NNh0IcYGLT9f+GEc+SFWfNPl8QIDqqlj8nMgIyLMNvpFPpgMELzTRsouN855Ojn0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.24,REQID:5a0616d1-0f17-43bf-9d9f-15b970b9ed02,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:178d4d4,CLOUDID:5fa8343b-de1e-4348-bc35-c96f92f1dcbb,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: d09687c4f30511edb20a276fd37b9834-20230515 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 777524128; Mon, 15 May 2023 17:49:41 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.194) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 15 May 2023 17:49:40 +0800 Received: from mszsdhlt06.gcn.mediatek.inc (10.16.6.206) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 15 May 2023 17:49:40 +0800 From: Shuijing Li To: , , , , , , CC: , , , , , Shuijing Li , Xinlei Lee Subject: [PATCH v4 1/2] drm/panel: boe-tv101wum-nl6: Remove extra delay Date: Mon, 15 May 2023 17:49:54 +0800 Message-ID: <20230515094955.15982-2-shuijing.li@mediatek.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515094955.15982-1-shuijing.li@mediatek.com> References: <20230515094955.15982-1-shuijing.li@mediatek.com> MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765953652360457988?= X-GMAIL-MSGID: =?utf-8?q?1765953652360457988?= Reduce the delay after LCM reset by removing an extra delay in the initialization commands array. The required delay of at least 6ms after reset is guaranteed by boe_panel_prepare(). Signed-off-by: Shuijing Li Signed-off-by: Xinlei Lee Reviewed-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c index 783234ae0f57..a5652d38acda 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -780,7 +780,6 @@ static const struct panel_init_cmd inx_hj110iz_init_cmd[] = { }; static const struct panel_init_cmd boe_init_cmd[] = { - _INIT_DELAY_CMD(24), _INIT_DCS_CMD(0xB0, 0x05), _INIT_DCS_CMD(0xB1, 0xE5), _INIT_DCS_CMD(0xB3, 0x52), From patchwork Mon May 15 09:49:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuijing Li X-Patchwork-Id: 94058 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6795038vqo; Mon, 15 May 2023 02:55:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6z3ottyF9Ia/8u6c0GoN5++B1YEUHayRR/1BtC5+YP3KycyKK4/1ml0bhGe/BPFnpPP5Rs X-Received: by 2002:a17:903:1c7:b0:1ac:aee4:d75 with SMTP id e7-20020a17090301c700b001acaee40d75mr25097297plh.52.1684144555121; Mon, 15 May 2023 02:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684144555; cv=none; d=google.com; s=arc-20160816; b=j0ZL0Kja8cUyLQbSDdXWlu3ojWLXgRGcu3NpIpv/7pY/Ygk+rZSW1sXpwAy80TesEc 1j2Tofpp31+CC/eDc1aVnjYjJynu5tplm3dFoLoYRHVXTDT6P3VKw4nE+psurKt+ZLIv qyjLMgcGuUWuEsmn5vhKdTi59Z25ZoWPmlxUGbhJmyu/0zfHBjW3j7/wBq13y7ZedFmD C+/sAMvapIzHhyONAp/ZmdQWJ5ilUKJZ5mKyuGgEMcOXvsTEZDkfZPvnTa9NiTf8Vo1l gBgcRslULJkLhPFPz+n0Dkl+JgZNNbQ8CTGb84IaqlBSniRak6Czpq01TLnJnMJZeJ1P C7Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h57jZNHQL2sJ49TfskDCqEYES50/wJ+p6Hr89+KIa9A=; b=ecLIBt1/QW55qD6vlxzszZ39ySrYeYQfpKgz6qovsi8FP6dBSXDIXFEDYW/4F6pMZj War9IvUPz9sRnKUs17S8dzs+0btaBmncJ/rASalCyjjUB/zK02j3QlqzATyM+w+COmgQ 0oaOnTZIDA/KZJaipjXFDi5VbPiR6sYKlZWSMlT+0vJwoEgXqsL/WHfsmolitd++F7OA zwtAaL2tRc2+s7CpprBVpsevpv29PGWihfzXoiW6Wb1tCypBxUOiQJgtTR7rMk/ORh6y uw1pc0pTmxeg8LbtdFg7IYf++A+rByNywuo6bpXi3/6cS1POEoRqnPx2N6R8dt5PwcKQ jyww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AYMv+Vu5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a17090276c500b001adb9d437d8si11258846plt.270.2023.05.15.02.55.40; Mon, 15 May 2023 02:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=AYMv+Vu5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237279AbjEOJul (ORCPT + 99 others); Mon, 15 May 2023 05:50:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238788AbjEOJt6 (ORCPT ); Mon, 15 May 2023 05:49:58 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72075E56 for ; Mon, 15 May 2023 02:49:51 -0700 (PDT) X-UUID: d0980c8ef30511edb20a276fd37b9834-20230515 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=h57jZNHQL2sJ49TfskDCqEYES50/wJ+p6Hr89+KIa9A=; b=AYMv+Vu5T7HFVdNKn5oi+lQzUxsVw7tiUNkuvKEakcohja2ccT78cGxdmTVHZy1aWMAV2nVKQB7qmBVDTt47+cBEyVVCyBsf4y8Oftsk1FJK9c8BoVvosfX1KrbpV0alJV+vQ456LvG0KkZxAjrUnHBonY6zatHLIzRuRBxDGuo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.24,REQID:3e02afdb-3a39-439d-864b-b8abb403e06a,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:178d4d4,CLOUDID:ffacd96b-2f20-4998-991c-3b78627e4938,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: d0980c8ef30511edb20a276fd37b9834-20230515 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 516129809; Mon, 15 May 2023 17:49:41 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.194) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 15 May 2023 17:49:41 +0800 Received: from mszsdhlt06.gcn.mediatek.inc (10.16.6.206) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 15 May 2023 17:49:40 +0800 From: Shuijing Li To: , , , , , , CC: , , , , , Shuijing Li , Xinlei Lee Subject: [PATCH v4 2/2] drm/panel: boe-tv101wum-nl6: Fine tune the panel power sequence Date: Mon, 15 May 2023 17:49:55 +0800 Message-ID: <20230515094955.15982-3-shuijing.li@mediatek.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515094955.15982-1-shuijing.li@mediatek.com> References: <20230515094955.15982-1-shuijing.li@mediatek.com> MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765953560992341776?= X-GMAIL-MSGID: =?utf-8?q?1765953560992341776?= For "boe,tv105wum-nw0" this special panel, it is stipulated in the panel spec that MIPI needs to keep the LP11 state before the lcm_reset pin is pulled high. Signed-off-by: Shuijing Li Signed-off-by: Xinlei Lee Reviewed-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c index a5652d38acda..64e462f49c60 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -36,6 +36,7 @@ struct panel_desc { const struct panel_init_cmd *init_cmds; unsigned int lanes; bool discharge_on_disable; + bool lp11_before_reset; }; struct boe_panel { @@ -1365,6 +1366,10 @@ static int boe_panel_prepare(struct drm_panel *panel) usleep_range(10000, 11000); + if (boe->desc->lp11_before_reset) { + mipi_dsi_dcs_nop(boe->dsi); + usleep_range(1000, 2000); + } gpiod_set_value(boe->enable_gpio, 1); usleep_range(1000, 2000); gpiod_set_value(boe->enable_gpio, 0); @@ -1591,6 +1596,7 @@ static const struct panel_desc boe_tv105wum_nw0_desc = { .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | MIPI_DSI_MODE_LPM, .init_cmds = boe_init_cmd, + .lp11_before_reset = true, }; static const struct drm_display_mode starry_qfh032011_53g_default_mode = {