From patchwork Tue Sep 23 14:37:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4350 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C9BFB3F143 for ; Tue, 23 Sep 2025 16:37:57 +0200 (CEST) Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-b2803556944sf45003266b.1 for ; Tue, 23 Sep 2025 07:37:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758638277; cv=pass; d=google.com; s=arc-20240605; b=P7SuF/LbStu/6VZFseXRSRBs1BVIx0Wl/Y3Ul95geYfP5DQb036/lhYaz6aodJtg16 yS5ygkOp3sf1Xw/6cuy8luPecnQjmpBhzbTGOhBxX+3Y6jzaA6JqaLoirHHFQ8IhvTkm 1tCW2ICy14PL3VPbLgyFEmKAjOkpTuYtflhN8xssj9yNZBqsEFWoc1yxlW15ZakLz2WM E0nbO/TP3LxAGu2ymb1QlHDwXg695Ufz6N0Fa3Qd4NaXpKXGssTRPb/6v8sQYs4DzAA6 /0x7rv0VbfVMhAQxlaynRrPplhnLRRLGkVuRpX/FSnOF6MNmu2+O36MSa6thpnGsTNpb /QYg== 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:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/sESLkapVHkO+lTMMi+OUiIhwLqYQUoOOIsVVTpVzN8=; fh=w083/IBTxLRYCOCpmCF1Xc2PP8wCagSW9/w9jFEip1s=; b=cbS87XF1vFfn/vvSkXi4f9zsVtVIkxZrbT8/NcAEjzzRQjuHM7jbLxh4kt6sfVTZ2N glgNSyHuxeSimLL91tCPGBNpoxD4I4iMaAz4vCPo5/jOjT6EW0v9fE5qVOP5C3Bjybd0 xTTGRvOYWbBDtCMHIWf85L59UdNS5LHGz9mVT/KAgJ1/hdpZ6Jsn/IBnxCcCAl1N+ewz OwGIw95SM84mWSeCa0pcBH4FCCk3HsxxMJOSvBZT0O/prwzU4uiGHFOC7bonLA1MdQfh STQZsg9gwNd8qr0NJgytHw+rwcMe7jtKJehFKvZ3hQHu8gatWk3BiDK7/6NKyXtV/cfZ BgwA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=m54HPuAC; 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=1758638277; x=1759243077; 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: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=/sESLkapVHkO+lTMMi+OUiIhwLqYQUoOOIsVVTpVzN8=; b=a9Otl3y8tkxQtNdLol4xl+gAZXEYXHkmTvQgbxT7PLyooLAFkcyorQhDNbHqEjYZUs 5v9ffdfJv5FjJ/5Yf4j4OPY9XIgQj0w6nH/I2Zc6sATG7P+vJdeFM1T/Lvvyx1ji4iSy YD4PaWqNLGspAxTRecYc+mWjbFrnC4rZhCt34= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758638277; x=1759243077; 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 :content-transfer-encoding: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=/sESLkapVHkO+lTMMi+OUiIhwLqYQUoOOIsVVTpVzN8=; b=kVbem8d5HlY1lanScBPY3YLuGZBu7B+JjoyzwZ5Ic6//eo6PHdgcJPDesymOgaTy1B aXBIRmCOC2SaXk+Qt0CAPupmBIh3pbze/Vh99GxKi2WAjcwupPCf319Peent0/Ts8ccs MnK8V36Ss+S7T+C8Wm2nh50oL+4Ax1X50zN4zmDqXiVJBUFrBCn4EaUy1aF9b7dqbVAg 1DA9/VraTRu9ACG0MK8ATnmhAjSouvonrtaHvxwAyWSsC6zNHaWUMXNm1+nIEswBSJ3/ 0d5ZqrV42XcZaW3gVs2xSW43n0dqedFQrJOUUOeq/4HXr/gXzRgegLHGt20z1GzYdly0 XPLA== X-Forwarded-Encrypted: i=2; AJvYcCWaItKVJ63Z+lCsBFEvuSGZHDQbP+jkvHOm2mk8qv0C2BrgtcFaYNGGpnRBquIzu/oDE/bVfUvLSWgbK1I/@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YynFEnQ7WqkpSzDPRdAAWQApeAztDFFVJvWV0MrONzk+yNCkXJO ID4F+60sMHq9RqKQFRFwQSeR33/LbFVNvoqMrOOMouzuYp1VGtuUyxUrsBNF1VFNecKXAw== X-Google-Smtp-Source: AGHT+IFoniyT9kpVsELH5oNRmeeFptjPLIbihG7mTdGF5tL27Oxit4I51snehGSFFVqP7dow+cDHNw== X-Received: by 2002:a05:6402:35d2:b0:632:ac4f:d656 with SMTP id 4fb4d7f45d1cf-63467796bf5mr1239839a12.2.1758638277274; Tue, 23 Sep 2025 07:37:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd5v6nrHK6MI3Jr/XpPMqMhFVFyjM4Y+KtqzYu+Ry5mfFA== Received: by 2002:a05:6402:311c:b0:627:95b9:e197 with SMTP id 4fb4d7f45d1cf-62fa7550920ls4629504a12.0.-pod-prod-08-eu; Tue, 23 Sep 2025 07:37:55 -0700 (PDT) X-Received: by 2002:a17:907:6e8d:b0:afe:b92b:28e9 with SMTP id a640c23a62f3a-b302b21d45cmr263359266b.49.1758638274774; Tue, 23 Sep 2025 07:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758638274; cv=none; d=google.com; s=arc-20240605; b=JQ2z0LW/2GlykmsOMcTA80Ppmb//1YcgM38l1SCBHOBqTjV9lYrpBj58DN9V8Ecwis S26EslvkzVZLBnjt11wI4WCP28y6EEt/oCQF8r8Xuu+wp75npfJ4+Z14J6MJpjANr5GZ 1dFFG/KyQf/c6FJ0Bs0VAu9juT99BS/+wLvElzRxi2i2Mr5Ck/ESyX0WCXt03YVYldGJ 4pLXhQJTxYxtTIK5eFXLbpID8fvgTgCtqmLEd35QS9Oc2l81FAlPA+pr/J/ccRgYgrvW ObWcnbx+XalhZ/yKia/SKsnoP9xURXyx+UvsMw+14H2Auj7lxNs1sLo3nolqst8Z1Y5j RkBg== 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=LqtR7I2mLZ8IDYwsm1m36JqptxBkiaofBPM08P2A3KM=; fh=e7Ao8x3Y6/URV/sMeUZdzWQxxULoqoBJgfQgBzaYc3o=; b=WZ22SWLyu6bYfCcIow4xyGJT56lHBEVDpH39FdcXnfHzys+gjwXyI/nhxKx45s986i 12pQkwsZMiMyblV5VI3KgKwEPyRBmR+sxEpE2n6mlEiVn/o6sdpKOHsleOKXjqG2GdaA G6LhvaDr+grV5ajrTt1TzEVaGSwV0SodI4fH7TlpjwYePVkyGgA8LYnp0phne0ZPNKV3 p1JAwFAd1HKlGOdSuVIOFtt5/4UA6M6G4wFJ/baoLuejQ6+bFrmtjbftERyHwZakL6DA YaR0AGqVXtMtEPAtkk6TCSM871YVrF2yLxmA4bCcWlsNbYqbjY5ea5R8nUvtTCwx3Fkv H68A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=m54HPuAC; 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-b2938f81e70sor363363366b.6.2025.09.23.07.37.54 for (Google Transport Security); Tue, 23 Sep 2025 07:37:54 -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: ASbGncuLc2on3UzuzUuWCcQ/lnS9OCHjw623ErW/xJq7w0VxDccrU8tyoUsjvSXymw0 vwp7K5KnC3wUAkR8CUSyVTaghmciVYp08GddRct4G5ebxi+bSby1OlEmyA4AEqzs5pY+/m+hTs2 wrL6chIrR3PuXPS+iNyl0dneSAoxIPKAYQmHlSlprEI/HfwkXiQOZ9QrTM9eAC3eixshdzcoaUX D1P/LT/kTAwgQR1fzohLcLn84UQx8ipfwmsuegVNLSJURZwxXveZKBJzkpOl8sLUAh25WCiczEY pTN6quaj6F3RC1WLApWOsC5UdaJUZFfR1twz737I9BreQOxMyjsBTbdgl40m/D8fjFJGd3tnXvd b14qXiOVs6Eysyky6/HPF4IoE8qcQ940jywUzuQUboEx2c3ipEpoxE1qxE7P4H3b0MirpthZdkE zXQOKy9nS5fBuxnO8vYZJv2hcAk3bFXlB0AOtyGNbAAEJ6LFUnCzK161Jnw9pgpHr4 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> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" 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=m54HPuAC; 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 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 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 ]