From patchwork Thu Jun 15 20:19:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13281715 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 BE2ACEB64DA for ; Thu, 15 Jun 2023 20:19:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9998510E536; Thu, 15 Jun 2023 20:19:23 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by gabe.freedesktop.org (Postfix) with ESMTPS id C775710E536 for ; Thu, 15 Jun 2023 20:19:18 +0000 (UTC) Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id A834586167; Thu, 15 Jun 2023 22:19:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1686860357; bh=P9iXJviGZ5J3NqHCLPEh5LPn+kpMEUWD9kYTEe3hTgY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GzAOlnvUov4w2dReQzMgGIfofKYb33FwoAoJEZGtA9esMToQZUmL/Bwu/Fo4OOhB0 IFY9E1U1v3xT38s8cotzzsFYXwXFUtoultQFblazEQ1qHWzqwJPK2DnPyUyV+3msbj FgokEPBkHvwiPIlvzbQM34noHUro1jXICbMD46/L7HSzqsv28ppJHqEEonsAjRK/lr 8AC6eSOls0sl7DjnFGEFR/aOQk/DATEFcx8rl1eGHXKop1G2Af1guN22TPkseOsQOz 2JIinrsUHm5bEspArvxWEWjeVTpLLDN+4AWPw+A9nN9Rf5ORzP3KMEggl1OG6oQskb wNghI5MbMd93Q== From: Marek Vasut To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/5] drm/bridge: tc358762: Instruct DSI host to generate HSE packets Date: Thu, 15 Jun 2023 22:19:00 +0200 Message-Id: <20230615201902.566182-3-marex@denx.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230615201902.566182-1-marex@denx.de> References: <20230615201902.566182-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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: , Cc: Marek Vasut , Neil Armstrong , Robert Foss , Andrzej Hajda , Jonas Karlman , Jernej Skrabec , Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This bridge seems to need the HSE packet, otherwise the image is shifted up and corrupted at the bottom. This makes the bridge work with Samsung DSIM on i.MX8MM and i.MX8MP. Signed-off-by: Marek Vasut Reviewed-by: Sam Ravnborg --- Cc: Andrzej Hajda Cc: Daniel Vetter Cc: David Airlie Cc: Jernej Skrabec Cc: Jonas Karlman Cc: Laurent Pinchart Cc: Neil Armstrong Cc: Robert Foss Cc: dri-devel@lists.freedesktop.org --- drivers/gpu/drm/bridge/tc358762.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tc358762.c b/drivers/gpu/drm/bridge/tc358762.c index 5e00c08b99540..77f2ec9de9e59 100644 --- a/drivers/gpu/drm/bridge/tc358762.c +++ b/drivers/gpu/drm/bridge/tc358762.c @@ -241,7 +241,7 @@ static int tc358762_probe(struct mipi_dsi_device *dsi) dsi->lanes = 1; dsi->format = MIPI_DSI_FMT_RGB888; dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | - MIPI_DSI_MODE_LPM; + MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_VIDEO_HSE; ret = tc358762_parse_dt(ctx); if (ret < 0)