From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 3DE1D23C8D5 for ; Tue, 23 Sep 2025 14:37:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758638278; cv=none; b=bpvg0RI+bQvlfFaJUXse/GB9RQsatPOX4kiomjVTyNsTjthsnw56VmiUrJrcWLsJKQ9W825hHwZ9QP7z7YJhIUF7VvPIyBALjiEFhFAzqvgmFbLhgE+ETWclZWKECGbzS4RMm8Q6/nCNstY55qPLaeWJfdSuWhM1+mcEzWC/+4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758638278; c=relaxed/simple; bh=3buR37RHWH5jCD3qcphvLVRnK0S9wHhdzCbVgwoftyA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qM6jexI02xpsaRXW3DBgvRRdi+32bC7aCikgMawfOgGYHjXq8k1Df4q0xQcDzqsEJucDO/qXZAjJUpfhDHcR4SUvgt9JskXhQeyog++BzW8H0ep1W50ZPHVT3FOSdgamZ+82duY4IBwLyOKAMTE8LgKMia1x+mvRQ0ai9I9fXFM= 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=HXcs6ix/; arc=none smtp.client-ip=209.85.218.53 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="HXcs6ix/" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-b07c28f390eso1035746166b.2 for ; Tue, 23 Sep 2025 07:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1758638274; x=1759243074; 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=LqtR7I2mLZ8IDYwsm1m36JqptxBkiaofBPM08P2A3KM=; b=HXcs6ix/9x8Ds8D/JbXCnefYVM73sP9Ixs49M55Egz2qqgzv6u8x/dsYYoOp99zX7s ZJHyGtGIz5JHEdzT3O/2wXv9ELsfXb7Z30L44LhPmIvIGc9Ka9s4/FSw2W/p5mj9gZHG IkFUI/U1y0ncXNHM53laZ8XGZuuStqZb9HJ+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758638274; x=1759243074; 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=LqtR7I2mLZ8IDYwsm1m36JqptxBkiaofBPM08P2A3KM=; b=Fa//bt+5dYph6C8xWYmhLqVJfQ9exjFO9caAUmCBQ/dsuLXfEfi3tgt6QiPqxLjKZs lea9Krre9WeQgSIWt5zelR3x1UW+FSdKbj6FyH3JmeBo71V9dyHs3EYfl1YPc68WN9pT S2kfUgSEBynDIsIpCjsGas9wpd0WIrexTkJTyMKU4sGhnB/GuYLhQKCp9ySmkpH0j1Es UkCOmixOpFEgWRn9D/AaGjHRrB4JLvjeVEtMu3OPHrgwztREYbb2Jn/SIxe4c14Iv4BW RjfgFKZUG7RnS0YmQo3hmdV5C0qM94ewmzCVyV8GvxrHi/Naxj7gwdcPDBR6NfS//tnV eCHg== X-Gm-Message-State: AOJu0Yx7fRcVBUTDdVP/wbOTb0l/0BF6zB9UK9o+F0fTNjr4DU6cgmMg 2i6b+kTVITd0GB/h+VvDxr6FihvgYoe3hxLNUSaESccCPz+Qj8uTmsZk8ZwnVCpqc+Ad7CkVbeQ 5jPuw X-Gm-Gg: ASbGncs1lNodn2ZEd3bRQ9NIFSTn9zXtwOV6U1Pxd6n8EbthX9vGiHPct1SlFKWp4Mi DHzLvrSmmFa0hI0YHxHaVPajA64qNpWbWLJlVI47+vfjyNszSP1exNwOPaWFQg4yEw07E9aGeT8 LJfRhhVe4AiO11I0JF4SQUu4UOh++cV/bg8JuXavFon8u66ua4niHktmaROAOiFxA4uUHUpbQwC q+JBAyET+m4jBKMasJkwufrWTavQcKzP0wH0dO9yIAsF5v/8C4/+cYWrSA15XzQRwOUTgMlS/UN 6tLAWgAnJfBfH1DgG6k/6v1dnzKktKC93VB1Qw8vpLoudZ5rKi7200N1xhiyBHs5T+1lr18kaMD 7h61AJj6Xy5nvyJUdG+1U7mMZl2xKTjcEagCWn7yF9nR/Y6pvMeaaY45EytRL4Snf6MLsN3DgnS YhJqjTyEDIgvINpStTOlPG6iRwrkfi5gcSJwkO78M6jQlKkQizOP8mdou817pK3FzL X-Google-Smtp-Source: AGHT+IE9RNVNWhfVu5pqINRm6zp/ZDRtUIbE5h4ZceOxySmsxSTDc7+ivdeXCI0Sc/ctW+qK1d4qXA== X-Received: by 2002:a17:907:980c:b0:b04:760d:1162 with SMTP id a640c23a62f3a-b302ac40ba3mr251539866b.47.1758638274273; Tue, 23 Sep 2025 07:37:54 -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-b2a2a5f6c7asm665204666b.28.2025.09.23.07.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Sep 2025 07:37:53 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Frank Li , Dario Binacchi , Conor Dooley , Conor Dooley , Dmitry Torokhov , Javier Carrasco , Jeff LaBundy , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v6 3/6] dt-bindings: touchscreen: add debounce-delay-us property Date: Tue, 23 Sep 2025 16:37:34 +0200 Message-ID: <20250923143746.2857292-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250923143746.2857292-1-dario.binacchi@amarulasolutions.com> References: <20250923143746.2857292-1-dario.binacchi@amarulasolutions.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add support for glitch delay configuration. A detected signal is valid only if it remains stable longer than the configured delay; otherwise, it is considered a glitch. This property was introduced for the i.MX6UL touchscreen controller (TSC), which provides a hardware deglitch filter with four thresholds depending on the IPG clock frequency. In this use case, the IPG clock rate is 66 MHz, resulting in thresholds of 124 µs, 62 µs, 31 µs, and 15 µs, which requires a property with microsecond-level resolution. Signed-off-by: Dario Binacchi Acked-by: Conor Dooley --- Changes in v6: - Rename touchscreen-glitch-threshold-ns to debounce-delay-us. - Update and improve the commit message Changes in v5: - Add Acked-by tag of Conor Dooley Changes in v2: - Added in v2. .../devicetree/bindings/input/touchscreen/touchscreen.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml b/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml index 3e3572aa483a..7023e8c73a7b 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml @@ -206,6 +206,10 @@ properties: unevaluatedProperties: false + debounce-delay-us: + description: Minimum duration in microseconds a signal must remain stable + to be considered valid. + dependencies: touchscreen-size-x: [ touchscreen-size-y ] touchscreen-size-y: [ touchscreen-size-x ] -- 2.43.0