From patchwork Sun Nov 26 19:15:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 13468903 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 9EDAFC4167B for ; Sun, 26 Nov 2023 19:16:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 42BB310E142; Sun, 26 Nov 2023 19:16:40 +0000 (UTC) Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id B59E810E142 for ; Sun, 26 Nov 2023 19:16:37 +0000 (UTC) Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id BE62960342; Sun, 26 Nov 2023 19:15:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1701026197; bh=BcTjqWe4uScWhaNbhPONqwVftNfiGtAQS9TIsxqQBR4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PPZzIyLRPGvv/xqQ0VhyiPLCAqPrN+lwNamSXl5xslpa1kXkRd5ZbfElk+s1oVhgK kNOLfyd+ZINqltUejUdoVzKl0XJDFoCoK8pd+TbD+Kqs7lTT53Y886uUXCatsw9wsX aduQj+BC6APTu0Gc7roXsUHDORJYA5Ip9yotJ5iH9SuHLXjQLURKOpScFKJbRp3H1+ wggJVix7Hg8ijuk2n0nepak09rkn/1abhPIfi1bndDecZeg2W9a6zvvIa0CfbJKQtx 0p6Ne7gUElgwGD68p6EkB+97P198ihe2F3kORpXX58BVgMUtTds+q1NDQg3lt8djIK ItJp+J6nWkBxA== Date: Sun, 26 Nov 2023 21:15:54 +0200 From: Tony Lindgren To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Sam Ravnborg , Vinay Simha BN Subject: [PATCH 6/6] drm/bridge: tc358775: Configure hs_rate and lp_rate Message-ID: <20231126191554.GM5169@atomide.com> References: <20231126163247.10131-1-tony@atomide.com> <20231126163247.10131-2-tony@atomide.com> <20231126171837.GK5169@atomide.com> <20231126172018.GL5169@atomide.com> <20231126182135.GA5166@atomide.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231126182135.GA5166@atomide.com> 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: Carl Philipp Klemm , devicetree@vger.kernel.org, Ivaylo Dimitrov , Merlijn Wajer , Sebastian Reichel , dri-devel@lists.freedesktop.org, Pavel Machek Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The hs_rate and lp_rate may be used by the dsi host for timing calculations. The tc358775 has a maximum bit rate of 1 Gbps/lane, tc358765 has maximurate of 800 Mbps per lane. Signed-off-by: Tony Lindgren --- drivers/gpu/drm/bridge/tc358775.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c --- a/drivers/gpu/drm/bridge/tc358775.c +++ b/drivers/gpu/drm/bridge/tc358775.c @@ -653,6 +653,11 @@ static int tc_attach_host(struct tc_data *tc) dsi->format = MIPI_DSI_FMT_RGB888; dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM; + if (tc->type == TC358765) + dsi->hs_rate = 800000000; + else + dsi->hs_rate = 1000000000; + dsi->lp_rate = 10000000; ret = devm_mipi_dsi_attach(dev, dsi); if (ret < 0) {