From patchwork Wed Mar 29 13:16:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13192412 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 242C0C74A5B for ; Wed, 29 Mar 2023 13:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5zKAL//E5BLFiHS4Cyhe9bcWCfRI/tTIy03mTlj81H8=; b=RSw9IKlXSOMyOz bObHpcapPcGXUMlX3ngwCgWvBYHMrnk1pPuIqimESBQ0Gv1SbAKVrCEHgXY781yV+bN1oR7fiRbaY gEpKcEk4e3ct2TKApKOj/lYTMdFvkFv9nlqLBRb4TwfZVzTHvLh/wVxt2wRgA/mqaEtsthHSgoXPe dHbB+72UJHKTH6lWJ6su4x2XErf7grBFeIA4a2lHAoZZvMzJ+xoegf/363UiNjA6VsQ7MovvHeag8 4tjjnNKElLuvm0yZ/A9LfW9CY6yS3iQi4Nsp34n4S2/92FSfg9tTl3P3CBF7LU0kAsC6PTg1tPf/p wJmeRwn8lqhoWk/XP61w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phVhC-000Jt2-1l; Wed, 29 Mar 2023 13:18:34 +0000 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phVgz-000Jhm-1X for linux-arm-kernel@lists.infradead.org; Wed, 29 Mar 2023 13:18:23 +0000 Received: by mail-pl1-x62e.google.com with SMTP id ix20so14890212plb.3 for ; Wed, 29 Mar 2023 06:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1680095899; h=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=f+Jq4CQBAwZOjvBLdvikVzLpWjI0SGbxRpeBtUQtDcQ=; b=Ou/OtLmpNc78F/fwnqk1lzBgwyfUoX8VK7o4RpfnSYek0c6mzr55RafkbJPWpVDXEi eUvONb1/8WR9m/S+MqqA3BfxCALKIkNuYaZPDo/X4FFKOP2gHBDL14hZsB51ThK0gMCo E1irsVQt1JZisYTFF7Lfw1qND+3EgJ+bff+GA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680095899; h=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=f+Jq4CQBAwZOjvBLdvikVzLpWjI0SGbxRpeBtUQtDcQ=; b=upsPhD/FAYa/AhlGuSfKuyOpZVyXPoYjdKneNJM3gEi1bMRnjF75sZA4ztT4MvhgiC zTqwM+QY2qPBef9lpwp7rkKRdjP2L8WSvXSyzzqHw2Vti2Jl2QIv6zrMpytG9y4ngxQX 0whecHCviTMhtXbDopSKNk3mIZw50f7UQpja6h8s55z3W52TD7iHPNAn6ewYrx1FUsf0 sz6egeyiqSQE0Xm2A/syEPOvFbdT7Y14xMQx1DCMyt+O/pMFXhvg2m035Avpq+xY3hh2 Qy3+KAkQGW7WWQr0Q3zr/vf6WZ6M3eW0AhQ0ZK+q46d48gj8yEz/RvbAPBeFf8PVVgnO I8Hw== X-Gm-Message-State: AAQBX9cJJDa4DkUPlvUaRLq+DyCTPUpveFbRUg0/K5et8O/xCZdtC8Zb IQERWbc+Nz2M5GFNOI3NpRhz5w== X-Google-Smtp-Source: AKy350YCiiWm/rDw6yILBFYbQ4o+gaIGsdINxQHWQbNw3orvvBWljZZZiHyHon7RGJ7hUl10VDOAFQ== X-Received: by 2002:a17:90b:1e4f:b0:23b:4438:e9ee with SMTP id pi15-20020a17090b1e4f00b0023b4438e9eemr2098113pjb.12.1680095899302; Wed, 29 Mar 2023 06:18:19 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Mar 2023 06:18:18 -0700 (PDT) From: Jagan Teki To: Dave Stevenson , Maxime Ripard , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sam Ravnborg , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Marek Vasut , linux-amarula , Jagan Teki , Ondrej Jirman Subject: [PATCH v7 05/12] drm: panel: sitronix-st7703: Enable prepare_prev_first for xbd599 Date: Wed, 29 Mar 2023 18:46:11 +0530 Message-Id: <20230329131615.1328366-6-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230329_061821_527282_640DE4DD X-CRM114-Status: GOOD ( 14.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the drm panel prepare_prev_first flag for xbd599 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: Ondrej Jirman Signed-off-by: Jagan Teki --- Changes for v7: - new patch drivers/gpu/drm/panel/panel-sitronix-st7703.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7703.c b/drivers/gpu/drm/panel/panel-sitronix-st7703.c index 6747ca237ced..6e6112f5d971 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7703.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7703.c @@ -65,6 +65,7 @@ struct st7703_panel_desc { unsigned int lanes; unsigned long mode_flags; enum mipi_dsi_pixel_format format; + bool prepare_prev_first; int (*init_sequence)(struct st7703 *ctx); }; @@ -335,6 +336,7 @@ static const struct st7703_panel_desc xbd599_desc = { .lanes = 4, .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE, .format = MIPI_DSI_FMT_RGB888, + .prepare_prev_first = true, .init_sequence = xbd599_init_sequence, }; @@ -544,6 +546,7 @@ static int st7703_probe(struct mipi_dsi_device *dsi) drm_panel_init(&ctx->panel, dev, &st7703_drm_funcs, DRM_MODE_CONNECTOR_DSI); + ctx->panel.prepare_prev_first = ctx->desc->prepare_prev_first; ret = drm_panel_of_backlight(&ctx->panel); if (ret)