From patchwork Sun Sep 14 17:16:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4286 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 7CE1A3FA44 for ; Sun, 14 Sep 2025 19:16:24 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-62a3d0ff34asf2785134a12.2 for ; Sun, 14 Sep 2025 10:16:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757870184; cv=pass; d=google.com; s=arc-20240605; b=c09oBTaLfl3hYsJazS18FaC2AKE5nVbHmorsto+geB1E0rb8STrv4akcWEh+spHHQH g+amHIhTLY3iGG92adweIJed2FdR9vvb5zqxb19YKoYmHX3l9iLKYeLph9rL07vlrLDL YSDZ5ktmSxyZOlC4zBxbp2MCNkaRDturCDNZ0j7QEOZevVNwPMDWikHSrVsppfQ8gzhA DOatUPsprbQ0N/gFJWNhxk7S8sEmgk30eT/Y/5ALSa67BoDmcqp991QZ1mEyqCU6Xer0 KfkDBLPkCmSugXCekIt7AJcxO9tsQ9A1TOKHrEyxiqeqBAVMGqXzzQlam25AcpdjVARx MMZw== 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=ljMWxV5yQ0pEaBLmWO5AZkWHkxxyruQy+uSMjUwpJYM=; fh=yOPhSgEwBWYlCPS//kgdZqqSP8Yd7gqgnCGpCC7nHlE=; b=bAcrPOgk2U4DBPVP7RiBJaTl4JObXh9YduhEX8CifDg3yikI92ggDrCE0LKCQhF0DL Np6aOPtUNaL5g3mY6yrcsCD+t0y2AgdWRFhA0GeL2FvPkdz/gVsnA33KTX9Z4YhEv7Td khS73dwPNlCKRZ9nhqO8ueYu/vZEJURfHXd+7+mRjtGsERQiPZCh6MjOoOfUpvfJ5+Ys tcFiy6W5u8yPc5w+c6X/SfU6UjmYkPXHcbCUkNCH9RD1BbQsxMvydHmY4LlaiLQYAH/v dQRzApm43CTLxTeBP2t18WHmDqFCdFAI0OVUeqGRCQ4CDpU0Hs+MxQqXGqbTax9rl2Ui kcPQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FFAn+Yjw; 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=1757870184; x=1758474984; 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=ljMWxV5yQ0pEaBLmWO5AZkWHkxxyruQy+uSMjUwpJYM=; b=GAOh4jvo9KuweBIHu0lSCRmJpjEAbStp4E3+dCK9gVBOfoN5nejULIxITpozsRxekc XVi/EOOz6yh7thJ1hB8oCy9xhw40M+rjcY19YgiMP/W9MpEwUtrxYLeorfSoosSmA6ER wn+bJRPGJZOBoNfcfjzN7sgxF7PYbRzcyeJqA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757870184; x=1758474984; 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=ljMWxV5yQ0pEaBLmWO5AZkWHkxxyruQy+uSMjUwpJYM=; b=qW15nSn/z0YG6d1QE+ljoYG5FyAVJj4XTVehM8rbiLwC9b5v/xJhbuIFD0mQ6N1f5A Zc6orrG4bjLCvl6a5ETf7dAT9wMaMI6HMZpCV20lOQxRgaM/kNGSSqMZKisBR1whjsmx yKftPafKHCp+ZPRpoOHslBLJdiUU1daweD8+C+kxekzBFL1AIx7tHtr+Q8oquZXa32bf 5yDHUMMYobMOMVvdwcUFw9++KF/LdnTI3Q3/7tWhy2pM2IYuy4y5eizsQ04Z13W3wj2h PWIq/fa1RzQrWS7AIZmxaksPAy/RepBY3HlwcdLU2gILDucX7jdOSUogNtlyLs5BTKMV tzxA== X-Forwarded-Encrypted: i=2; AJvYcCU7WKjobzjlPWC2juVoEk+Nbp/qKkoZy7JECyCDSNXJ9je5TIEJphf495dLSaappfw2WmC4GfZDun3ny67r@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yxu72mkXmjodibdEdJ1C2WHtVM3IaxcQ2jv6xoj3QrEh5guIyLX ZdyN12MXAikquUxaz5HYS80U2hS/dgDeDUihXlJUQl+ZudOUxccDREgOLCPFoypE0X3Ryg== X-Google-Smtp-Source: AGHT+IHgB/IMtjEqZNlAc5Y4SyRFgTPCTyTzHmg7cKqN42qi6BiuPNeRoT2+oyBQvl9ccFAcY2yzhQ== X-Received: by 2002:a05:6402:34cd:b0:62f:2c1a:920e with SMTP id 4fb4d7f45d1cf-62f2c1a94cfmr2728706a12.28.1757870184153; Sun, 14 Sep 2025 10:16:24 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd4V88kDEdqign4uDNxtPih63epsB0P1qlW59UgBjIVGVA== Received: by 2002:a05:6402:a0cf:b0:61c:ef7f:7d32 with SMTP id 4fb4d7f45d1cf-62ec03bacf3ls2795619a12.2.-pod-prod-05-eu; Sun, 14 Sep 2025 10:16:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWo14R161SelUkbVBtR9mEaaAyBXGMyEdWJVcLkF88VbvTfPW71gM3E2miKj9ab3vb9ptZvMP9DU/yJFMub@amarulasolutions.com X-Received: by 2002:a17:907:86a0:b0:b04:e44:4598 with SMTP id a640c23a62f3a-b07c356d2e6mr945939566b.14.1757870181854; Sun, 14 Sep 2025 10:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757870181; cv=none; d=google.com; s=arc-20240605; b=NYt6t65LjMJ2D09wpyW49SbM9PDEqI4v253Wg3knFPsnkbjVbR2LRAnDHPgux70w/M 2ydizkIMBlYm7y21Lte5bzgFdiHDwyHjZAsCFhxOz7jAKqqGf6+Pxq3D2MXlvDzMNMtb O5DWOBRw1KiFY3dcqMYdW+dhkIXyL98T6v/zstSYAHq1GBElB+QplDd9vjx76+4OvIO4 ZhCQ1oFvU7t1gCCRKYMNq/a7inueLdcPsk28gKBZoyTcs95wBndXCAJZKd03HL24oWWI Z/uIxLdx31KXssa/K9OcAnMZ5eO8TxH55tpH3OhtkF/DUvDF9OrBEcwozNQmYoEzvX5U 3oqQ== 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=WMdgI0iZ2TvocV4JZ7DyZgorR1pQL3heQi0CeqfMARw=; fh=rlEYMGw5lUiynce/DefRP1bvHhZA5MmcoOnRNsNUCWs=; b=hYfvDKPYFdrFKbfbLN3eFziKUXkjCawu+IS6KaZmiJHpjE/axWDdBz5lWKds1362Ym hbtQeh/nk93JUhHfqEXGMpeKpSKHLvPsf3k3/k6kVMejimalzg68Sjhv/DOXzGBNMvLl 026v0nLfRqqI8Wmtb5h2GaPn+zyZ7psd1IVOQa7YFT/0Amn0S+Gs7sN2YdzcoU0B8AVE l3jCrdyztszZfKABLdwerWM6+lYdUhyrXAml83wbmZ8gLAQLkzxom83YVGt84qYXDasR Bs5kYZWzxYWba5n1wPwQulzTSEWlzuKj6vaU6MYK5Cfua2l6MyxDlFVFwvWi+jKZWZPE 6suw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FFAn+Yjw; 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-b07b3128799sor320707966b.7.2025.09.14.10.16.21 for (Google Transport Security); Sun, 14 Sep 2025 10:16:21 -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; AJvYcCUYILBuntb7hcow5Ov9TmxoB3m0aQpfRom8JwOGj9PYYSkjPqi7yb+A2m9ULKXmT4bGmoPIY5WIwF+SF6LL@amarulasolutions.com X-Gm-Gg: ASbGnctypQSzT2oOBTgZrh++UatsSN/YbnQA44BScqFmL8qyRW7vBcJRmJK/lXx2k1K sotY70CIVwAb74nxPFH7sxWwuME/PB9uJZPFmqv1EI4tDd+uiOC/ZtTfAyIadf0jnSEr+xpSuZa FFuTwVsVyEcYWcd7LQOwAi1VHJklkCmfr6PYwC+5kLckK6CLDmlmTCBxjk0+Ud2Ev4lu2C+hx/8 oS6Uws4qEg2SmZPHxFAgYIADk0iFlSrKu46fbpCiWGu91O2oPOCrz+/S0MqnZCokNjXS3o/9evB Qf1tiEfQy/B1PiXH05Euw6vXjzCSNOXSUBE4NTV6wS4oe87KT5BQPGmqHYJ5/UA/zKTa19J9iN8 vMBSbb5L3Pt0FAxYqCd4EVeK9xPptZTrFIwgCFRunI3bsvWAvjcn/FgkM0edMPPrW/0C9TgKIRa ui6CABdKWlSDOmKsFQ6sJ9UX5JRlQnOdCH7wIqlta5zvh8OfkLC6uKGvd0BzaOJE0h X-Received: by 2002:a17:907:c08:b0:b04:3a46:c4f2 with SMTP id a640c23a62f3a-b07c383f1bemr990265066b.48.1757870181371; Sun, 14 Sep 2025 10:16:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 10:16:21 -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 v2 4/6] dt-bindings: touchscreen: fsl,imx6ul-tsc: support glitch thresold Date: Sun, 14 Sep 2025 19:16:01 +0200 Message-ID: <20250914171608.1050401-5-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=FFAn+Yjw; 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: , Support the touchscreen-glitch-threshold-ns property. Unlike the generic description in touchscreen.yaml, this controller maps the provided value to one of four discrete thresholds internally. Signed-off-by: Dario Binacchi --- (no changes since v1) .../input/touchscreen/fsl,imx6ul-tsc.yaml | 15 +++++++++++++++ 1 file changed, 15 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..310af56a0be6 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml @@ -62,6 +62,21 @@ properties: description: Number of data samples which are averaged for each read. enum: [ 1, 4, 8, 16, 32 ] + touchscreen-glitch-threshold-ns: + description: | + Unlike the generic property defined in touchscreen.yaml, this + controller does not allow arbitrary values. Internally the value is + converted to IPG clock cycles and mapped to one of 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 + + Any value provided in device tree is converted to cycles and rounded + up to the next supported threshold, or to 8191 if above 4095. + required: - compatible - reg