From patchwork Tue Jul 22 10:36:16 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4220 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 99D7C3F165 for ; Tue, 22 Jul 2025 12:37:20 +0200 (CEST) Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-adb33457610sf527832266b.3 for ; Tue, 22 Jul 2025 03:37:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1753180640; cv=pass; d=google.com; s=arc-20240605; b=bill4gBycVuhiZ+OXe53Pg1YAqsT0u0P9trYl1sd2hPiLW5AefqOljJDf/O4qYlsaS CqQ+NDaLNyBzPwFub2YPwC+8Y7h/vyJkzjaiYCuxGXlhX+uufekBJeRaFfE6z91dl8Xa Zd9fQIbXhLMpBXt7dq2McAh4cpwq3C8THFcULUO/lT4kRkMys31C3X3KnN+ePY6POzaX m+OOcD07VfDcCFC8KGkm2ed+OrbiP7kGn++3siC8yNoDnyGDHz+iWHFq31xzXDS5Fpme hQPqvGecShNGA9KmGdya3tiNlXj5rYcNj9GeiZjO0pzVaX+vyqcrZRprXu0hopk/iiEd //iA== 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=PIXC/ArfQmnrQNbmnxsxaVZMl4LHraFo8UBIC6q/P1w=; fh=TMw059+V29n+YAFoAkBTp3YNbZLQrplUVELmlgVa68k=; b=HjLd1vI9FSc1qOHVL9stjT6DtDFaJY6hdUjf8JLISqVlvw6cEacTYgdPoMvyejG+UO fQVRhd4+E+D7bmeDlQo8I8/wctLYyY09LCa4tW3NyVXBsqqEHBrUsd8PsJMcuOx0PJYh va+ej6xZ7QPMiJRi1hUMY+od1KlT+2/sjoWOrvth5d9RZu+4vlHus5yuiz3NH9dyqbUF TAee2p5vvzQKSyQx9889KpFEZYL2e97fltiVbhwPgMh0i+RL4jqc5+5TTHdd7y8peR7n NIpBXR87Wi6t2LIomkjoJ4vH4Or/QitkNwiqM+M+yx+sEAkSNX5CLFeDeumIaK6h6Xhf CquA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ot7q9YtX; 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=1753180640; x=1753785440; 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=PIXC/ArfQmnrQNbmnxsxaVZMl4LHraFo8UBIC6q/P1w=; b=AQ/DWtiCwvTPLjEVZu1K4prD8R4g7OtFd82IMUEHwNZdoDKUYsBvMDhOAHD1ZHALL5 0tKoFzOA3+7222+0nwb/LtrKAsE9mQepraH/134WMap4yKPQ/HMpwQ6+f1lP4MMRKXAI f1ceGm+T1w+ts1VZZk9js6pmAMCBwT+HyN2Ys= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753180640; x=1753785440; 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=PIXC/ArfQmnrQNbmnxsxaVZMl4LHraFo8UBIC6q/P1w=; b=tEAhh+OyeVk8kIdBOF09BHdR7N/kgMsfF5OYJ29bOLGv2IVxL+q2pd7XqGm4Y7GPl5 WHgXxRjPkN5/a7rRwjVJAgRxllqBLXNgpDRqTQiXysEOJn4bvbaPQESnTlE2pIUV+5a4 dNcIz0JjeoloXmcIeXbsWTR1lm2WtpAfs3PzKtRNZ6SiHJXbKWQpgO4jcUILQamZ0Uh6 KxfI67CwfuK3gIfvOZWy75+vEj9T/3OZv+PQ/n/JhJzmu5nOxqKtf9oG+GX2njT/0gRE ljrjNbByAZqHF4a1NcDGkdFKbKzTNiOPoHNPEaCCkur2/FrSa0GjACiMaz/3S056eDU/ BCSw== X-Forwarded-Encrypted: i=2; AJvYcCVepZ00htr9dQUq7lFFzVZ4fjU5Tr6sVj3EZQGV8ajCz56z4f/4hEtZ28Bpz/SkvEeS8d5wpbDAZWpXJerL@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyR6oux0vdj+LBFfoIX2vsf3zWhWKsmVm9ds839IJxZXnwRP7Ve QLoyO2+V1CBKjLoqMotJ/4JgVDsjgLCIEI5XU6a++0nI72QQIDaA3f3+03bPaGwUJPtnUA== X-Google-Smtp-Source: AGHT+IFVNM6M2cW/IGgABK401lJuCWbnR7Zya9yJTy2fj6oZvbP+wTPPuOTElw+8S7uJMgUKcrCTbA== X-Received: by 2002:a17:907:983:b0:ae0:54b9:dc17 with SMTP id a640c23a62f3a-ae9cdd8605amr2195181766b.11.1753180639913; Tue, 22 Jul 2025 03:37:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=AZMbMZdMH76vQj7dAE+OJAmbgT0mtmTanMwksADzD6ZvG8HReQ== Received: by 2002:a05:6402:2109:b0:60c:50c2:e48b with SMTP id 4fb4d7f45d1cf-612a0a3c40fls4657592a12.1.-pod-prod-08-eu; Tue, 22 Jul 2025 03:37:17 -0700 (PDT) X-Received: by 2002:a17:907:f1de:b0:ae0:d4b1:b5f0 with SMTP id a640c23a62f3a-ae9ce0d6011mr2230510366b.35.1753180637181; Tue, 22 Jul 2025 03:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1753180637; cv=none; d=google.com; s=arc-20240605; b=J9cPRMje27lF00qpl1zNxK6dHmJfJl9Ku4kNpB0odQ2Z/8poXcqXR1tsYkkzXfYqgU MQ75fa/foKX895w8Ql2xNV7uBi92dk/Hg5y6OPzfIyF4ADzGrG4gzdiBf6MU04ilPGLs 7y225GbTj4EoyR0hAYKtxJHPpdbaZi6B2upeCesQlFKYMeQmv7zzsZnunuExpp0SygJc SfvdHCjcbdXs9SboNJttXYyB2i7rOl4KrQYaW8PuX/cRt7NBXHuW0HvQAhZErMmWMwqm BqMegJDdCBA3kbhhZNmFOFICzy6VFgi2Lp0deEMkV9mWvZnAlk1w7iBRqjWFut1JkAWk Ym+A== 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=GtY6xQODciaFQXT13QEjMt2xFfxEtt0WYueluTMBhAE=; fh=euIalU/jf6N5x2NNEskqvzHuFozMvE/8fvBnhWHdeuM=; b=kgX3nTqHOybnZ3UD+zGExSiIxv5jGZYltH9PDUAlt+YNYcV+iTrjNsJGZ5pMprPnBn FpgLOR7A7WMy1/WZkJQbpRdX5soIHC05pfWsHmT1mGO9W/ZwzRe39/ELNiz8zpwhAeno TpfuQr6DNAT+tVs9E4PfTHPxZ/zOsmfAFXTLwrFtLKtWr3r4oHIjvlT5VLrWKVM4RbmL UzBeGTqBrc+TRWeN6cXU0gdS3kOiuKWEQVlcoywz6/xunzFs8dxZFrqm53wJcc3GNQU0 42CH34VBahUwFZOEuKW73dm3lu1YYjpnjSM/Wnan6lNkLY01sYKwY1dAxffrt+zsgxab Zb2w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ot7q9YtX; 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-af26fade230sor3115166b.0.2025.07.22.03.37.17 for (Google Transport Security); Tue, 22 Jul 2025 03:37:17 -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: ASbGncvAjVRA3sK5myJemjg9VMNl/UJan7NUHqMrJ/b+sP2e4fAU50zgx1zI5WyoS5I kiJIi9ju89YkWp11gcymIRcQqOYMDY+pXWCrdugle3Mwmg1rjb89haYfqtFksYFtkQJ47PPgKXD 9ORLEB/tHS7K+g/JRnjxDpIRjAvGJq3X8KVB0GMJ+MtmEU8sg/gCzOfVBQPSVtyLrN9gmz6uG6b 1VHXNDuU12vIr9HASa1Ch7hWgpp2MlKsI8mcr43BDmKIghtBRSkl0RhzHzD+6GQtSNor+RkQWNx 5S5HJDsPAKzpKsFi6G50Wtsr6PfVnAY2gxUbc6cUgo8OgwmbEx0VZ3jJlSEGXSrO2M8d67+y0/p vUTwRiR2jFp1XtMxGYOYylqFwlW+YUOnyH4q4KhgrYk58EtAV+GSLWLPZg/I= X-Received: by 2002:a17:906:9fc9:b0:ae3:cd73:e95a with SMTP id a640c23a62f3a-ae9ce0d2aedmr2549138266b.36.1753180636628; Tue, 22 Jul 2025 03:37:16 -0700 (PDT) Received: from localhost.localdomain ([2001:b07:6474:ebbf:2bba:d7b0:8e79:c982]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aec6ca310e2sm844568766b.79.2025.07.22.03.37.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jul 2025 03:37:16 -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: [PATCH 2/4] dt-bindings: input: touchscreen: fsl,imx6ul-tsc: add fsl,glitch-threshold Date: Tue, 22 Jul 2025 12:36:16 +0200 Message-ID: <20250722103706.3440777-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250722103706.3440777-1-dario.binacchi@amarulasolutions.com> References: <20250722103706.3440777-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=ot7q9YtX; 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 --- .../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>; };