From patchwork Wed Sep 10 13:58:36 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4273 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8191E3F16F for ; Wed, 10 Sep 2025 15:59:25 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-61d31626b01sf6353866a12.0 for ; Wed, 10 Sep 2025 06:59:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757512765; cv=pass; d=google.com; s=arc-20240605; b=Bh1DUlZylML46G/BznPQM+i5zTtH5/MwiIYrE8MHLw2Zj4XFlM88l8WRo+2+R0gUqY i3xRWqZ928pEV6HbtlbpOjmxzxSjYqwBI8yotzG/5bd7itFVd5/Yqt7MuHz91T4Z+ZjO 4AeLJVftg1w6y/w0RdjmYj1Wjcj4uCjGZo2ymKC391NqTo2SESiNIK6Q/4REdvfJrU1R nOi/NTFnjsG+Az0ltQO6M/WKw6CvhugQStOD8iHkUXuB9Jd9HK96THgl1WCceTvQfLRN 1BtJBCMvuGPRFW0KxUxo4/A8qdhsbBc4yYt4hp0WoRsqAM/7YQRstMO9NrbwHzREzpqj 9v9w== 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=PIXC/ArfQmnrQNbmnxsxaVZMl4LHraFo8UBIC6q/P1w=; fh=/hB+iaqhSi3dSQFv6QG3xb7681JPX0iPCKJNRnowFy4=; b=jsHB56UlJrGCVB0qqLmlFOHQGvFBDuDQj3qdx7t6I5XElVBpHf9ayxYYhbeeXB++M/ thpDLPYidMvH5aeeeLFnwXkmDWctM51d/TmL/zfC5AvJNlBuKo1TvOBpDPLjM2/+da/W wEgPwJWxlWIpgh8DoYxMwAg7s/1GEDnORZiEmflRSaj0Cox88/bTxYY3TNwQrmYYHHDI 6Yz5e9GbpYgUJXXGV+WtANWJ7lU2h15s02Qyp0JY2hDbCBr2kXucyE30nexKOt6ZYRt9 bCuTwKrTQTt4yVYiQenEqZjHxpZn+wUT2XB7RyW2mTPdo2KQixxstV103gX7TMGjEK4P 5Btg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MUI6SxZG; 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=1757512765; x=1758117565; 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=PIXC/ArfQmnrQNbmnxsxaVZMl4LHraFo8UBIC6q/P1w=; b=GOZHKz6BqEZXZbOPtis36TOcvM+AhEWEH3eWpY9jJWeh6dcx1EzI00qMnBa5Vi1fjl Dc5ZFRhA3WlI+shpWg1olSerce6EGgj8w1Kv9N6FN8/sWVXAq0ez8jVmlvC4H7KsPDNz 9g4vrHwKoLziO+DLZMttSGnsN9iVmk6itYefM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757512765; x=1758117565; 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=PIXC/ArfQmnrQNbmnxsxaVZMl4LHraFo8UBIC6q/P1w=; b=Itppwsg4poxE1bFQxMckxea66BKoqpxx9O97T60F01A93eJvmqgYGCLRKnjUKptcgM Y5IiQbSMiO3E00Rfpj/xz4FJZ/ZAPCrrandhHy5TD8IneS2UqrutU9x/oQ8sQ2ZYAvbI yNepIfJktzLEr5TgYVaF4AtTm+lvwBl+dyokKcm7QwwCvGGI+oBI3/aL0BRfMYXMH9bV hOgRU4QEroKDH/JIOFO3mxUz8b9uszmcgKqA9nBx7skN5G58EBjN1QwI3KPNS2c9do7n f1+qAtJWQkuoNQD3OOEYcKE+ltwp543RY6UAvBipnvC8Z0W0DZZCKwKJlyaQLpr84RcB Wx2Q== X-Forwarded-Encrypted: i=2; AJvYcCUoiVpfQiK+BjERM/yLTRPGs5LRpzxxAMF61Cv6trBOkJFmqnom8bHydNbq+ZHcFrTFEHoc70WmMsUDu7A3@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yz0y5ef89mu0VDm/ufSGqRtLBl2hxACysPVf23FkL62fYSH8TdE b1q2uB2J8qJI6Z8+xL1pqUnSnsbj5FqXgiRTcbwPIuESpUQI12d26BkHxo/77IilTkXlUw== X-Google-Smtp-Source: AGHT+IEduam5Eu0MQYkgh/JDDDLxtMPewUidZD9OLSVasW6zvEin1kQFQ9XztfJ/kjl2tXp1peDIYw== X-Received: by 2002:a05:6402:d09:b0:621:5564:bcaf with SMTP id 4fb4d7f45d1cf-6237ebc6ff9mr13985450a12.18.1757512765111; Wed, 10 Sep 2025 06:59:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd6CzocB+oo3/3x4JXZa4YSPKYNxx50bx1e2f15DL3yhrg== Received: by 2002:a50:ab0a:0:b0:618:8cd:5cc1 with SMTP id 4fb4d7f45d1cf-62147daf57dls5033756a12.2.-pod-prod-04-eu; Wed, 10 Sep 2025 06:59:22 -0700 (PDT) X-Received: by 2002:a17:907:6d0d:b0:b04:ae7c:703e with SMTP id a640c23a62f3a-b04b140a770mr1433341766b.24.1757512762591; Wed, 10 Sep 2025 06:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757512762; cv=none; d=google.com; s=arc-20240605; b=R+lIQdyoo02mr4QMweWjLeAnhH9XlNzsqFUB5TU9NtvbWD1NMJw+c/L+wVUANWcsWh szZtNznTq0dQ6ZVSYaSyLL3+xAdGHOwFgfAK5zRGFGCePzRTQ8OqylnTXhPh39X2V9Rl wl/G+ICJOAxoc+CAoFMBrnnedlgri12a4q1Z3y139pI9xcNL6/Ix8wwC/++D+37IlSwx M7Ms765Em7aXM3jo41LFKZgkQjKzybBO82qZM7z2YSpXEcVLL6s/oFB1q08ixUoCetXO CoGZkoaZ0sDYE1eBgxu25PScRKZ/mh0I7K7pj1AQdNIb6ztF4S4o2ydmFKmfwNbaCZAO z/1w== 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=GtY6xQODciaFQXT13QEjMt2xFfxEtt0WYueluTMBhAE=; fh=euIalU/jf6N5x2NNEskqvzHuFozMvE/8fvBnhWHdeuM=; b=b5bToQb97RISoPiVg9/ZFYvoRXB1fkkpPWX7GQct8XU5mvMDR16MBD8dT/I2PI5m/S 7v72zOzi3/M/QkyGh+RO2/n6gjLlm6bUrY9BibqlLUaGlWC9mGKr/npNqvU8OaG+inyY Dt+dZY1dj/Dz9z0OahKYSCGapzSRq2DY5JCKODZFDXTd3kVrf6vCFAiO+P0PUf/O5zeM 8UDDaupDhdkMQtjoKMTM10AmtlKeGpNi5AeeZt7IwSjjxFHrigg4Gv0iCOgbrAVC3Kdf sQjQOEzeEpb1DgvObz0wiW2wseoLKNKmif27daVJKRZPkxEcMD3Boslj2nrG6uYxrQb3 WRSQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MUI6SxZG; 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-aff15a7c8fbsor1104399966b.17.2025.09.10.06.59.22 for (Google Transport Security); Wed, 10 Sep 2025 06:59:22 -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-Gm-Gg: ASbGncvtiEzTpKM7immY1gWZ2dpw1hC6NcSyWuVn6oFooFpo7sGVny8UiicaG0li3Uh eeGicbxun05gYeX5YPOVbdp1DuoY2clUKt0mmJY/TNRYoOnM371KNhxj9vxB5EaLUtKhYVjci8W LfcOJmkDXN3f3JWPDzS7rG+N5GJm78s8LOahrlJgg9ZTEyu6CjxD8JsB0LgE02C6fHZ+hRe/7Qq tIANxGJcZwOCdTvJ38CZuCQwDFwNSDUOlWnEu0pX42ifp2FEYDZO8+R4I08sMTqhxyvyDFDEtQX Ii1vgGuVwVq+5aCGnPpbQlbbtBBCV9BElK+qMqn5iKyRM7MlN3abVM1QEyichPE0DfGHo80ewms 0OCmSm8MkZAW2l3uLTI4Rf8KgcGwpdZUNKBxd/e5dIvtCa/FKF3m3hOGzNpiQBWHZmRR509XXpV T9yBKdhMwoMaBSHSiQc2BW8JSLRWm7/AaeifnVgO7+K5Ttt+L0836a34jrpf13sqmp X-Received: by 2002:a17:907:d91:b0:b04:626e:f43d with SMTP id a640c23a62f3a-b04b167b9f2mr1190384166b.47.1757512761817; Wed, 10 Sep 2025 06:59: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-b07833a4e37sm172523066b.76.2025.09.10.06.59.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Sep 2025 06:59:21 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , 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: [RESEND PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold Date: Wed, 10 Sep 2025 15:58:36 +0200 Message-ID: <20250910135916.3939502-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250910135916.3939502-1-dario.binacchi@amarulasolutions.com> References: <20250910135916.3939502-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=MUI6SxZG; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add support for glitch threshold configuration. A detected signal is valid only if it lasts longer than the set threshold; otherwise, it is regarded as a glitch. Signed-off-by: Dario Binacchi --- .../input/touchscreen/fsl,imx6ul-tsc.yaml | 18 ++++++++++++++++++ 1 file changed, 18 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..2fee2940213f 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml @@ -62,6 +62,23 @@ properties: description: Number of data samples which are averaged for each read. enum: [ 1, 4, 8, 16, 32 ] + fsl,glitch-threshold: + $ref: /schemas/types.yaml#/definitions/uint32 + default: 0 + enum: [ 0, 1, 2, 3 ] + description: | + Indicates the glitch threshold. The threshold is defined by number + of clock cycles. A detect signal is only valid if it is exist longer + than threshold; otherwise, it is regarded as a glitch. + 0: Normal function: 8191 clock cycles + Low power mode: 9 clock cycles + 1: Normal function: 4095 clock cycles + Low power mode: 7 clock cycles + 2: Normal function: 2047 clock cycles + Low power mode: 5 clock cycles + 3: Normal function: 1023 clock cycles + Low power mode: 3 clock cycles + required: - compatible - reg @@ -94,4 +111,5 @@ examples: measure-delay-time = <0xfff>; pre-charge-time = <0xffff>; touchscreen-average-samples = <32>; + fsl,glitch-threshold = <2>; };