Message ID | 20230329131615.1328366-5-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBFXVSCQQMGQEAXQF44A@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C1598414BB for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 29 Mar 2023 15:18:15 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id j18-20020a170902da9200b001a055243657sf9408915plx.19 for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 29 Mar 2023 06:18:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680095894; cv=pass; d=google.com; s=arc-20160816; b=VE1Rxc9mIbIRZyzx5j+9MqFpiaWg8hBP3EPsa+8zBN2flSvan1mplzvlqwlppj71XE 1/iqzP+e8vnihv2FT8HYnSucrddFq7NhKvVtho50SNcuKEr3G9Axqzk546D4z5L0dDdf RE4C/9erW02Sk17Cf/2ewiTHocEW5tInEwdiU7jUq5qO+q/f1sYItJmidWVww+2o39xR DOJsVLfvEE8hs1PlnaBe1592FtHlwEew9gKw54VjtoozjSzYUe9PJOdSNYrBDL0+qzsr x6vbM+48k9Dgrk6P70QATbRujRo9lPQuyVS4yH9Oo5qAtuY7181hEKcaC4f0vdhWdrTA q0GQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ILG+GXP1iTB/k1Z87/7jzoFF3PlDLBkGLV2VfkgKUpU=; b=ooEBy/9p+XHAOrXX+Ugx6hy1tyUDXbxdW6rwsD3nJVDVNguXdr2CDpNcDlzklNM0Zz +nHSC6ar3EFqka9aGC3GswL0uoCz2Brp1jFRzMX1sJw8PvqexNc8/PEBatn96Lm1OoNQ 7jJ+JPHU2W4oOMROCbGnEKlV86I6fy9WKAcHuQfycKMjcTLwDnp1zc+jCwd9tJ0B7VD7 6jznYuZGEDA82ZtCZXWYHFf7DjPtVQFMWHuX3XBR7mqLWzffzVgkppSQwOctEwHG6qdO uY8fnyvA0h9wvwtq97yyKuaJEesBoPzbH5EclapxD8kaUTdsvI11k4jFEno6wPvN1g5I rbIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pNuu1Gkc; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1680095894; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=ILG+GXP1iTB/k1Z87/7jzoFF3PlDLBkGLV2VfkgKUpU=; b=AkNWS/0iIep7+b8KvDYo41Fpzx6WMw+eviBdnJrAtlxVSyscaMEfUlSCHd9m0Lb3zW UP6zm2dr1wyINWz7R6iPiXGuIv6nu2r/kLWaF8G58/twQqI9G2yoYyB3pifbckszlfWU 1NO2s9OQzh4MhNud2qQJfqnAu86EQ+o4KQsWI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680095894; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :content-transfer-encoding:mime-version: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=ILG+GXP1iTB/k1Z87/7jzoFF3PlDLBkGLV2VfkgKUpU=; b=oP1krnRoY9slgruKlxUgUe32+WfNrOv/MlZlszXiR8f5y+tVTbCPy7PXi12tiHWHcx 2eBOATuCLZhPbq2pe7OahTYwJk0cDozTaf+U8/ddLqF0SqAKz9CmbzXq9T0vaD/OcGjm 5Wpj53bW/4k+aYKDWceJlOx1INY7bsmiMfG6hZdn0+Cb0KowP5d0OTKNbxBaTWuIN9Mv cLZCUXMRDiN9Kd4nnKCgbS5qbuqNqTbs/H2LmS4bXOG9pNg99PU3fmIEkZZH8Um364nD n58PO2PsvibrvGMdrCuZy0/knKj993rFQXcs0ldSgzaHukxUpwYLJ0PjxAg2dAe5uPb8 /yVw== X-Gm-Message-State: AAQBX9flBFjMFK2k1igpbzDOTC8Bsbqwpz7gqKuIkJFSNdpeC6c6XOmn WJeeQWLg+fZiDlL7UvaGJesew/KE X-Google-Smtp-Source: AKy350aOHEfMKvH7pQGh1EXzLBJeNnqdRS7tg+LRtN1pofpmUefXdgSPGvabFl1FR2eNmedAa/nJBA== X-Received: by 2002:a17:902:ecd2:b0:1a2:278d:1824 with SMTP id a18-20020a170902ecd200b001a2278d1824mr6128824plh.12.1680095894434; Wed, 29 Mar 2023 06:18:14 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:f7cf:b0:19c:a86d:b340 with SMTP id h15-20020a170902f7cf00b0019ca86db340ls12563116plw.9.-pod-prod-gmail; Wed, 29 Mar 2023 06:18:12 -0700 (PDT) X-Received: by 2002:a17:90b:3846:b0:236:6a28:f781 with SMTP id nl6-20020a17090b384600b002366a28f781mr21214659pjb.22.1680095892514; Wed, 29 Mar 2023 06:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680095892; cv=none; d=google.com; s=arc-20160816; b=cL7c7/0cPjPOBTJtIBSCbTeSpV4VjeYJRaEY8umSnfXUCF41PQ/+SsA68aI0WuOZ8e 7YfeA9FIPL8SYs6EF206VkgRPiXILhcuvlU04xOJCQJ31iWFZCGQ60+Gly3VUXTSdC45 T6HYRNg/JALLpHQ2Wd66pWfLzbBOpj7oxXDzmPdGD4CqboUPZFWedrZnpTqOiPwh9UPJ HRZ+/ljZl0MSAST1gEprTHzgher6prbNuS89A4QwwsJauMPhyXloRJ2yR/xF57JYewfB WSR8bhTRHXTqcWtHTVV3GUMWG3AVBPr7Ax276KFfX4WQTNaNXCZCBaIVAFy1XlK9Edal 34lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=d+PX9J3U7p5qZlBeWmtYaZVahtk7x+bKgv0zxDQ5NKg=; b=p8onSctCPwxxOU6fDeqeJOdxikK87J3a4k1YV0kIZPI3gEJ+QqKEY1242hmCaM6u1U LVJlaCcgfaPXi993omV2CAx7vzQSpX7y4wq++BvgBr2LLuIAKEEkN+1h3YfpW0FyqPYA 5VroNnHiPE+gh42pf6BKlndKkA3fo8p9lfKrxOwsOlmghZqc0Ri40Qrt2+DhSHmkSHsn 5Uzbj/P2psCQWcCOvOaiNAa/CW1RtNRTZux1TErpxXMgDT7R5WpNZqJDAujDwwRcpZku YylREWgPIw/zI9oEgAlWaoxaIiPZBcBAf6b+u5FXOe4EFNaYtArl27YsVyTSkJKZV/3l Es5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pNuu1Gkc; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id bk18-20020a17090b081200b0023cfb3c221dsor825379pjb.38.2023.03.29.06.18.12 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Wed, 29 Mar 2023 06:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90b:3b44:b0:23b:50ff:59ba with SMTP id ot4-20020a17090b3b4400b0023b50ff59bamr19952654pjb.21.1680095892216; Wed, 29 Mar 2023 06:18:12 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a047:206d:4722:c4fa:e845]) by smtp.gmail.com with ESMTPSA id s16-20020a17090b071000b0023f5c867f82sm1400192pjz.41.2023.03.29.06.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 06:18:11 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Dave Stevenson <dave.stevenson@raspberrypi.com>, Maxime Ripard <mripard@kernel.org>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Thomas Zimmermann <tzimmermann@suse.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <neil.armstrong@linaro.org>, Robert Foss <rfoss@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Sam Ravnborg <sam@ravnborg.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Marek Vasut <marex@denx.de>, linux-amarula <linux-amarula@amarulasolutions.com>, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v7 04/12] drm: panel: sitronix-st7701: Enable prepare_prev_first for ts8550b Date: Wed, 29 Mar 2023 18:46:10 +0530 Message-Id: <20230329131615.1328366-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230329131615.1328366-1-jagan@amarulasolutions.com> References: <20230329131615.1328366-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pNuu1Gkc; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7701.c b/drivers/gpu/drm/panel/panel-sitronix-st7701.c index 7eae83aa0ea1..dc7677412023 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7701.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7701.c @@ -105,6 +105,7 @@ struct st7701_panel_desc { unsigned int lanes; enum mipi_dsi_pixel_format format; unsigned int panel_sleep_delay; + bool prepare_prev_first; /* TFT matrix driver configuration, panel specific. */ const u8 pv_gamma[16]; /* Positive voltage gamma control */ @@ -564,6 +565,7 @@ static const struct st7701_panel_desc ts8550b_desc = { .lanes = 2, .format = MIPI_DSI_FMT_RGB888, .panel_sleep_delay = 80, /* panel need extra 80ms for sleep out cmd */ + .prepare_prev_first = true, .pv_gamma = { CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) | @@ -875,6 +877,7 @@ static int st7701_dsi_probe(struct mipi_dsi_device *dsi) drm_panel_init(&st7701->panel, &dsi->dev, &st7701_funcs, DRM_MODE_CONNECTOR_DSI); + st7701->panel.prepare_prev_first = desc->prepare_prev_first; /** * Once sleep out has been issued, ST7701 IC required to wait 120ms
Enable the drm panel prepare_prev_first flag for ts8550b panel so-that the previous controller should be prepared first before the prepare for the panel is called. This makes sure that the previous controller(sun6i-mipi-dsi), likely to be a DSI host controller should be initialized to LP-11 before the panel is powered up. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- Changes for v7: - new patch drivers/gpu/drm/panel/panel-sitronix-st7701.c | 3 +++ 1 file changed, 3 insertions(+)