Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3000606A31A for ; Wed, 2 Dec 2026 10:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=QTQsFzCo; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=rNsH5g7O Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 71738409A0; Wed, 2 Dec 2026 10:28:03 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id tLqWAkVpRSv3; Wed, 2 Dec 2026 10:28:02 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 4B8F3409EA Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796207282; b=dj2L/Z7RhL5Avjt/+/MIYPXp0A51pVdthm2YFG09Cwsh0K361T3AhYvSSkgkUdi3WcVM npEhqQDdRJVkUvGho+P0MelZSUnjXi5/Eyt0M4bqNxyRI/fvVIhlA/1RJbmirv6VrHVee 50BbkwElMo/zWdLFOdt+c33Wm392Pr+sQsFmlFWOj7b/ld6AQWJVDVlY6/AbVOAjtnuXe CyuHcK1iNYvs746WmjGcxmxzLPv7ObxKgMwEn+BtXbvpT42yo+GP+St4MRKmNn/16gZ8A FYIzlg1PJ8J0vjoaoxNvF+p6kPoneHG1XI9DVymg1Ljb1Gieh3/UU92qAaXXrV8AYmA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796207282; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Errors-To; bh=7lMzTtI6wXUPMkTg/SAat0ADhfH5iXYRKzVc+QavQbc=; b=UyqOfeBy3g5GfHLHKZggOObbhmE0McHtllUoyfwaMijCsAh/T46ffSFYZP1yPW1yrXxy 4nnbWDM4voUNyGJ63tYr22hxwVTIWZomgKmDyGUle0psmiwzNMFwipbCXZhNSU3qDtG/j bAYAlvAu91vJT18nRQsq6CaLSz6rqJ73Rxo/VIFcWm7cR098igGfljePG6DDSiU0Okybr jq3apoPAIoU+NC57HJDoMxfODOPGdZoD6QTgaiXPJqqrFeylup1ujUQBP9lW+Oo3fhIvO VW+2Ymg5dRn25jfkPCHRwN1liYQ2Q+xa8X9Susby6QkDB0PRYNc0+kaknT96iVmadiA== ARC-Authentication-Results: i=1; smtp4.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1796207282; bh=7lMzTtI6wXUPMkTg/SAat0ADhfH5iXYRKzVc+QavQbc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=QTQsFzCoiHINXkkaoj0PaBc2AR1cHzycgT9psMtf7hbdZFfPpAKobkjHyKDaRDY4n +tg6Fz5PvIrS5D+giPYUeRP1kzGA5fN6YsSqf89SxzGRnkzLyfh2+Vzz9/TZgFCzqx q9qqLVeSqSzBkl3WzVRymlZ6vYd4cvYLlBfKW+ShVwp/XQeDVjUo6JvIeBI6mD27Lv l1a4p6DqY3k83KbmmkpxxN8h935NEew3AfW2fMqyIRwPMZQ7bZRzLzRq7lnhbN3tFA Jk9oBleRsHcNrZsEOvvw3LXXTqB9wVS/EHd02GvtRbOtwHDTJbSPuPQXj8YPmvRB+3 bwl8rR5Hs1gWQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 4B8F3409EA; Wed, 2 Dec 2026 10:28:02 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id B6BA94C2 for ; Wed, 2 Dec 2026 10:27:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9D04380E67 for ; Wed, 2 Dec 2026 10:27:53 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 9wMGPat_OIU1 for ; Wed, 2 Dec 2026 10:27:53 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 8524780E63 Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:20::334" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::334; helo=mail-wm1-x334.google.com; envelope-from=dario.binacchi@amarulasolutions.com; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=rNsH5g7O Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by smtp1.osuosl.org (Postfix) with ESMTPS id 8524780E63 for ; Wed, 2 Dec 2026 10:27:52 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4bb55cda775so77874595e9.0 for ; Wed, 02 Dec 2026 02:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1796207270; x=1796812070; darn=lists.u-boot-project.org; 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:content-type; bh=7lMzTtI6wXUPMkTg/SAat0ADhfH5iXYRKzVc+QavQbc=; b=rNsH5g7On3dO/lVsAoe2zeoPyXYFywk6Qlm3CddetfMEBztwr5PuPzd2cxkdoeKXtr Cb8MrED2D/OAc2f2LVjnVslfuVwVtCcEuKPmtTLvwH/YWmCR7TkVD3hNY3uUQ2ZtoTD0 xgCTL4VWlE88PKAUxgZ+cuiJP0NeDxC6kZgHw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796207270; x=1796812070; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=7lMzTtI6wXUPMkTg/SAat0ADhfH5iXYRKzVc+QavQbc=; b=sSDSyDCLz+5zF3WX21IgRmT+Qn0ae0Qi2pF2t94qudKp1PQc+P5OunyBxfRSQWSY+s 3IMxwBznDcXHNXRoYyJLEp1GTlOE7gKz8iDy8n+LKBKM8MYMFayCkqA12HbWO7+u01tm ykAMPps4nWCbuVX559iUSkGj8tz4mRtbSq6w9loQUGUbGtVoxXKjqrezt1L6hItC6Enj IbewJGFHJR+uMBJGsZUGbpD5AcOtGM+Y9AtXz2sHJf59PLJbv92x6gQ+Nw0GiQXnGXvS lYX2zhYuDGjq1wdeQjHR+FRLAqpANfTx3zwsjp+4zrkqZVX/56eycugomYQ41I3KUSYo bgZQ== X-Gm-Message-State: APuU4Z/jNoQLptviEF2+Qsh1fyVKCtU4zVeALC801I3O4raH7dwVysDK J0ouvsvH4+SzkxXV4U8GPpVuVh4cfhK+8haTkphqCjzB4Ux1/wZCSULlHl+1u1bEtwURK5nmwPv 8um0t X-Gm-Gg: AZFdTZejYI5tzLs3f2oz7iO/5lEz9i0hqaUejZbUnd2as1+CDpktg7IE+gKPr3NMC9T mjt8kmGwCivrdW/+nHAfHiCJ8HuEAXaF928R4RXXiG9uEaZeFJno5F4OscTyKP+X7R8P8V2475z W4HO19ya79iUqgTXi/6TvzLx1jUF5FjGmulNCRqrlUzfMnuevpzGAlDKkbmnbF7BZpudJh3nUMt KUg3uhcMo4IyOgD2vUf4dUWWuS8gZRlBr6Kg0y7DomNw5Wntl7C2U2T3ngZA9K0lj4BLwEQSMS1 dNOUS14VyVIsICfpUTATExTIGT7qoWvbpvGdYrEheewCESO+EgRH1cYljaef+Qk3g+kNdlzFAs5 A0G0pv5nCOFtToFs4M+/zgvpz5ZV+b899d84BO4jKmc3PFAZD6URrdEqlq7mvWC2PR8LJn7ahdm k1bqDWnabx2jIixIcHO5rXhsQYEHf+1SdXlpjFhoQhwbfwy9vmFDxo5Y//Qf13ACChA8CBsMjAg BmQ8YcG89ppVy3CgWbtnBCbCJOczS5XaDPBNVo5j0lJBZCnOQdBunkrZj5sVll5SPkXeAoHydmV 2Au6sJUpGAz10+6uGt5AgkYx5hfNOj8z/mKYUO6AEfyPm4G/NRheCvfguyB4nlHE/5ozZRfCcOL w/mvXZ7T2Sz3NuYGa0pHH X-Received: by 2002:a05:600c:a085:b0:4bb:85d9:156e with SMTP id 5b1f17b1804b1-4bb8880fe46mr782674495e9.11.1796207270395; Wed, 02 Dec 2026 02:27:50 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:6962:3ebc:7df:e6bf]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbbaeb1e4csm366823865e9.13.2026.12.02.02.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 02:27:49 -0800 (PST) From: Dario Binacchi To: u-boot@lists.u-boot-project.org Cc: Heiko Schocher , linux-amarula@amarulasolutions.com, Peng Fan , simon.holesch@bshg.com, Marek Vasut , Valeriy.Yatsenko@bshg.com, Leonhard Hesse , michael@amarulasolutions.com, Miquel Raynal , Liu Ying , Vinod Koul , Dario Binacchi , Joe Hershberger , Tom Rini Subject: [PATCH v3 16/26] phy: dphy: Correct lpx parameter and its derivatives(ta_{get, go, sure}) Date: Wed, 2 Dec 2026 11:26:27 +0100 Message-ID: <20261202102716.572884-17-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261202102716.572884-1-dario.binacchi@amarulasolutions.com> References: <20261202102716.572884-1-dario.binacchi@amarulasolutions.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Michael Trimarchi Upstream linux commit 3153fa38e38af5. According to the comment of the function phy_mipi_dphy_get_default_config(), it uses minimum D-PHY timings based on MIPI D-PHY specification. They are derived from the valid ranges specified in Section 6.9, Table 14, Page 41 of the D-PHY specification (v1.2). The table 14 explicitly mentions that the minimum T-LPX parameter is 50 nanoseconds and the minimum TA-SURE parameter is T-LPX nanoseconds. Likewise, the kernel doc of the 'lpx' and 'ta_sure' members of struct phy_configure_opts_mipi_dphy mentions that the minimum values are 50000 picoseconds and @lpx picoseconds respectively. Also, the function phy_mipi_dphy_config_validate() checks if cfg->lpx is less than 50000 picoseconds and if cfg->ta_sure is less than cfg->lpx, which hints the same minimum values. Without this patch, the function phy_mipi_dphy_get_default_config() wrongly sets cfg->lpx to 60000 picoseconds and cfg->ta_sure to 2 * cfg->lpx. So, let's correct them to 50000 picoseconds and cfg->lpx respectively. Note that I've only tested the patch with RM67191 DSI panel on i.MX8mq EVK. Help is needed to test with other i.MX8mq, Meson and Rockchip platforms, as I don't have the hardwares. Signed-off-by: Liu Ying Link: https://lore.kernel.org/r/20220216071257.1647703-1-victor.liu@nxp.com Signed-off-by: Vinod Koul Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/phy/phy-core-mipi-dphy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-core-mipi-dphy.c b/drivers/phy/phy-core-mipi-dphy.c index 727c2b040520..79cab9125002 100644 --- a/drivers/phy/phy-core-mipi-dphy.c +++ b/drivers/phy/phy-core-mipi-dphy.c @@ -64,10 +64,10 @@ static int phy_mipi_dphy_calc_config(unsigned long pixel_clock, cfg->hs_trail = max(4 * 8 * ui, 60000 + 4 * 4 * ui); cfg->init = 100; - cfg->lpx = 60000; + cfg->lpx = 50000; cfg->ta_get = 5 * cfg->lpx; cfg->ta_go = 4 * cfg->lpx; - cfg->ta_sure = 2 * cfg->lpx; + cfg->ta_sure = cfg->lpx; cfg->wakeup = 1000; cfg->hs_clk_rate = hs_clk_rate; -- 2.43.0