| Message ID | 20261202102716.572884-17-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBJ7FX7MAMGQERWLPNOQ@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com
[209.85.128.71])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8690B3F336
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 2 Dec 2026 11:27:52 +0100 (CET)
Received: by mail-wm1-f71.google.com with SMTP id
5b1f17b1804b1-4bb8da397aasf85586295e9.0
for <linux-amarula@patchwork.amarulasolutions.com>;
Wed, 02 Dec 2026 02:27:52 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1796207272; cv=pass;
d=google.com; s=arc-20260327;
b=Bo897JBTleVO62DCBG18BLnBLEg9YF4y4EmkHVsPsU/nmVMRZUA1sgNpEyroInYlox
BgEZs5hggEbuUMO7IVam259sA3SsOgdu48kbMr2V772rwHDpUqMcygciALqIFroNn+PI
odWCBauf9qRHpc46X4wIuce0MP/J51Aa2BmBftSUna1niC2nJM1J4ucF9ywu5+F+wUaR
UnDmsnm2c2Pqx6dgQNYbPGeMVI3nYkjJGKBPy+5NtVKQG/yvjCY/Psj+WwqG7A2He4YJ
8Pmg535iYzPe2orBJPY8TIM7rjoJemAcI467UlKefJZ6U4I1rvf7Y7ARLelHmj2o7mtL
xiqw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=ubFKtP3Ya2ff7U+412HFxMbKsXY8eU7+roBHq28slIw=;
fh=p52Jf71eu5fK2zSrfKFaiTG3Nb0MNdNAR25dygivMd4=;
b=riACXQR6+AoN6m4SGuM6nLT8n3QKiLe4BvMdZXYyyfQHtmMioUDUqmoeyoemuwSPa/
OIfBIKZh9BmPj+EQ7BI3dM2hwXSEaiHd32xBoUly7OPcxcmuAOG9jtcpBvVNdBvfVbME
079HlI9unYMsB3CDggkGDSErIHeu2sMmdde3nNzTehJ7Rpi2UKZKp1T1Q6pqUkfDOl+a
K0unxzayS9WCFGGNrjzIBTSnFpCEozc26NE3HTRtSRrHLbUWWz93UIC4BasjlzlQwN+t
KK0dlDiylkd02pUpYXAqBuFAdCYCQVtH5+75sowSdXBiJijpbanHUrjDc3kYM0MVjx6v
585Q==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=HFTxVA4m;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1796207272; x=1796812072;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:content-type
:x-original-authentication-results:x-original-sender: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=ubFKtP3Ya2ff7U+412HFxMbKsXY8eU7+roBHq28slIw=;
b=NA737BbpdkVioaxQU4HPFHsiQL6sSh5F98mBmuoLOJYRMVO3Y2sY9HnEL7PRENWuJl
CJVklNsiYWMRQrJ4JuKssXdWrahnVbKbVkGAUaB6UJVBkUoIBoWtJaLftZUR0o45gJgp
fyCm/YY3e6Hcf3LsG+ux3l6VIoj4hsMmC9hYI=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796207272; x=1796812072;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:content-type:x-original-authentication-results:x-original-sender
:mime-version:references:in-reply-to:message-id:date:subject:cc:to
:from:x-gm-gg:x-beenthere:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=ubFKtP3Ya2ff7U+412HFxMbKsXY8eU7+roBHq28slIw=;
b=nPBwfrn/gjNcHXfs8RHnCiCpojzy4zqD5HjdpRFqLgnnUrGKjG9ghvha2JCaKPQ05B
vpsCsg6pBAQfC5iIuHfFm9J5I64qP2BgpRERfjF2WxMPPJFyVYyqBFXmfa3Vd+utpJt5
ppetrB1y6YDNAmUdm/HQlT7q+MF/nB7s9p2aI93n0RSy+4aXGkUTsvOc02yrFhL3zQUo
HvVvIlcJquWaNT6HJDeHP8q5WwVIqd+4KDJUsXoJGAaAKDj+hjC+9Ujv+QNlU1vu2//S
qwW3zDxWEMqwXbNYeAkGRck0MbZMNO63yVEpey1VxEYZ7Ft+fvNNyKrxpa6qWYJ7ESWl
Leng==
X-Forwarded-Encrypted: i=2;
AL+hErFGcK1hnsXdPMuWgYqCRlBltPZ62/qQtWugYBjfywNqzO0dvAkMgjpAU2onbeHzlJYSIBJbTk3/v+/1IXeK@patchwork.amarulasolutions.com
X-Gm-Message-State: APuU4Z9vICBwJgbvWbiWEXG3SyPIk6rgIrMg/2qvMxddjUVbN2ah6S6m
9ED89hMRtfUQAVj1UOkkhEsgy8Pfr5WSNG1XVlHAf1OMjMbHYe5VTZVY8w/CRk6px1orGQ==
X-Received: by 2002:a05:600c:828e:b0:4a2:526b:d40f with SMTP id
5b1f17b1804b1-4bb88785898mr801190185e9.0.1796207272217;
Wed, 02 Dec 2026 02:27:52 -0800 (PST)
X-BeenThere: linux-amarula@amarulasolutions.com;
h="ATskLdcHYwypxI2zm6zq3IdZGtv6F/zlPvavsOiKpgq15F7w8w=="
Received: by 2002:a05:600d:82c8:b0:4bb:666c:6faf with SMTP id
5b1f17b1804b1-4bb88f1942als79286715e9.0.-pod-prod-00-eu; Wed, 02 Dec 2026
02:27:51 -0800 (PST)
X-Forwarded-Encrypted: i=2;
AL+hErH6Hb6i/6aMydg1e1RHHBaPP/RufwP9gk7fuTwx8t/D54oeG39qa53wKqx5ESRS2PpAF+h7fg/U/SgLm3qb@amarulasolutions.com
X-Received: by 2002:a05:600c:3b10:b0:4bb:db77:2a59 with SMTP id
5b1f17b1804b1-4bbdb7730a3mr6662745e9.14.1796207270852;
Wed, 02 Dec 2026 02:27:50 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1796207270; cv=none;
d=google.com; s=arc-20260327;
b=OXMwSG68Dq9yf+l6DAkcvtcMq29FTuuEdtfrJ1hDoz8+H+aj4Kb2chP0ULq21vg126
4Y2TfX4xTy0EzhmbwNnP2oP5cmS5TH6uvxSvIs2cdYbq5Q3nXL9xLt9mqkDdrNrgkg6Y
Mw0Syf7oMQXBDSjcP0VundInTO+vP0u2dzwzB1JgJJeZek5XGfsofEoN/pHX3NzmwmAN
sISxQPF+A5kwjBBXOcN1WwtqjfxGxT8ThAqI3vBwWonef/x05ASxW5+Vjkd3EMulJmUp
tjD4fS92KibT1oVMpJ/U9OzQ/hb9VLXg28ZyGkfA7eHoNThmhtuzGyGDo/Lr4BwC/3iO
1Z3A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=7lMzTtI6wXUPMkTg/SAat0ADhfH5iXYRKzVc+QavQbc=;
fh=QDkiuCt0yBA/S+3FsqTCeV0RUy7st77aoY0c8q0qWi0=;
b=c3OWJA6WAt1dKyw8ySI0KHLSbQTLv0ZVQyOIHPTAq02TRQ0pJQFCx6ix0+CH/yupo9
P66LQ0oI54U65MfSbVB+lq6FXUZr9cqKjiRij8pvfxmUp72pD+lyluY8DIG4lLNeqOVW
vL49Nr50d+hVO3Dvrb/P7sRgjlYq2/ZuuXwIzDr7iz6thH9fxzb8dOPmNV1C0LUjwNqQ
ND84m+JaEXm5HlQWFnRFvv8q9G5/B/4THoimUE3yflbyHqoyKNx8iaI2O/heHcnRgqd1
lfCYZfDp8/GVe+eXFq+SNMLfPcFFkBYa6eS7Zdn9IELS0nFP3H6pOi1CKDFguXilcgMv
Cyvw==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=HFTxVA4m;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@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
5b1f17b1804b1-4bba5f20760sor40983495e9.1.2026.12.02.02.27.50
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Wed, 02 Dec 2026 02:27:50 -0800 (PST)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AL+hErHkQq/Ist+YrAVZJ1R12tflTMEO4qQbvfQqZyuHM1qVe/U1UrrYm9bF3BbQJUy6kFR070kBVdNx9oi+cOcX@amarulasolutions.com
X-Gm-Gg: AZFdTZczS+jvOUfEvZvVaEYb4eDFsxkrDifbxFHqLQ/mDS9VwL7qEkSPsQw9hUtnbLP
OwKZxmedZZU61ctO9konySl+0avGgG1QRfcqjUyQ2/Ui5esVliCOEwxdVr5wKhqpT1u4Y2DY/+3
ka+8ZPmme0BE+AUrA8yBAZUNeOW9YOJV0H+gFnpLMQXfyrg9LWE43rJr+6500vS629XLA+kLD39
INRn+Qhh+C6dmbpG0JHYc/+67WSc6TC/7mXSN+BWWYyPlBsiMFiYqGx0De+wvycEA1V7zs35/dE
wmp0+g170V1Q4qBzEgGHUtHe1bUJ0GUgvBxHhOKzrN4tbb136xLCwQ/ItwZdDENlsrcQ8fgpv+1
LkSXt1A7UKXSAqyG41qQ+YFNVky5L9meQ5AqmY3Gk0EeiM9uVrAG5QSeLB3o9BDuKFjW6eagj2U
Y+T4AoUpabyjChNXrSAOEzTaRJltpV5esPq0gehan3hsZkTmwfaPYqhcdVzU12tQ2tvBCC6ckZy
akQwKZVTzZA+Vkak90EGeuYg6rMG5JGW3vlbo+3GgthqGn8rPoPOJohwpiFcYhfgqZ9MZBJ2S8I
aAETyKnmHKLOfRIUV+e5m77Ywg9ep0Arf/FHyVaXM5rt/JQPOPsMqNOLB5fDdKfpC1lBOg3LC68
jYXOWH4bYWC5QAVmD+RsK
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 <dario.binacchi@amarulasolutions.com>
To: u-boot@lists.u-boot-project.org
Cc: Heiko Schocher <hs@nabladev.com>,
linux-amarula@amarulasolutions.com,
Peng Fan <peng.fan@nxp.com>,
simon.holesch@bshg.com,
Marek Vasut <marek.vasut+renesas@mailbox.org>,
Valeriy.Yatsenko@bshg.com,
Leonhard Hesse <leonhard.hesse@bshg.com>,
michael@amarulasolutions.com,
Miquel Raynal <miquel.raynal@bootlin.com>,
Liu Ying <victor.liu@nxp.com>,
Vinod Koul <vkoul@kernel.org>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Joe Hershberger <joe.hershberger@ni.com>,
Tom Rini <trini@konsulko.com>
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>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=HFTxVA4m;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=neutral header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
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 |
Support display on the BSH SMM S2/PRO boards
|
|
Commit Message
Dario Binacchi
Dec. 2, 2026, 10:26 a.m. UTC
From: Michael Trimarchi <michael@amarulasolutions.com> 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 <victor.liu@nxp.com> Link: https://lore.kernel.org/r/20220216071257.1647703-1-victor.liu@nxp.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- (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;