| Message ID | 20250914171608.1050401-5-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBZ7QTPDAMGQEPVZ4QMQ@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com
[209.85.208.72])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7CE1A3FA44
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 14 Sep 2025 19:16:24 +0200 (CEST)
Received: by mail-ed1-f72.google.com with SMTP id
4fb4d7f45d1cf-62a3d0ff34asf2785134a12.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 14 Sep 2025 10:16:24 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1757870184; cv=pass;
d=google.com; s=arc-20240605;
b=c09oBTaLfl3hYsJazS18FaC2AKE5nVbHmorsto+geB1E0rb8STrv4akcWEh+spHHQH
g+amHIhTLY3iGG92adweIJed2FdR9vvb5zqxb19YKoYmHX3l9iLKYeLph9rL07vlrLDL
YSDZ5ktmSxyZOlC4zBxbp2MCNkaRDturCDNZ0j7QEOZevVNwPMDWikHSrVsppfQ8gzhA
DOatUPsprbQ0N/gFJWNhxk7S8sEmgk30eT/Y/5ALSa67BoDmcqp991QZ1mEyqCU6Xer0
KfkDBLPkCmSugXCekIt7AJcxO9tsQ9A1TOKHrEyxiqeqBAVMGqXzzQlam25AcpdjVARx
MMZw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
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=ljMWxV5yQ0pEaBLmWO5AZkWHkxxyruQy+uSMjUwpJYM=;
fh=yOPhSgEwBWYlCPS//kgdZqqSP8Yd7gqgnCGpCC7nHlE=;
b=bAcrPOgk2U4DBPVP7RiBJaTl4JObXh9YduhEX8CifDg3yikI92ggDrCE0LKCQhF0DL
Np6aOPtUNaL5g3mY6yrcsCD+t0y2AgdWRFhA0GeL2FvPkdz/gVsnA33KTX9Z4YhEv7Td
khS73dwPNlCKRZ9nhqO8ueYu/vZEJURfHXd+7+mRjtGsERQiPZCh6MjOoOfUpvfJ5+Ys
tcFiy6W5u8yPc5w+c6X/SfU6UjmYkPXHcbCUkNCH9RD1BbQsxMvydHmY4LlaiLQYAH/v
dQRzApm43CTLxTeBP2t18WHmDqFCdFAI0OVUeqGRCQ4CDpU0Hs+MxQqXGqbTax9rl2Ui
kcPQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=FFAn+Yjw;
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=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1757870184; x=1758474984;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence: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;
bh=ljMWxV5yQ0pEaBLmWO5AZkWHkxxyruQy+uSMjUwpJYM=;
b=GAOh4jvo9KuweBIHu0lSCRmJpjEAbStp4E3+dCK9gVBOfoN5nejULIxITpozsRxekc
XVi/EOOz6yh7thJ1hB8oCy9xhw40M+rjcY19YgiMP/W9MpEwUtrxYLeorfSoosSmA6ER
wn+bJRPGJZOBoNfcfjzN7sgxF7PYbRzcyeJqA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1757870184; x=1758474984;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=ljMWxV5yQ0pEaBLmWO5AZkWHkxxyruQy+uSMjUwpJYM=;
b=qW15nSn/z0YG6d1QE+ljoYG5FyAVJj4XTVehM8rbiLwC9b5v/xJhbuIFD0mQ6N1f5A
Zc6orrG4bjLCvl6a5ETf7dAT9wMaMI6HMZpCV20lOQxRgaM/kNGSSqMZKisBR1whjsmx
yKftPafKHCp+ZPRpoOHslBLJdiUU1daweD8+C+kxekzBFL1AIx7tHtr+Q8oquZXa32bf
5yDHUMMYobMOMVvdwcUFw9++KF/LdnTI3Q3/7tWhy2pM2IYuy4y5eizsQ04Z13W3wj2h
PWIq/fa1RzQrWS7AIZmxaksPAy/RepBY3HlwcdLU2gILDucX7jdOSUogNtlyLs5BTKMV
tzxA==
X-Forwarded-Encrypted: i=2;
AJvYcCU7WKjobzjlPWC2juVoEk+Nbp/qKkoZy7JECyCDSNXJ9je5TIEJphf495dLSaappfw2WmC4GfZDun3ny67r@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0Yxu72mkXmjodibdEdJ1C2WHtVM3IaxcQ2jv6xoj3QrEh5guIyLX
ZdyN12MXAikquUxaz5HYS80U2hS/dgDeDUihXlJUQl+ZudOUxccDREgOLCPFoypE0X3Ryg==
X-Google-Smtp-Source:
AGHT+IHgB/IMtjEqZNlAc5Y4SyRFgTPCTyTzHmg7cKqN42qi6BiuPNeRoT2+oyBQvl9ccFAcY2yzhQ==
X-Received: by 2002:a05:6402:34cd:b0:62f:2c1a:920e with SMTP id
4fb4d7f45d1cf-62f2c1a94cfmr2728706a12.28.1757870184153;
Sun, 14 Sep 2025 10:16:24 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com;
h=ARHlJd4V88kDEdqign4uDNxtPih63epsB0P1qlW59UgBjIVGVA==
Received: by 2002:a05:6402:a0cf:b0:61c:ef7f:7d32 with SMTP id
4fb4d7f45d1cf-62ec03bacf3ls2795619a12.2.-pod-prod-05-eu; Sun, 14 Sep 2025
10:16:22 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCWo14R161SelUkbVBtR9mEaaAyBXGMyEdWJVcLkF88VbvTfPW71gM3E2miKj9ab3vb9ptZvMP9DU/yJFMub@amarulasolutions.com
X-Received: by 2002:a17:907:86a0:b0:b04:e44:4598 with SMTP id
a640c23a62f3a-b07c356d2e6mr945939566b.14.1757870181854;
Sun, 14 Sep 2025 10:16:21 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1757870181; cv=none;
d=google.com; s=arc-20240605;
b=NYt6t65LjMJ2D09wpyW49SbM9PDEqI4v253Wg3knFPsnkbjVbR2LRAnDHPgux70w/M
2ydizkIMBlYm7y21Lte5bzgFdiHDwyHjZAsCFhxOz7jAKqqGf6+Pxq3D2MXlvDzMNMtb
O5DWOBRw1KiFY3dcqMYdW+dhkIXyL98T6v/zstSYAHq1GBElB+QplDd9vjx76+4OvIO4
ZhCQ1oFvU7t1gCCRKYMNq/a7inueLdcPsk28gKBZoyTcs95wBndXCAJZKd03HL24oWWI
Z/uIxLdx31KXssa/K9OcAnMZ5eO8TxH55tpH3OhtkF/DUvDF9OrBEcwozNQmYoEzvX5U
3oqQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=WMdgI0iZ2TvocV4JZ7DyZgorR1pQL3heQi0CeqfMARw=;
fh=rlEYMGw5lUiynce/DefRP1bvHhZA5MmcoOnRNsNUCWs=;
b=hYfvDKPYFdrFKbfbLN3eFziKUXkjCawu+IS6KaZmiJHpjE/axWDdBz5lWKds1362Ym
hbtQeh/nk93JUhHfqEXGMpeKpSKHLvPsf3k3/k6kVMejimalzg68Sjhv/DOXzGBNMvLl
026v0nLfRqqI8Wmtb5h2GaPn+zyZ7psd1IVOQa7YFT/0Amn0S+Gs7sN2YdzcoU0B8AVE
l3jCrdyztszZfKABLdwerWM6+lYdUhyrXAml83wbmZ8gLAQLkzxom83YVGt84qYXDasR
Bs5kYZWzxYWba5n1wPwQulzTSEWlzuKj6vaU6MYK5Cfua2l6MyxDlFVFwvWi+jKZWZPE
6suw==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=FFAn+Yjw;
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=pass 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
a640c23a62f3a-b07b3128799sor320707966b.7.2025.09.14.10.16.21
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sun, 14 Sep 2025 10:16:21 -0700 (PDT)
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;
AJvYcCUYILBuntb7hcow5Ov9TmxoB3m0aQpfRom8JwOGj9PYYSkjPqi7yb+A2m9ULKXmT4bGmoPIY5WIwF+SF6LL@amarulasolutions.com
X-Gm-Gg: ASbGnctypQSzT2oOBTgZrh++UatsSN/YbnQA44BScqFmL8qyRW7vBcJRmJK/lXx2k1K
sotY70CIVwAb74nxPFH7sxWwuME/PB9uJZPFmqv1EI4tDd+uiOC/ZtTfAyIadf0jnSEr+xpSuZa
FFuTwVsVyEcYWcd7LQOwAi1VHJklkCmfr6PYwC+5kLckK6CLDmlmTCBxjk0+Ud2Ev4lu2C+hx/8
oS6Uws4qEg2SmZPHxFAgYIADk0iFlSrKu46fbpCiWGu91O2oPOCrz+/S0MqnZCokNjXS3o/9evB
Qf1tiEfQy/B1PiXH05Euw6vXjzCSNOXSUBE4NTV6wS4oe87KT5BQPGmqHYJ5/UA/zKTa19J9iN8
vMBSbb5L3Pt0FAxYqCd4EVeK9xPptZTrFIwgCFRunI3bsvWAvjcn/FgkM0edMPPrW/0C9TgKIRa
ui6CABdKWlSDOmKsFQ6sJ9UX5JRlQnOdCH7wIqlta5zvh8OfkLC6uKGvd0BzaOJE0h
X-Received: by 2002:a17:907:c08:b0:b04:3a46:c4f2 with SMTP id
a640c23a62f3a-b07c383f1bemr990265066b.48.1757870181371;
Sun, 14 Sep 2025 10:16:21 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it
(host-82-56-38-125.retail.telecomitalia.it. [82.56.38.125])
by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-b07b334e76dsm776980466b.102.2025.09.14.10.16.20
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 14 Sep 2025 10:16:21 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: linux-kernel@vger.kernel.org
Cc: Frank Li <Frank.Li@nxp.com>,
linux-amarula@amarulasolutions.com,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Conor Dooley <conor+dt@kernel.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Fabio Estevam <festevam@gmail.com>,
Haibo Chen <haibo.chen@nxp.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Rob Herring <robh@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Shawn Guo <shawnguo@kernel.org>,
devicetree@vger.kernel.org,
imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-input@vger.kernel.org
Subject: [PATCH v2 4/6] dt-bindings: touchscreen: fsl,imx6ul-tsc: support
glitch thresold
Date: Sun, 14 Sep 2025 19:16:01 +0200
Message-ID: <20250914171608.1050401-5-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20250914171608.1050401-1-dario.binacchi@amarulasolutions.com>
References: <20250914171608.1050401-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=FFAn+Yjw;
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=pass 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 |
Input: imx6ul_tsc - set glitch threshold by dts property
|
|
Commit Message
Dario Binacchi
Sept. 14, 2025, 5:16 p.m. UTC
Support the touchscreen-glitch-threshold-ns property. Unlike the
generic description in touchscreen.yaml, this controller maps the
provided value to one of four discrete thresholds internally.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
(no changes since v1)
.../input/touchscreen/fsl,imx6ul-tsc.yaml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
Comments
On Sun, Sep 14, 2025 at 07:16:01PM +0200, Dario Binacchi wrote: > Support the touchscreen-glitch-threshold-ns property. Unlike the > generic description in touchscreen.yaml, this controller maps the > provided value to one of four discrete thresholds internally. > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > --- > > (no changes since v1) > > .../input/touchscreen/fsl,imx6ul-tsc.yaml | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > index 678756ad0f92..310af56a0be6 100644 > --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > @@ -62,6 +62,21 @@ properties: > description: Number of data samples which are averaged for each read. > enum: [ 1, 4, 8, 16, 32 ] > > + touchscreen-glitch-threshold-ns: > + description: | > + Unlike the generic property defined in touchscreen.yaml, this > + controller does not allow arbitrary values. Internally the value is > + converted to IPG clock cycles and mapped to one of four discrete > + thresholds exposed by the TSC_DEBUG_MODE2 register: > + > + 0: 8191 IPG cycles > + 1: 4095 IPG cycles > + 2: 2047 IPG cycles > + 3: 1023 IPG cycles you should use ns enum: - 1023 - 2047 - 4095 - 8191 you can limit only 4 values, but unit have to ns. your driver map it to register value. Frank > + > + Any value provided in device tree is converted to cycles and rounded > + up to the next supported threshold, or to 8191 if above 4095. > + > required: > - compatible > - reg > -- > 2.43.0 > To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Mon, Sep 15, 2025 at 10:30:26AM -0400, Frank Li wrote: > On Sun, Sep 14, 2025 at 07:16:01PM +0200, Dario Binacchi wrote: > > Support the touchscreen-glitch-threshold-ns property. Unlike the > > generic description in touchscreen.yaml, this controller maps the > > provided value to one of four discrete thresholds internally. > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > --- > > > > (no changes since v1) > > > > .../input/touchscreen/fsl,imx6ul-tsc.yaml | 15 +++++++++++++++ > > 1 file changed, 15 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > > index 678756ad0f92..310af56a0be6 100644 > > --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > > +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > > @@ -62,6 +62,21 @@ properties: > > description: Number of data samples which are averaged for each read. > > enum: [ 1, 4, 8, 16, 32 ] > > > > + touchscreen-glitch-threshold-ns: > > + description: | > > + Unlike the generic property defined in touchscreen.yaml, this > > + controller does not allow arbitrary values. Internally the value is > > + converted to IPG clock cycles and mapped to one of four discrete > > + thresholds exposed by the TSC_DEBUG_MODE2 register: > > + > > + 0: 8191 IPG cycles > > + 1: 4095 IPG cycles > > + 2: 2047 IPG cycles > > + 3: 1023 IPG cycles > > you should use ns > enum: > - 1023 > - 2047 > - 4095 > - 8191 > > you can limit only 4 values, but unit have to ns. your driver map it to > register value. Looking at the driver change, I think Dario is already doing that. The text here is just talking about how the controller doesn't support anything other than these 4 glitch threshold and mapping must be done in some way. > > + > > + Any value provided in device tree is converted to cycles and rounded > > + up to the next supported threshold, or to 8191 if above 4095. This seems to be the implementation details of one particular driver, and does not belong in a binding. > > + > > required: > > - compatible > > - reg > > -- > > 2.43.0 > > To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Mon, Sep 15, 2025 at 06:42:13PM +0100, Conor Dooley wrote: > On Mon, Sep 15, 2025 at 10:30:26AM -0400, Frank Li wrote: > > On Sun, Sep 14, 2025 at 07:16:01PM +0200, Dario Binacchi wrote: > > > Support the touchscreen-glitch-threshold-ns property. Unlike the > > > generic description in touchscreen.yaml, this controller maps the > > > provided value to one of four discrete thresholds internally. > > > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > --- > > > > > > (no changes since v1) > > > > > > .../input/touchscreen/fsl,imx6ul-tsc.yaml | 15 +++++++++++++++ > > > 1 file changed, 15 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > > > index 678756ad0f92..310af56a0be6 100644 > > > --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > > > +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > > > @@ -62,6 +62,21 @@ properties: > > > description: Number of data samples which are averaged for each read. > > > enum: [ 1, 4, 8, 16, 32 ] > > > > > > + touchscreen-glitch-threshold-ns: > > > + description: | > > > + Unlike the generic property defined in touchscreen.yaml, this > > > + controller does not allow arbitrary values. Internally the value is > > > + converted to IPG clock cycles and mapped to one of four discrete > > > + thresholds exposed by the TSC_DEBUG_MODE2 register: > > > + > > > + 0: 8191 IPG cycles > > > + 1: 4095 IPG cycles > > > + 2: 2047 IPG cycles > > > + 3: 1023 IPG cycles > > > > you should use ns > > enum: > > - 1023 > > - 2047 > > - 4095 > > - 8191 > > > > you can limit only 4 values, but unit have to ns. your driver map it to > > register value. > > Looking at the driver change, I think Dario is already doing that. The > text here is just talking about how the controller doesn't support > anything other than these 4 glitch threshold and mapping must be done in > some way. Thanks, but descripton is confused. "Unlike the generic property defined in touchscreen.yaml", which let me think value is 0..3, instead of ns. Suggest Remove "Unlike the generic property defined in touchscreen.yaml, this controller does not allow arbitrary values" Frank > > > > + > > > + Any value provided in device tree is converted to cycles and rounded > > > + up to the next supported threshold, or to 8191 if above 4095. > > This seems to be the implementation details of one particular driver, > and does not belong in a binding. > > > > + > > > required: > > > - compatible > > > - reg > > > -- > > > 2.43.0 > > > To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
On Tue, Sep 16, 2025 at 12:03:01PM -0400, Frank Li wrote: > On Mon, Sep 15, 2025 at 06:42:13PM +0100, Conor Dooley wrote: > > On Mon, Sep 15, 2025 at 10:30:26AM -0400, Frank Li wrote: > > > On Sun, Sep 14, 2025 at 07:16:01PM +0200, Dario Binacchi wrote: > > > > Support the touchscreen-glitch-threshold-ns property. Unlike the > > > > generic description in touchscreen.yaml, this controller maps the > > > > provided value to one of four discrete thresholds internally. > > > > > > > > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> > > > > --- > > > > > > > > (no changes since v1) > > > > > > > > .../input/touchscreen/fsl,imx6ul-tsc.yaml | 15 +++++++++++++++ > > > > 1 file changed, 15 insertions(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > > > > index 678756ad0f92..310af56a0be6 100644 > > > > --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > > > > +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml > > > > @@ -62,6 +62,21 @@ properties: > > > > description: Number of data samples which are averaged for each read. > > > > enum: [ 1, 4, 8, 16, 32 ] > > > > > > > > + touchscreen-glitch-threshold-ns: > > > > + description: | > > > > + Unlike the generic property defined in touchscreen.yaml, this > > > > + controller does not allow arbitrary values. Internally the value is > > > > + converted to IPG clock cycles and mapped to one of four discrete > > > > + thresholds exposed by the TSC_DEBUG_MODE2 register: > > > > + > > > > + 0: 8191 IPG cycles > > > > + 1: 4095 IPG cycles > > > > + 2: 2047 IPG cycles > > > > + 3: 1023 IPG cycles > > > > > > you should use ns > > > enum: > > > - 1023 > > > - 2047 > > > - 4095 > > > - 8191 > > > > > > you can limit only 4 values, but unit have to ns. your driver map it to > > > register value. > > > > Looking at the driver change, I think Dario is already doing that. The > > text here is just talking about how the controller doesn't support > > anything other than these 4 glitch threshold and mapping must be done in > > some way. > > Thanks, but descripton is confused. > "Unlike the generic property defined in touchscreen.yaml", which let me > think value is 0..3, instead of ns. > > Suggest Remove > > "Unlike the generic property defined in touchscreen.yaml, this > controller does not allow arbitrary values" Yeah, I agree this should be removed. It's unlikely that /any/ touchscreen will support completely arbitrary values, so stating it is redundant. To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.
diff --git a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml index 678756ad0f92..310af56a0be6 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml @@ -62,6 +62,21 @@ properties: description: Number of data samples which are averaged for each read. enum: [ 1, 4, 8, 16, 32 ] + touchscreen-glitch-threshold-ns: + description: | + Unlike the generic property defined in touchscreen.yaml, this + controller does not allow arbitrary values. Internally the value is + converted to IPG clock cycles and mapped to one of four discrete + thresholds exposed by the TSC_DEBUG_MODE2 register: + + 0: 8191 IPG cycles + 1: 4095 IPG cycles + 2: 2047 IPG cycles + 3: 1023 IPG cycles + + Any value provided in device tree is converted to cycles and rounded + up to the next supported threshold, or to 8191 if above 4095. + required: - compatible - reg