From nobody Fri Nov 29 20:59:09 2024 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9452549652 for ; Sun, 15 Sep 2024 08:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726387857; cv=none; b=lYLRjHYd445CEQ9mvdALbb2h+NGlsctpzPkM3t1K7OhUCxsuwzqvh71E9UR3WOTj3IA/Ef8q4AA1mmDExODfbvwauBCi4ohM0uCGNAQWiHw9RZBEunaJR115P7Wd1UmPHVdI+m2wzMNJLWMB1KGfp5j/EKYBeqvsAMi6k8BaNds= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726387857; c=relaxed/simple; bh=I4wNU1+QxgYfquwbwkYGQYdatTeDdrvWgTPrmauHCdw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=MPGO1txy6lA5X77HUv+cb+pVgfel0X+UtuUAJJrQPYpXSDQNVzS/gtGyXGN71mtZAfMwtBx1wi0lYZzWiL4fSovulEyQrxfAtIZDUl0HLqACwZAPEyt9roLRQQcxyWOsozmdOrelDmqlBT4M7iP7mCpQJQ6wIj3RT7Dw3zWqQdQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=RK9aoUqo; arc=none smtp.client-ip=209.85.216.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="RK9aoUqo" Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-2d871bd95ffso678711a91.2 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=vger.kernel.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=RK9aoUqolBenPtem6IBs8yZeibv9FoV1UwIeNKfoEdV0ococppgsMyI2AMRmQLWeC8 jf64V4exJFPZfRwwbOhu8CqmQmRGnuYDu2mPGNvg6K/GqGO3+EsmerWYzuI2EwH2IAch HQXslPv1pI7VMf0UEBQlQk/nmQRGeeAP2uMeQXtUiRkfvSkqWcTb2AcloA3tSKfxBPA6 8RfS6W+6EnLPV7nqkyOCoHhu16wUR53BTov1huMMPqhheBS46l3EfRn5ASBHtCN4wpK5 AjVP2FiJDLpMqHIendALE0z5EQZLZ8GJRpyuBVwVCW+LjcdpL0FuFiAB2E86tUWPO0mC qIDQ== 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=rk38okfHCDZAgF2GXcFUdThq48fSGQPV2YT156AfUf2Yvv+9ygg5EOIiOJPXL0eUPJ oMo3Wk1Bp41COLEVrg1Rk6xzIuoDI/Hm9mt4AMYX8AQsd+CIzHv+PBZLvFn15T9XMBVU LGxrIdQRpeESdAxPpS0i86vX4Xrdl2mPc5Lgm6QVrqKzH68q75/hhwPbGDOCj0NueRI7 3SgVvYS/ShLFe9OHWackVtIZw9C6CkDFsSBGRRib7m6ZI5rgYAeEPoaG4shHluuJ2ogq bRniXjecTzvPDrJgHG8xMplxAkO8pfOkGymvgKp3PL1Sh69AKk1MeE9hq4RpAJZwcpaE ADbw== X-Forwarded-Encrypted: i=1; AJvYcCVcCn8sEFxvNBW44J5Gq2kwZSK1KCOHtWguXt4OMtopKr15BCMjKzqtEfnAcjc9zw//yjdgBMaQfYLzsyk=@vger.kernel.org X-Gm-Message-State: AOJu0YwshFsuMmaLv3oLCGa6TrLejkk9t5xTwYmtvjYAgx9PvMAD0ATc 9xh5d/Z1lpVB6oW4kK3Gxdg3K0CJCC5NoyCskVs0alLE+MUiep9zcL6iX4WyvPs= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 =3D panel_to_jadard(panel); struct mipi_dsi_multi_context dsi_ctx =3D { .dsi =3D jadard->dsi }; =20 - if (jadard->desc->backlight_off_to_display_off_delay_ms) - mipi_dsi_msleep(&dsi_ctx, jadard->desc->backlight_off_to_display_off_del= ay_ms); - mipi_dsi_dcs_set_display_off_multi(&dsi_ctx); =20 if (jadard->desc->display_off_to_enter_sleep_delay_ms) @@ -858,7 +854,6 @@ static const struct jadard_panel_desc kingdisplay_kd101= ne3_40ti_desc =3D { .reset_before_power_off_vcioo =3D true, .vcioo_to_lp11_delay_ms =3D 5, .lp11_to_reset_delay_ms =3D 10, - .backlight_off_to_display_off_delay_ms =3D 100, .display_off_to_enter_sleep_delay_ms =3D 50, .enter_sleep_to_reset_down_delay_ms =3D 100, }; @@ -1109,7 +1104,6 @@ static const struct jadard_panel_desc melfas_lmfbx101= 117480_desc =3D { .reset_before_power_off_vcioo =3D true, .vcioo_to_lp11_delay_ms =3D 5, .lp11_to_reset_delay_ms =3D 10, - .backlight_off_to_display_off_delay_ms =3D 100, .display_off_to_enter_sleep_delay_ms =3D 50, .enter_sleep_to_reset_down_delay_ms =3D 100, }; --=20 2.17.1 From nobody Fri Nov 29 20:59:09 2024 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6F0E13B590 for ; Sun, 15 Sep 2024 08:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726387862; cv=none; b=F/lzu/zZJkY/POTZSsPedtaYkZTehIb9xZF6weyPUsLAgkkwJF8ZWYg3j5PRCJk5ddCOvhkYNkXXrEzerz70M3+Bav8k5fS5bzsJI5+chUkHwnH66qCXctViwuVsb9rHYVqlpNq11CiMzeoVNWbI/C/74VyUScFqSefW7oNCK9k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726387862; c=relaxed/simple; bh=1UAnYDW0MGQxfNhUqb3o5IVqhK9bipaUoybWUt7aUL8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=tHeBOAZcCpZCQsH0p6Fj2+uH8KQ/ev5PjqJ9VegVNiVbwuyUkcOalQNo5ueFqyBAUyR8UyFCxwg0fGE1YmZ7NSRTEX16ShrBeYMmeg5v6vGhJfYybDLBrGHIFFe923LNW8XbQvj8qAaUCIsH0hBN1MovHdT1Vr9xzsMQMJQtEmk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b=DtuYbJOm; arc=none smtp.client-ip=209.85.216.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaqin.corp-partner.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=huaqin-corp-partner-google-com.20230601.gappssmtp.com header.i=@huaqin-corp-partner-google-com.20230601.gappssmtp.com header.b="DtuYbJOm" Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-2d88ec20283so292110a91.0 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=vger.kernel.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=DtuYbJOmq6xJ17B6OSanv/VKAzfqoae2uRoVYIHfRMna4sMRx8cCKLQO4iaOHJQj5x Ijosq4o6L0fnfmNB9MoES8IKNfT2Z17b4My3WudPhX95PYog7cx6zDFTcegYYa4MUHWl gQ/ej6EjM+eLRXx2P3qG/YcRPi95cqnaVDKf/E7Ez5mI4aGJYJjm6RTZF7EoDWPaIgMe wY6N1tLmMmmahOgvm7y62CNMI0/zEqrE+AtV6dY1JSvpaovfCvCXABLbpeiV7chY0yPn MX9stx23wHbOtymiyLkdSAh2yYaa3EBX1XCsGY+c+/OK+KTBT5H6wrKTl7PjkLsoTtEK ezbA== 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=YZJmi1j5S4u/9lnNRYGOJ3RFWQGz36kQ75SW40jOfXsPOk8T/34QBJ5vBVUxYJX8cJ eCSL6xkCld0cA7utby79Yq0yxa7LkQXctRYuxwohQ8K+qfPgquVFHQQWOrenxC1l+/My BiIiPM5MDAP3efPkuX4GMA15wsY+IEpFyBxNX6GUr6Ag5vAzCnfii9fZj98HPtlcoIvz SKH8LcLwEz0NSD2GRADXZQa6u1SBLnhT+2B7nUmCOfKpBwzXzGgtHjTsq3YDHRpoSj4d yNCHAiD/jWtBE1BeBkPJfi27VuGAKzux0LsmvSN6/agH+YijMMCHjg6nlfdZ66FEzYF0 erzQ== X-Forwarded-Encrypted: i=1; AJvYcCWeHodKMLFe3+YiPKCVVuTXw2DXl9qm/rkQiJWHom0i/RslxK7KpvbpQ1D09LW3KgsX9kpk8JZxry2s8CY=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7FuEnz6tixPXW/ouVe2i0Vl6R+LOZB1tckhb+UWiKqzULy7vK QEVOS8hBwFB0iHbXERLACxtAx2RcbtNFOxMmivhdcSSz6dbhUvJbpKwAC5xIljo= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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_pane= l *panel) panel); struct mipi_dsi_multi_context dsi_ctx =3D { .dsi =3D ctx->dsi }; =20 - 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); =20 - 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= ); =20 mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx); =20 @@ -275,6 +273,7 @@ static const struct panel_desc boe_th101mb31ig002_desc = =3D { MIPI_DSI_MODE_NO_EOT_PACKET | MIPI_DSI_MODE_LPM, .init =3D boe_th101mb31ig002_enable, + .display_off_to_enter_sleep_delay_ms =3D 120, }; =20 static const struct drm_display_mode starry_er88577_default_mode =3D { @@ -302,7 +301,7 @@ static const struct panel_desc starry_er88577_desc =3D { .lp11_before_reset =3D true, .vcioo_to_lp11_delay_ms =3D 5, .lp11_to_reset_delay_ms =3D 50, - .backlight_off_to_display_off_delay_ms =3D 100, + .display_off_to_enter_sleep_delay_ms =3D 50, .enter_sleep_to_reset_down_delay_ms =3D 100, .power_off_delay_ms =3D 1000, }; --=20 2.17.1