From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 C3CB13168F4 for ; Thu, 18 Sep 2025 15:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758210773; cv=none; b=RMKVbCls8u3WhLcIJ2EJKeOTqWUcZEIRB00/uTnulxN8hpQavAUQ6n7dHHm3jKTkOCR3qs9h0x7QrgLi96YDwzCU2AY5junMb1S3ymdeSknbPGz6KJwhTIZ0GyJepiPyAUzfV1/YQgA9huvsl73JnxG4/KaQH9boivJqSOKcYSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758210773; c=relaxed/simple; bh=bKYvTL8MbcZirvGbcTLtImf+31bpwxjEuwrssdUZtAo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bNBavlBUX5lgHkqOCrI/PZj4oQlNFPBS+i33QbK3fESUqxG2cVKLcQw5c/IbWZdkfzkquRvevhQIrs2zt+1gVBMk40EFTOpEffiHc/IyIzawxZpbywEeHzIBchcXzhgalTFe4/ZXMCBr6bv8d8/THzrUQnWsi/lOgVdXOgjQHVY= 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=WQp2ZDJG; arc=none smtp.client-ip=209.85.218.48 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="WQp2ZDJG" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-b07e3a77b72so319878766b.0 for ; Thu, 18 Sep 2025 08:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1758210769; x=1758815569; darn=lists.linux.dev; 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=9lcdJmzD84uDfab79lyqxcqnmMvBiautmvBU6m3EhEI=; b=WQp2ZDJGw1nz4e86rBTW3geaMUlG3l1OsGKfvMUac7/1cukE27d0q8oKpZJro9pV/v QbxOBLu7SXYmSz9VlcGXNsa3qHRpKNCLvC/2hRXM8PZ0f/wh/SINSLP9bCJaBYu5wxJa 5riJAlNSWjfk1J5gQDp3ge2wiA9YauqZK0EBA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758210769; x=1758815569; 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=9lcdJmzD84uDfab79lyqxcqnmMvBiautmvBU6m3EhEI=; b=gPl/gPvaKdjFGOTubaf+Lrop+oRehlAIdAPBiayLideZts5WqAI/ug6XTdGGtFONvw aqwOkTCENQK6apFn0g39m29BWa5SaNc0NH3W4W7Zov1WBqbAMn41/h43ZNzOvA/mgNJ6 T1YAiiV3kI1w7LXrudiyT5VrEdUfh6FFaZ0vne9VU0jzG3R+ea0ZwB/X0h6Ogfe/O1zv Fzad1/e9FFjZkDiUW3YTifzocFvZpaVuDBn5D3znbuh9I5i1UsO3L9wv4sKS2jkFb5WE 6C0rBmqmRCEtVwSyiaBfSWAwodshLsRcUHNgHa7Y3NU7jgHAscJ/ErsL7Psahee7Lrog c+nQ== X-Forwarded-Encrypted: i=1; AJvYcCXY/ZmUJWd/JCSBcbA6MoZpDanrYWTKP6MhB/KYZJOjcIyw0P5M2Sk3AyT0EpKPhTJ16O0=@lists.linux.dev X-Gm-Message-State: AOJu0YwuUaVihUnCXx/o7cubbi9SsmSevab9axwhpM66ONu34c0QW/ls q75a7L7AJ8hWcN6OU81jxjJRUOldXVdWM7N2QFgbLpeWeiM4Lxv6Nss17k8nR+7Mygs= X-Gm-Gg: ASbGnctjMSHlzl6vUi4/JdRSAI4QNNGNvIWKhfkFDAbP/3pw4NOGNQCMfZztuX0oLJI 01/N7Usx7c4PHjmQOnGS6M2ywF1u5jW/oG+pADKS8xycMVanAloqjn3bxAOHlEqCU0hy5YvpnFV /pqodcSXPZ4DenSK1pp+rU032fpFzjd5+EPLSRZ75HhAMnj16VH+7izp54UmYnTOCszGyvfhmcC zlB/frxoIuobWB6OzWSNEf6a2rxFiyodlTavkXQVAcPdXpXPicoGNG54VyOVcNeH4jHrJxaDZ+1 ElO6xd5fVBZHpxoQY7x8j0jzWT6N6b1F1a5ITlCWQQbYbYEakY0fR9bXfZ+WJ/UHcWbI/Q0eZkW wt6VQcDeXZVFpwzSs89hxJycYuLHQ4A2J4ngIoyFk1PHHdRTw7fVMmR5oyv9eZD14+kq3lx8GRZ DQc+gk6UvjArudS0ss5apNIJnz/eHY0rCSu7XzTDsBEw0PM5lkAJbSIUl0Xc1DdcT49Pz/xayPw ugsr3N4YGY= X-Google-Smtp-Source: AGHT+IErelZCb4Ng2hNIph4lDPD33ehWDH5J7iXux+fMT/vxxySG4ibwfi79WajSIooQhiHJCIIbVw== X-Received: by 2002:a17:907:934e:b0:afe:ef8a:a48b with SMTP id a640c23a62f3a-b1fae7a9b82mr410713866b.30.1758210768899; Thu, 18 Sep 2025 08:52:48 -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-b23a1227bacsm60449766b.41.2025.09.18.08.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 08:52:48 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Frank Li , 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: [PATCH v5 4/6] dt-bindings: touchscreen: fsl,imx6ul-tsc: support glitch thresold Date: Thu, 18 Sep 2025 17:52:32 +0200 Message-ID: <20250918155240.2536852-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250918155240.2536852-1-dario.binacchi@amarulasolutions.com> References: <20250918155240.2536852-1-dario.binacchi@amarulasolutions.com> Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Support the touchscreen-glitch-threshold-ns property. Drivers must convert this value to IPG clock cycles and map it to one of the 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 Signed-off-by: Dario Binacchi --- (no changes since v4) Changes in v4: - Adjust property description following the suggestions of Conor Dooley and Frank Li. - Update the commit description. Changes in v3: - Remove the final part of the description that refers to implementation details. .../bindings/input/touchscreen/fsl,imx6ul-tsc.yaml | 14 ++++++++++++++ 1 file changed, 14 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..1975f741cf3d 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml @@ -62,6 +62,20 @@ properties: description: Number of data samples which are averaged for each read. enum: [ 1, 4, 8, 16, 32 ] + touchscreen-glitch-threshold-ns: + description: | + Minimum duration in nanoseconds a signal must remain stable + to be considered valid. + + Drivers must convert this value to IPG clock cycles and map + it to one of the 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 + required: - compatible - reg -- 2.43.0