Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp266937pxb; Thu, 12 Nov 2020 03:23:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNcEeyZIvbUnBhi+i1T3KBEERPJdWacw+u/lyjrwz7d6FMkliZYE6xS+81kRURypQK2MbZ X-Received: by 2002:a05:6402:1281:: with SMTP id w1mr4781227edv.353.1605180209001; Thu, 12 Nov 2020 03:23:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605180208; cv=none; d=google.com; s=arc-20160816; b=e8uQp3SH/rMSrvPb2RACWr9cVZzpuqdke1LvTZcJhhm+UxkuHysyzwzz9GVtOdyHou S9aZj1jBRyAhyic83Kv7KzZ5pGzVk/e7dKcES9Qkq1KZcwPtPE1Y9mfql8JqIE4xsyr9 hUDf8c7Zoj8FVaF4wfXF+ySm4YZXOY6bGE+4kIlhHPvdO7tiKL1W9VF3z92IflXXcEsb 4lYqhFzOTjyJKQpjUPUD7T6fuiHydfOzUq6NS367qzX2WVRq/R7f64WVasa8ehYEUGUn S0GZHiBmAgPhCUGt6q/m18o2+Yku/MbhDaYaGF0NHjMHo8DGfEsdg94Hqt1z6R1Jn4X5 NgeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=J2TKgCaIi291YhMDpKUljyLhWwTPXgGKecOj9VEn29o=; b=MhV2a3g5VZL8iLVPkkaHeQntMwatoLBQ/KIKHfk1Km7QNfvQ0qdmchXKU3gENSsvai xbp0kRElBCBDujEKLBr3oegxsk5GzR96xoAUMNt+6cmsExj5BM3UFAog609AzIAc6Oss i2dfTlx2FL6pJeD0PEyMg1khn/ntDje952yUW7LRk4sssjHl/meT6qpijLsshEmmXyXv /OAvGDaNFeKb4QnQEtpM+elzkqW0tHIMt6t/7gLcC8jVPfLKo8BZH1MYB38nRZ0zIIPp vEC+4YpWNofKRxQy6JqWW38kXYGt0gxnVz3p/Rh65nohGNcx3lmQpSmGvHKzGTRNLqeC BR0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r27si3303033ejc.681.2020.11.12.03.23.06; Thu, 12 Nov 2020 03:23:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727762AbgKLLVD (ORCPT + 99 others); Thu, 12 Nov 2020 06:21:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727035AbgKLLVB (ORCPT ); Thu, 12 Nov 2020 06:21:01 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86BF8C0613D1 for ; Thu, 12 Nov 2020 03:21:01 -0800 (PST) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kdAep-0003Oj-J8; Thu, 12 Nov 2020 12:20:51 +0100 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kdAen-0003Am-MN; Thu, 12 Nov 2020 12:20:49 +0100 From: Oleksij Rempel To: Dmitry Torokhov , Rob Herring Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, David Jander , Benjamin Gaignard , Krzysztof Kozlowski , Mark Brown , Jonathan Cameron , devicetree@vger.kernel.org Subject: [PATCH v1] dt-bindings: touchscreen: add touchscreen-read-duration-us and touchscreen-settling-time-us properties Date: Thu, 12 Nov 2020 12:20:48 +0100 Message-Id: <20201112112048.12134-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the TI application bulletin [1] we deal with two generic mechanisms which would affect the precision of provided input events: |TOUCH SCREEN SETTLING TIME | |When the touch panel is pressed or touched, there are |two mechanisms that will affect the voltage level at the contact point of |the touch panel. These two mechanisms will cause the voltage across the |touch panel to “ring” (oscillate), and then slowly settle (decay) |down to a stable DC value. | |The two mechanisms are: | 1) Mechanical bouncing caused by vibration of the top layer sheet of | the touch panel when the panel is pressed. | | 2) Electrical ringing due to parasitic capacitance between the top | and bottom layer sheets of the touch panel and at the input of ADS7843 | that causes the voltage to “ring”(oscillate). Since both of this mechanisms are board specific and reflect the mechanical, and electrical properties of end product, it is better to provide a generic properties to address them. The touchscreen-read-duration-us property should address 1. mechanism. This effect can be triggered by device specific design. The duration ma be dependent on the use case of the end device. For example a touch where writing is required may have other timing requirements as the device where only "buttons" should be pressed. The touchscreen-settling-time-us property should address 2. mechanism where the size and construction of touch screen plates affect the parasitic capacitance and time needed between enabling power supply for the plates, and actual usable voltage level to detect the position of touch event. [1] https://www.ti.com/lit/an/sbaa036/sbaa036.pdf Signed-off-by: Oleksij Rempel --- .../bindings/input/touchscreen/touchscreen.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml b/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml index a771a15f053f..8ba845f68d5c 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/touchscreen.yaml @@ -55,6 +55,15 @@ properties: values dependent on the controller) $ref: /schemas/types.yaml#/definitions/uint32 + touchscreen-read-duration-us: + description: Averaged time to sample each read to detect waves within + specified duration (valid values dependent on the controller) + + touchscreen-settling-time-us: + description: Time it takes for the touchscreen ADC to produce valid samples + again after switching between axes (valid values dependent on the + controller) + touchscreen-inverted-x: description: X axis is inverted type: boolean -- 2.28.0