From patchwork Sun Sep 14 17:16:00 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4285 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1BDCD3FA4F for ; Sun, 14 Sep 2025 19:16:23 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-629f069572esf3650397a12.1 for ; Sun, 14 Sep 2025 10:16:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757870183; cv=pass; d=google.com; s=arc-20240605; b=E6+FrKgLfxrwhADncfIik4dQsx15DIkV8fUeK/8e52A5yEyoP7iQv1NU/Jj7SUVDGR B/JO5EpYaFJiYYW7x/+io0nL/zj4xuoy7oCkU9iIXMWNDWus3cABS6LAgaqCr/IJ9JOl lkAlRWhy9u4yaPNB+tHdmmK3jwuzIttsz+byWWcKKyoiGUGGhvRBSNOhj9/3eNx10cfK X5L4b3sUBq1vh1/ZKKEgLNSsxTJRM6jmj4mkp2DvY7NPoxRiy7R0gBJJmPrGhZI9a0K6 cBhx7CEcKmzH/brU0B2mMl48lqGHC/d4siwxR4WhI7FRWNO7wxXjCFPQkRG63WmPM+DB FS1Q== 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=sTHBit+RJ8lLRUPz1dTMVjXQJk3fNzlOIPorGOXIg/g=; fh=744Suq3kcXLPjTtlaJnZAi6+VTuTvGJVvPW57cQsoUg=; b=O1GsiQuImgkLxSJEBENMZk6rChxPJ2L5J/f3ZJqo6DlpDljKnwaOUZhcYqy59l6ijp EuBK+BXsHp6nWONVoryPiqLICFGfyscNeCXav6HYZN683tByZKQdQZWaBYQ4tTsgSsxw Kxlakxsi6q6fYrUAMHASflPwe84FADARgSxT3HLenmZrrmXnZcQmgod5snL3Kc+H5zb1 NXn/PpRJ5BldnLBLSwqp8aMr3nvgktomEo95QNs/PJVGPzONh7QsweO8C8PeLV243HSP pyjTJpJwyqHQKX68wlHmhkQBdKznba83NjbNhhCYDIKlUR/CfCet8/G9K2BYEJnbTAMC LXvQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EI7kaw5Z; 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=1757870183; x=1758474983; 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=sTHBit+RJ8lLRUPz1dTMVjXQJk3fNzlOIPorGOXIg/g=; b=jb9SGpzUTkxQeEzrtlJrIZrh82zKj0d5vj9qD6ml2KnakWtFgE2oM3Tg2nALGHgfm3 802+bZ7RQbWZ8g+3A6oLxmRltxKkPn6rXkJMyXRhhH77Jy+adeOmuhVFCyCiaiGXuKQe s2vtvWjZ5pEc/CZWB70SD/iNphSmOblnFq5U4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757870183; x=1758474983; 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=sTHBit+RJ8lLRUPz1dTMVjXQJk3fNzlOIPorGOXIg/g=; b=EnYHyghRSrrd6p2Fg0lo6QisBnKplP0SBhTMIoG0yDlG//eKgCCYAOV7n6okLdkgTd h8L48Wlvpi1ioEmjhuTA7YNg5sk80TC656NNPo+q+XJx24ooxu2knRrEWk5ojURFT1Uu 0zjsw0sNvmdjvGU4CsGyM94rBhVETS8jaCNkz8U/aKb3CJeDWaHn4MIVEIks5yLc+0yE NgkrqGx9bf6e9iTUe7MfNXF6FF1GHIPIqaKeHXmJiAHbey2h+pERbPfRZFh+oMp+BJse lqgR4Raeg5FUYxZDDwfPkIQEXy09CdPNgLaom6ph+iAS6y3gF1+VqTTkHKep6P+G6IH+ QcLw== X-Forwarded-Encrypted: i=2; AJvYcCXmhYtFHwoqjaDb73EFaPXFI3EB5hUVcTmngLwONivQkfyfpdpjDBd1dpFjeI4au+PtprxbRJf2m2DZ/KR9@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yy/3VWEWgOGMBn95flWSgQiJfFA2fcKQ9kWVrPn/VR0WrykJS15 39jw7ZrJKUk0VBfWxALfPCM5VCiT7tdlWuSEz1LHMjdKmJzPd/jwbbTPOzJhYHdNsVW4qg== X-Google-Smtp-Source: AGHT+IHXeW0oz22l48Gj7Y8WG/T+lVmezSaTEPav7laubYJnVM5ueeHs76HXvA7Jf35gkmaBD0xxeA== X-Received: by 2002:a05:6402:354e:b0:61c:db49:aec0 with SMTP id 4fb4d7f45d1cf-62ed97f06c9mr9799138a12.5.1757870182730; Sun, 14 Sep 2025 10:16:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd5ggZtlRP3UCyPABKJ1s0nJUrNgjujxcDRc9t7KPOM83Q== Received: by 2002:a50:d69c:0:b0:62f:36ff:5232 with SMTP id 4fb4d7f45d1cf-62f36ff54bals87695a12.1.-pod-prod-00-eu-canary; Sun, 14 Sep 2025 10:16:20 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWvv+ZJEGFzs5OpRgZF7q90V+La8twybB/SECkp3vBMc5WPTFCevzf+nxhuJv3nZniDmzraAinFX/O7MmBH@amarulasolutions.com X-Received: by 2002:a17:907:3e8d:b0:b04:16fd:9539 with SMTP id a640c23a62f3a-b07a69272b3mr1409866766b.29.1757870180272; Sun, 14 Sep 2025 10:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757870180; cv=none; d=google.com; s=arc-20240605; b=FdBvx63bIilWOdTKd9R3ZU9U15wqw6Vm8ZGD/9lJ0nR7cS2bm3QEDNttasqycKOxKD +6IPnYHPR/d81FNbUcF0NXy6HTw+ji3gs9VYZTf34AJcp6gih6W7Rut+tOQ7eD3ocyVr PqxXQLv2EIcjLWudgZcgr3hMjaZZDPJWVWkAaOTSXJxZW/4cK1Adi722abeSvab+Rj+e P+wVT7waTZalRKAyWB4X8uR0eU0bDzzkuR7qT804zaGBGPFslZwRs72xtpUmmxK5fImf ZBN1YsMexaccOD1+/bUMb5hddVGZqLKnsT2aG4rZ3O1lP7xCkbzrrhJWq3lBB264sHnL 3hAw== 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=Sx0EwU0te/usZ13a8MurPgLe0A2g8omNenFnNxHAiqE=; fh=c28QrtMEck3oinslt3uvX9SQiE6QAcF8lhYd3C4gbeM=; b=UDm06mrt1LIS1O/eocnIZi9WU9rteBPansMFSE5cFishCOiVYaHXupvWojGb1AxLyO 62QGlH90f5mH4JdzYJW5IXXNmSsyorgBRMn1l3p8YN1o58FdM0gX6hDYuKRrTsTgOtcE nfiFw8dCeAZpT3b0LXhU4EM4zSPmbzE60L9ProgPlDJLmk+sf1+mPNL9IwGI0tv5aQHd 96kvcNaDbEvgcvmchuTRw/MjNZl4J9ysVFeqK02Xg0CWbhvskBIMvBBtExZFRAldCPGB pSQaTuaB7c98weueDr0oXS5Ds0U/v9zT2VW5gBROm70GVqov+ZAp/QRa8zWuoD5Kuch6 7Npg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EI7kaw5Z; 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-b07b32f2a62sor401306666b.8.2025.09.14.10.16.20 for (Google Transport Security); Sun, 14 Sep 2025 10:16:20 -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-Forwarded-Encrypted: i=1; AJvYcCWcVVBoFRNM4IU0zkcsVkdiKgRJ6pn50owAYXFiL+oA2G9fzBGJz/3oEOPHArCtyO1ERBgSZercSoDNRgGR@amarulasolutions.com X-Gm-Gg: ASbGnctZ4SZQdiODPGWmmdMWZ9JqcDMorskMc53dAJ6eQAuQ4PYnZ9KNXu7NQO/lBjy eANGH7BERSnDyVcsAt67jAZN4LPKPKib0rEQ4PBVSlUTr0OR0XCCGOEqFETunHAwBW1xzmcQoj4 eNd0sMxu6eIg4Xwlo/WXLYzmfyvFqfzhw1Vl/afkc/O4ffeni8KuVSs1ReHZikbuabvri3DzFQS g9CG6xuJbsFtlHZ4domU2e2bcPhCc4GCKwpvYDKVoW5ZFolA/Gj9lMEjprYnBAozA1gMDPaEbA7 RsYBbynbcqRO5YrD91q0hYmSpkp20sNN+VyomkC8s6MFTes5hXC0UNZqwysbqqoqO3nIppd6mZO iEWYUVyIsHzHi+gCn9vWO1MtmXWHzS1rSV/surXZnImvkpsqK53yl/2woYZl9e0sLc74+fZc/ss fcsmOVn1AFS8+0Cb4iqn3hNMtfloMutpR09eq6c7firWWMqJc3pwu2ETN3ottUPyGUXmwBzdV9T zg= X-Received: by 2002:a17:907:d8b:b0:afe:8de8:290d with SMTP id a640c23a62f3a-b07a629945emr1504682966b.6.1757870179840; Sun, 14 Sep 2025 10:16:19 -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-b07b334e76dsm776980466b.102.2025.09.14.10.16.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 10:16:19 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Frank Li , linux-amarula@amarulasolutions.com, Dario Binacchi , Conor Dooley , Dmitry Torokhov , Javier Carrasco , Jeff LaBundy , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v2 3/6] dt-bindings: touchscreen: add touchscreen-glitch-threshold-ns property Date: Sun, 14 Sep 2025 19:16:00 +0200 Message-ID: <20250914171608.1050401-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250914171608.1050401-1-dario.binacchi@amarulasolutions.com> References: <20250914171608.1050401-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=EI7kaw5Z; 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 --- 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..a60b4d08620d 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml @@ -206,6 +206,10 @@ properties: unevaluatedProperties: false + touchscreen-glitch-threshold-ns: + description: Minimum duration in nanoseconds a signal must remain stable + to be considered valid. + dependencies: touchscreen-size-x: [ touchscreen-size-y ] touchscreen-size-y: [ touchscreen-size-x ]