From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C87D42C029C for ; Wed, 10 Sep 2025 13:59:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757512765; cv=none; b=JazkLyQLpgaVrpk55DXSKfvqp3BJrMG6mlmKKWMdaQu6Q4/Am8BiMkKIQWRf4fzHXScl5AQMXHhKut6uZ4xQbTSci/8LcyFkvIavGPSQbZmtScZx/pQEFzIBWlV3Pn1aac1h6i156c37xHslmgR4Q4RYIqQP1032LA82EjQdejk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757512765; c=relaxed/simple; bh=6DM9dMZAtcwlDKvhQvsmdFJDn+355Evyd4COdeLDukI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cGEtNwCTRttRS7gpI8ZXCBsoNpTL0uHxFM/bwSO72+jWqyrlYveTH+1L/Ml4r7p37NmhgddaWVhwaZt1N02SbUnDYsdqE/g9a86cmiE1FwQC9HUh6ftAaPgREsMlItJbKiIVLathUMyvYoy8rrV1205M2buh3DeS38CG10q1Qco= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com; spf=pass smtp.mailfrom=amarulasolutions.com; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b=FGr4p1mP; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="FGr4p1mP" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-b045d56e181so1022169066b.2 for ; Wed, 10 Sep 2025 06:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1757512762; x=1758117562; darn=vger.kernel.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; bh=GtY6xQODciaFQXT13QEjMt2xFfxEtt0WYueluTMBhAE=; b=FGr4p1mPt3o3KMsqm8t8Vr0lNxxODvzir+BfjRbAffjFFbeZcxFSGZofGT+rqfR8ct hunTWYBhA2tI7hulGU4SAIUjlqnDWJgv2uOsE+dqfH3stDacSnRPz2qIDTRi6T/0vsi9 9rUgJiztKDYtwq6tWB9ByfQmpv+vi6Cq7ZQRo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757512762; x=1758117562; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GtY6xQODciaFQXT13QEjMt2xFfxEtt0WYueluTMBhAE=; b=lqq0GLaIdFSXRehIlOJ4sDmWyfmXjIrH+AGCn5Myx+PvVOt1sSmDVebOmBPA1dQWoW y/sgdqISOhij3eUKXV19+mCsqpbGhJiBcrVK6gOaGWl17/518jXlRFo2qnowlGBk74Qb DhJiF+nxC8vkAnShZqgV85CPJgNYErPL3W5MK82ANDroRD2HsSelnVZO9O4BU3nl0MTX f7UEHoleMzT+e7Fmy81gSKkyIDtE+1fM8MXrzIMpAD/6azSfJEoI3hL19gYNm0ss6Mux cCJhGz3Tnjmcq9u21uglPkc4J4Vzfa3kirVXbZ19bhIvnSRNcxAnCoOvRHIO1lNIcaH9 9N9g== X-Forwarded-Encrypted: i=1; AJvYcCUF/mOEPO0UtnpZvG+G+ootT2dGoT2Hll8XASEIR4Q+s5vu5hXtu/aLG42x9d6kCCx3c/qw+6QiaKs6@vger.kernel.org X-Gm-Message-State: AOJu0YwVQTIAg4QujYd5+MtlmX3YHANTLCSa66kqWh+pPvIpem0R2ERD GcIlENPwOTiqDtJfnzPJlDeM6rsOHufPu38rh5uusFWtL9BJ/hk6sgYEWjoR1wrKZHw= X-Gm-Gg: ASbGncv6eQdHRkmbxtNs396Z9ZwYToaO9gWzCHRSuOleeTY6cOtK1OzsVPNZ9yxyEaY 5ccevfFqKJTcvV6rYd3J7iiPZXsH5Df/jkgkezxemFAaHSjlkjpwx8N3m4ePMw9vTDQ8VmDnHIB uztCPDfpUhLEuO8DjBc6OW3F/QBpxh7ENqoTMeFHg5dReh5nta3sD6q1qF3hPyGngXDXw+68p9K r631Jinq8xXqNENJM/eJRyRUHOMWCckgn0O/XOuoMUuwzbyDj6UkkYcFadSDqdW7ZCl2HbuV+M8 Jwty0GC7+xOmvub6KqZHzsk3rejAF1nUbUDNYPRljIEd4gdp0sOr+ellorEhSLVVlpTMJZlpr38 bFsSofCq2CWwELbxi4vsGyDhEZs0GGrzlxB8fdIgJuR0cauusy8PEd9ZdNCRIU93XwQG8Y+OKya 3j3ZurG2WVf2pOPayABtYImQNJw9mdwKCqgj+/Ubj4lZrMf90ymKT+9cJ9wpOea9hy X-Google-Smtp-Source: AGHT+IEwFKbwXQOp9vR5RWBfca+LwdgNqWC2NlCsLiPo9Z3IGD4hXe/SLsqdKeNLsPpGK5bn7AW6lQ== 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> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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>; }; -- 2.43.0