Message ID | 20230329131615.1328366-8-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBKPVSCQQMGQEHH5J3FA@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 2C41B414BB for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 29 Mar 2023 15:18:35 +0200 (CEST) Received: by mail-pl1-f197.google.com with SMTP id l1-20020a170903244100b001a0468b4afcsf9459834pls.12 for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 29 Mar 2023 06:18:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680095914; cv=pass; d=google.com; s=arc-20160816; b=AnUdY60YXEpqC+ZpZJBfiYhcu6eoZnRdRjwN09jOerLZaOOvQ638+iqPIbOVUnnJLb 9QcpA7kjIXqFASrIzr7zSWq6CuBkaBS7YZcSyNZO4P/3+L+07ch7NhPjhhmVxPne/OOl nF1LLejiu65vAzlrpzOmoPVy0WnlC+aeU5bdG4jFvF707kdc2SiR4YNcTIO3vNSh1u1q E+Wuk+BSks40IKBXMMHGv1ddNzBxIlTVArbW747w0Pe3A4sCqIeNKEigFd/UCfz7PUAx 3dGm0wt57FH5N3glx5aGGg1ssnzqmW/yi8V870oToDbiioNPwJhG+jlANHE4rqSJBSLI g9gw== 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=bZjmWD5beQ0ZFBqajHfsYTdUSK/oYYrHJ7V2kfuN5iE=; b=xfIju2MNUtG0CZ9fcBcOTYRH+PJwruJQSebU5XdaLlwOBMXln8MFulFPF8dMkds3Ce E1WspLGUAVr2LTtWkhzGfW7bTXW3okrCyCQ6Q+Y2xM0U+ZVCKkhDKpgwwtjqc/fDFUPR leiKEIcG65SV5uFXv1uRPlHajMlz3ju8s+0LZKX3KF2cqr3dnSdZE6eIwrRp6xhg7tGg BMJhI58vxiGrOrtgJyywYxAramA4sAC3iopC3fM6tyOSz1EXsCE8OfpfOcyD1XtIrV4t 2RpiMbsV9toxl3xpYQwA4bdJzydFiQ2sYrkWsGf3RJeY0/GkjrWS3GpBWzmXFIoIahlm 8DyA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PP7u3tIV; 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=1680095914; 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=bZjmWD5beQ0ZFBqajHfsYTdUSK/oYYrHJ7V2kfuN5iE=; b=HG4Vy2gynHh+QKbnEKGd/NOjLSmxV+sC7+p+aGHogTpFzT9JupS3I8Fxd/xQK0uSBV mKl71tjZjOXxe9YXFhxekQ8SsV7BoYg5i2SV9z52lrTZhYcB1l+h6i9M5JNDyweB4AKT cvvn534WO6IVWp42OrQ3ZsFwrNq1irDUCXFIE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680095914; 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=bZjmWD5beQ0ZFBqajHfsYTdUSK/oYYrHJ7V2kfuN5iE=; b=VpvMR6ds/FOvhTxPYdKYdflrrp/AyYmPSECf9uJ4pq+MNzEkRmAW6RwMi3aOb06rbd mqSVBgcPgGaTpi1f/7RoOfYd3TUmL3K+R8tiqfdT4hJB+rTukw7vzDE2ZU3kaoNnsNQX 0DJvp3RMp6ElG391NlkQ2ImUfBklumxj01otNEjaK3bPn4hQll434sL09gzcWFQjNHKY WipO/K9iN9dF+9VTs9D/48eqgClV9OHcnLq3F7ba6LyA8MLiPiWsJjr/cjcauZ1Nbq2v jm3nlH3/FELM7mvLOOa+w6gy8BmrmLgECo0/BuX0lSqXtaBw2L91yHlIHMRGYkEDljFZ eP7A== X-Gm-Message-State: AAQBX9c6Q49CxmraShbuN24OvniLVfCWQnqGkDTs5JOUJwEGe0Xi1aXC WZiWqwwh9OUBPIagZiUj7P9Q51z5+cf7AWMV X-Google-Smtp-Source: AKy350YhyEBwZ+2oZszYOBf1JG8dn6mwB4yP7vReR7XWm9cVg2YTZQ0ii2UBiqjRPod4t57VG3SNwg== X-Received: by 2002:a17:90a:4595:b0:23e:fad0:dda1 with SMTP id v21-20020a17090a459500b0023efad0dda1mr5696111pjg.1.1680095913969; Wed, 29 Mar 2023 06:18:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:a2e:b0:237:18be:2595 with SMTP id o43-20020a17090a0a2e00b0023718be2595ls2190481pjo.3.-pod-control-gmail; Wed, 29 Mar 2023 06:18:33 -0700 (PDT) X-Received: by 2002:a17:90a:196:b0:234:5eb:2177 with SMTP id 22-20020a17090a019600b0023405eb2177mr22672669pjc.9.1680095913145; Wed, 29 Mar 2023 06:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680095913; cv=none; d=google.com; s=arc-20160816; b=cddvkz5a+YVbh60EVrcM5KxiWuaO9Y7zFuZBe1TQ4NNBgMVjeaA6ukaqaZZcyF96Bb HYjIr/mIXJGR373sCTQVlsqIYQUBu7RZPIjrKSgE8BVHHuonqjbiUon40gVILpBGuPic gIrX8xOEiH4H7RXSe2GsrZCnIRClt/c4BavIQujJ7NvSn9qbjUEFYWb7BfQVBA7Y4y/Z l0oGgnlUIZt1EOC4wpwy8J0cZuqZNHINsN6pTHOmsmo2ZTxcSzxTiDg55ltp0cc0VmBt VW75Y3KMPdl/sia8fv6u10h+6e238e9cv2NJEFzrifsRInjFjjEldTyS0jQ2cKfS6mte BFWw== 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=oygreZW8DvOSbrfdutvOrgL5JnDv+HmvzMABB2AWGTU=; b=d/kd9i9iMKcFGlnPKkTrsL94BuMLntJp+WekKadhc0gJPPwCrO4qceLKNsHjtyiUcq Qv2xeDf+W1PTkwIVMuS2p2VD06JA1eAUcqueKGZ9LZP+FcfHx4upjCOw8P1Zl1IUS/co EQPvAphSPZylFv8u6tY8O+YbqsninsdGojeUxu/IB7S/Z8xEEtfpdd596UADiqp2Rdm/ Si+L2WYD+FWBx6HhgH6xitppBLn1bCAvuNvXXStKZcI1xk0egNHYOOg3DG/xyHpcmhh2 A8omPJANmHh32AXX18pqY/yoQKoNNZKbqp00KUjIYH/1kpNDcokRL9c9gll56rwl6iad 0VTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PP7u3tIV; 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 h1-20020a17090ac38100b002344bdd90f1sor844723pjt.28.2023.03.29.06.18.33 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Wed, 29 Mar 2023 06:18:33 -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:1d02:b0:23d:133a:62cc with SMTP id on2-20020a17090b1d0200b0023d133a62ccmr21046371pjb.17.1680095912864; Wed, 29 Mar 2023 06:18:32 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 06:18:32 -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>, Icenowy Zheng <icenowy@aosc.io> Subject: [PATCH v7 07/12] drm: panel: ilitek-ili9881c: Enable prepare_prev_first for k101_im2byl02 Date: Wed, 29 Mar 2023 18:46:13 +0530 Message-Id: <20230329131615.1328366-8-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=PP7u3tIV; 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-ilitek-ili9881c.c b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c index 1ec696adf9de..102a1df0cea0 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c @@ -42,6 +42,7 @@ struct ili9881c_desc { const size_t init_length; const struct drm_display_mode *mode; const unsigned long mode_flags; + bool prepare_prev_first; }; struct ili9881c { @@ -891,6 +892,7 @@ static int ili9881c_dsi_probe(struct mipi_dsi_device *dsi) drm_panel_init(&ctx->panel, &dsi->dev, &ili9881c_funcs, DRM_MODE_CONNECTOR_DSI); + ctx->panel.prepare_prev_first = ctx->desc->prepare_prev_first; ctx->power = devm_regulator_get(&dsi->dev, "power"); if (IS_ERR(ctx->power)) @@ -942,6 +944,7 @@ static const struct ili9881c_desc k101_im2byl02_desc = { .init_length = ARRAY_SIZE(k101_im2byl02_init), .mode = &k101_im2byl02_default_mode, .mode_flags = MIPI_DSI_MODE_VIDEO_SYNC_PULSE, + .prepare_prev_first = true, }; static const struct ili9881c_desc w552946aba_desc = {
Enable the drm panel prepare_prev_first flag for k101_im2byl02 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. Cc: Icenowy Zheng <icenowy@aosc.io> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- Changes for v7: - new patch drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 3 +++ 1 file changed, 3 insertions(+)