From patchwork Sun Sep 15 08:08:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiong Lv X-Patchwork-Id: 13804690 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id C685AC35FE7 for ; Sun, 15 Sep 2024 08:10:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5548310E157; Sun, 15 Sep 2024 08:10:56 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="OWOOrb30"; dkim-atps=neutral Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4A3F210E157 for ; Sun, 15 Sep 2024 08:10:55 +0000 (UTC) Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-2da516e6940so678552a91.3 for ; Sun, 15 Sep 2024 01:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1726387855; x=1726992655; darn=lists.freedesktop.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=jI8AGx19JOnD3u1rifDJzZrI0uRZEbX+cl7EZ8hebKs=; b=OWOOrb30WokAggeHHsEpcIfKoJnCYXe91hVARQE4kr4tels5B2d8fKa+RJlYWcpdfc Ft9cx3vQDzY9DTDUiUDTY3wKG7kh2ki99mmOGeEzHK3efUQKjqgsOwJreqWcKz9A29ts 6pmfgnQW3GB1mVBWZCtdB4n6hMonCZQNVeTFp9PbgEoKBvAbS3ocfTRbhASEGzD1LPgC bUKfzBtGur5BRMhmJoru/WpK2ObF80cgJs+Uoz3MHyHxljMx20HMGuMgGYJlSv8RvQM5 N9iie4H6oHVR0bdwuA1B+CdNRo0K25U9BSl32rB0Dv/gUvcCGY2SWBEyoFF4rpeaYpHQ HPCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726387855; x=1726992655; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jI8AGx19JOnD3u1rifDJzZrI0uRZEbX+cl7EZ8hebKs=; b=vvhVRwU8oO1a5p0XVM7t2WzwieIIpjlIs5ShrLW7WdIxykTULRODrETX2zWy2Mhy91 dBBvpeug/H39IoE+b/hx9aRD1hUElg+2GR5Ltt1PDXp2XIxGlNv1DDzRKF/cDQT/1wWy BkUavlvnCZAvfkevM2NdD0rQ1mQf3yhzySDOgZkUn7Iccs38wsWFVWUePqKjQoUULOch GUw1sZZiPekqKCwspsljit1hUA6KxvFUUuK96Qoe1pItEtZJ0Bc5RcEO0OO1TVPCTocV EzVsDUDA19qGZjRGFVh6nU48Kdng5JokpUMlZStertopgWshM72yCiCsLIIokvyC8Y2i MICg== X-Gm-Message-State: AOJu0Yw9O6xQF8aEQ+zGHNhVmwWkxDOadNaYoIvOwekHgrU4/Gp9TUub m1PK+uypTAWmtm4mYYam1TMB5anXx6sExRVd2r7ZQ4odnNpm9GYWulSdJnpytJg= X-Google-Smtp-Source: AGHT+IGKpkbPPStSQ4FEXaJuOSVr/bbexGHTzSisD9VQpGZVl5JVohrbEEYGg+wKhdUkgnQi3bogTg== X-Received: by 2002:a17:90a:d791:b0:2da:71f8:7ff with SMTP id 98e67ed59e1d1-2dba005b46amr5313010a91.5.1726387854747; Sun, 15 Sep 2024 01:10:54 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbcfd26f2csm2662672a91.31.2024.09.15.01.10.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2024 01:10:54 -0700 (PDT) From: Zhaoxiong Lv To: neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, sam@ravnborg.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, dianders@chromium.org, hsinyi@google.com, awarnecke002@hotmail.com, dmitry.baryshkov@linaro.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoxiong Lv Subject: [PATCH v1 1/2] drm/panel: jd9365da: Modify Kingdisplay and Melfas panel timing Date: Sun, 15 Sep 2024 16:08:29 +0800 Message-Id: <20240915080830.11318-2-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240915080830.11318-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240915080830.11318-1-lvzhaoxiong@huaqin.corp-partner.google.com> 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" In order to meet the timing, remove the delay between "backlight off" and "display off" Removing variables: display_off_to_enter_sleep_delay_ms Signed-off-by: Zhaoxiong Lv --- drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c b/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c index 44897e5218a6..2f8af86bc2a0 100644 --- a/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c +++ b/drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c @@ -31,7 +31,6 @@ struct jadard_panel_desc { bool reset_before_power_off_vcioo; unsigned int vcioo_to_lp11_delay_ms; unsigned int lp11_to_reset_delay_ms; - unsigned int backlight_off_to_display_off_delay_ms; unsigned int display_off_to_enter_sleep_delay_ms; unsigned int enter_sleep_to_reset_down_delay_ms; }; @@ -69,9 +68,6 @@ static int jadard_disable(struct drm_panel *panel) struct jadard *jadard = panel_to_jadard(panel); struct mipi_dsi_multi_context dsi_ctx = { .dsi = jadard->dsi }; - if (jadard->desc->backlight_off_to_display_off_delay_ms) - mipi_dsi_msleep(&dsi_ctx, jadard->desc->backlight_off_to_display_off_delay_ms); - mipi_dsi_dcs_set_display_off_multi(&dsi_ctx); if (jadard->desc->display_off_to_enter_sleep_delay_ms) @@ -858,7 +854,6 @@ static const struct jadard_panel_desc kingdisplay_kd101ne3_40ti_desc = { .reset_before_power_off_vcioo = true, .vcioo_to_lp11_delay_ms = 5, .lp11_to_reset_delay_ms = 10, - .backlight_off_to_display_off_delay_ms = 100, .display_off_to_enter_sleep_delay_ms = 50, .enter_sleep_to_reset_down_delay_ms = 100, }; @@ -1109,7 +1104,6 @@ static const struct jadard_panel_desc melfas_lmfbx101117480_desc = { .reset_before_power_off_vcioo = true, .vcioo_to_lp11_delay_ms = 5, .lp11_to_reset_delay_ms = 10, - .backlight_off_to_display_off_delay_ms = 100, .display_off_to_enter_sleep_delay_ms = 50, .enter_sleep_to_reset_down_delay_ms = 100, }; From patchwork Sun Sep 15 08:08:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhaoxiong Lv X-Patchwork-Id: 13804691 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D79F1C35FE7 for ; Sun, 15 Sep 2024 08:11:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B58710E2E4; Sun, 15 Sep 2024 08:11:01 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="BmkSZJn0"; dkim-atps=neutral Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8285C10E2E0 for ; Sun, 15 Sep 2024 08:11:00 +0000 (UTC) Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2d883286bd2so289878a91.2 for ; Sun, 15 Sep 2024 01:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=huaqin-corp-partner-google-com.20230601.gappssmtp.com; s=20230601; t=1726387860; x=1726992660; darn=lists.freedesktop.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=sRDTLwONqQd982ElhveII1b1cUAuGyre5X0fuHS6yLY=; b=BmkSZJn0SYAz1/QlPZcsvR9O4cajsYooNzZ4Kt7krrgZwoRc2ppz2uNpDZkk8amf2+ +/OFtzQVqkhsLLGY4VqG3LzjJmmD+XVRhCeOxrIiWt3fXmFRBYGE0Cd/BIqz5ScykcgO tveBtcLkAJhFFKP0xwyVpVLa3wiayxRgqh+ooMzZrKtXz4FnExAgEZEIi/39uHe4ffrJ 4fQCyzvboXYhHXrIVMfwmAmuWhV5PxFDCuaaq7iqw2MzvCp4OyNhq7u4CZdk3IERB/5d wOLlAmBXTO6SAee89MYYYEk2ISHQdnXK8UZCs8P+r6mclia4W3IfBTs9VMDd5Nn7Gn6W G8gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726387860; x=1726992660; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sRDTLwONqQd982ElhveII1b1cUAuGyre5X0fuHS6yLY=; b=qPovXN0tizlej4C0uzVMlFBxVdcpgE7KzV4L3NPOZuU4VMi2Eup6GmPykyBQqLNz/f b2B/Iz//wtrKpAXwgMeUoh0vwuyaDYBUVojuaZo0A5TqhtKY4o8IHo9AJxFcr3gjeqwx CSJiuJ1k130II0ng/mU+BCtY8c/AGq/jL65WYY2nrKlNBZXFcrHBIahlbINdFKNVv6a7 5t+3cFdWxZUnGSsknI7ZAjyaUGI4RYF6ljDH6TZtmAoe8W9wLmlPJGziVBiMF6+JrdCm xGP7nMAhv9t+ZRj76U+M6WEgmtsFARAO94zQh+fzKT0KjFPJp1SzVPXWKivEqcMn29i/ p1eA== X-Gm-Message-State: AOJu0YzTvHRatbWioCmcHUDpDARia28OaifsTfwNu+t3QWhpuIUvdl/X UPI8UP7DAlgv95ZApvnNWRzbEcCy7bnMZSMnub64CO9YkgPqOAOQ7t0y9luRv10= X-Google-Smtp-Source: AGHT+IGklY3LMqjEheyFTix+dZ97vdFbx9qbo4QLsOK0vJc+LXtmYTKaliThR6RCom4pnnRpY/hUkQ== X-Received: by 2002:a17:90b:104a:b0:2db:60b:3669 with SMTP id 98e67ed59e1d1-2dba007c325mr5338573a91.8.1726387859978; Sun, 15 Sep 2024 01:10:59 -0700 (PDT) Received: from lvzhaoxiong-KLVC-WXX9.huaqin.com ([116.66.212.162]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbcfd26f2csm2662672a91.31.2024.09.15.01.10.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2024 01:10:59 -0700 (PDT) From: Zhaoxiong Lv To: neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, sam@ravnborg.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, dianders@chromium.org, hsinyi@google.com, awarnecke002@hotmail.com, dmitry.baryshkov@linaro.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Zhaoxiong Lv Subject: [PATCH v1 2/2] drm/panel: boe-th101mb31ig002: Modify Starry panel timing Date: Sun, 15 Sep 2024 16:08:30 +0800 Message-Id: <20240915080830.11318-3-lvzhaoxiong@huaqin.corp-partner.google.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240915080830.11318-1-lvzhaoxiong@huaqin.corp-partner.google.com> References: <20240915080830.11318-1-lvzhaoxiong@huaqin.corp-partner.google.com> 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" In order to meet the timing, remove the delay between "backlight off" and "display off", and reduce the delay between "display_off" and "enter_sleep" Removing variables: display_off_to_enter_sleep_delay_ms Signed-off-by: Zhaoxiong Lv --- drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c b/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c index 0b87f1e6ecae..c2d0ec199829 100644 --- a/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c +++ b/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c @@ -29,7 +29,7 @@ struct panel_desc { bool lp11_before_reset; unsigned int vcioo_to_lp11_delay_ms; unsigned int lp11_to_reset_delay_ms; - unsigned int backlight_off_to_display_off_delay_ms; + unsigned int display_off_to_enter_sleep_delay_ms; unsigned int enter_sleep_to_reset_down_delay_ms; unsigned int power_off_delay_ms; }; @@ -184,12 +184,10 @@ static int boe_th101mb31ig002_disable(struct drm_panel *panel) panel); struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi }; - if (ctx->desc->backlight_off_to_display_off_delay_ms) - mipi_dsi_msleep(&dsi_ctx, ctx->desc->backlight_off_to_display_off_delay_ms); - mipi_dsi_dcs_set_display_off_multi(&dsi_ctx); - mipi_dsi_msleep(&dsi_ctx, 120); + if (ctx->desc->display_off_to_enter_sleep_delay_ms) + mipi_dsi_msleep(&dsi_ctx, ctx->desc->display_off_to_enter_sleep_delay_ms); mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx); @@ -275,6 +273,7 @@ static const struct panel_desc boe_th101mb31ig002_desc = { MIPI_DSI_MODE_NO_EOT_PACKET | MIPI_DSI_MODE_LPM, .init = boe_th101mb31ig002_enable, + .display_off_to_enter_sleep_delay_ms = 120, }; static const struct drm_display_mode starry_er88577_default_mode = { @@ -302,7 +301,7 @@ static const struct panel_desc starry_er88577_desc = { .lp11_before_reset = true, .vcioo_to_lp11_delay_ms = 5, .lp11_to_reset_delay_ms = 50, - .backlight_off_to_display_off_delay_ms = 100, + .display_off_to_enter_sleep_delay_ms = 50, .enter_sleep_to_reset_down_delay_ms = 100, .power_off_delay_ms = 1000, };