From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E2F9CCAC59B for ; Tue, 16 Sep 2025 18:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=/IOeD97cZw/3AOz9Imf61cpUjU5FhFJdO7o24LfTip0=; b=DHLA1PuUm1swJ3r9CTt5JO5BQ2 EMO21A7kvGcIo7Y0wMbr5fvPgu6MmgU+FQyUwuFzLlR/dgbi99uZPMSOj7gb2IpPCwIfqPvsWrMlE b1BYYRsy5A5Bj9lcrIzEmU7ZPQgBNUfFHSsoyKj+WoePu/rkmXVIibuABvuVztUjXSHS4o7JO0zH/ 5UQCd3ctyErcC7P5zjqYP8I8NNcw9Y4uGRHN1z0izZ/3z2dxm3Qq+RI0WXlvWkt8Z4XvV85xFPAvW R8Y37I7wvG+KrkMzZ+6jtrxwf/di4hQXRoIXl3QvLbx0Ya36hj7pmpjMUejkuy9uuGt6DlLi9rbed TMt1bl2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uyaWD-00000008lwi-1AV9; Tue, 16 Sep 2025 18:35:09 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uyaWA-00000008lvw-3PqG for linux-arm-kernel@lists.infradead.org; Tue, 16 Sep 2025 18:35:07 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id E355E43A2E; Tue, 16 Sep 2025 18:35:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97714C4CEEB; Tue, 16 Sep 2025 18:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758047702; bh=0Y8Vr3AraQV82DBR8zHGaa4Zevj4KNfd9r6qP5JbGp0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QEj+1PqE2kTzK5pEFOvkzZz7HK+lpwKmVkFwbSQbw/+kwTOdxIDt+mCZHZDnbh4P9 ZeRE8o7LaTsZpPef8AUn96IdwpABMmvWisAMZlElSgvGaQR6d5CCy+z9XM2lPW4VRM mmCp+iyckzTuspuVGzh1ENLePdlF4+XpLB3llxUGgFFxX2XHQTd5P1DyPnnFlsa5+C 4o/Hua5mcMg9v0gVsuz36e5Q275RvfFOlCeqJnzGza7NVPstP7b5kCACcNhRuGfmNQ teQ0aLihmp5AhuAyrZcDklOGFXEqLM2JwQAcmJc/0Qa2qXNzDVpeGDrBzFer9TweOB wdZ+XQT2WMaOQ== Date: Tue, 16 Sep 2025 19:34:57 +0100 From: Conor Dooley To: Frank Li Cc: Dario Binacchi , linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Conor Dooley , Dmitry Torokhov , Fabio Estevam , Haibo Chen , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org Subject: Re: [PATCH v2 4/6] dt-bindings: touchscreen: fsl,imx6ul-tsc: support glitch thresold Message-ID: <20250916-bonus-wildness-608ec9a83546@spud> References: <20250914171608.1050401-1-dario.binacchi@amarulasolutions.com> <20250914171608.1050401-5-dario.binacchi@amarulasolutions.com> <20250915-tinker-music-03cff49a41a7@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rYWN0tYwjxMqonNZ" Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250916_113506_896286_9564D360 X-CRM114-Status: GOOD ( 31.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --rYWN0tYwjxMqonNZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > > > > --- > > > > > > > > (no changes since v1) > > > > > > > > .../input/touchscreen/fsl,imx6ul-tsc.yaml | 15 +++++++++++= ++++ > > > > 1 file changed, 15 insertions(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/fs= l,imx6ul-tsc.yaml b/Documentation/devicetree/bindings/input/touchscreen/fsl= ,imx6ul-tsc.yaml > > > > index 678756ad0f92..310af56a0be6 100644 > > > > --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6u= l-tsc.yaml > > > > +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6u= l-tsc.yaml > > > > @@ -62,6 +62,21 @@ properties: > > > > description: Number of data samples which are averaged for eac= h 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 v= alue is > > > > + converted to IPG clock cycles and mapped to one of four disc= rete > > > > + 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. >=20 > Thanks, but descripton is confused. > "Unlike the generic property defined in touchscreen.yaml", which let me > think value is 0..3, instead of ns. >=20 > Suggest Remove >=20 > "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. --rYWN0tYwjxMqonNZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaMmtwwAKCRB4tDGHoIJi 0vWEAP9UHTO+GfZtI6OXbDcxvcOVWmp8z5NqbCA7ni7xXVlEUwD8CF4puz+dHm6q a65TXq2kfo1U+B29pPxvngMosikvjA4= =Sldc -----END PGP SIGNATURE----- --rYWN0tYwjxMqonNZ--