From patchwork Sun Nov 27 07:44:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guy Shapiro X-Patchwork-Id: 9448719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 60AD46071A for ; Sun, 27 Nov 2016 08:08:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51D98205A4 for ; Sun, 27 Nov 2016 08:08:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 46C0E212D9; Sun, 27 Nov 2016 08:08:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D20C4205A4 for ; Sun, 27 Nov 2016 08:08:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753168AbcK0IIG (ORCPT ); Sun, 27 Nov 2016 03:08:06 -0500 Received: from gateway20.websitewelcome.com ([192.185.62.46]:60358 "EHLO gateway20.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752428AbcK0IIG (ORCPT ); Sun, 27 Nov 2016 03:08:06 -0500 X-Greylist: delayed 1303 seconds by postgrey-1.27 at vger.kernel.org; Sun, 27 Nov 2016 03:08:06 EST Received: from cm3.websitewelcome.com (unknown [108.167.139.23]) by gateway20.websitewelcome.com (Postfix) with ESMTP id E59BFF6D20E60 for ; Sun, 27 Nov 2016 01:46:19 -0600 (CST) Received: from gator3269.hostgator.com ([198.57.247.233]) by cm3.websitewelcome.com with id CvmJ1u00H52sfJW01vmKNa; Sun, 27 Nov 2016 01:46:19 -0600 Received: from [213.57.90.22] (port=38489 helo=coyote.mobiwize) by gator3269.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.87) (envelope-from ) id 1cAuAD-0001ao-Cw; Sun, 27 Nov 2016 01:46:17 -0600 From: Guy Shapiro To: dmitry.torokhov@gmail.com Cc: fabio.estevam@freescale.com, haibo.chen@freescale.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guy Shapiro Subject: [PATCH 1/2] Documentation: sample averaging for imx6ul_tsc Date: Sun, 27 Nov 2016 09:44:57 +0200 Message-Id: <1480232698-23075-1-git-send-email-guy.shapiro@mobi-wize.com> X-Mailer: git-send-email 2.1.4 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3269.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mobi-wize.com X-BWhitelist: no X-Source-IP: 213.57.90.22 X-Exim-ID: 1cAuAD-0001ao-Cw X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (coyote.mobiwize) [213.57.90.22]:38489 X-Source-Auth: guy.shapiro@mobi-wize.com X-Email-Count: 8 X-Source-Cap: bW9iaXdpemU7bW9iaXdpemU7Z2F0b3IzMjY5Lmhvc3RnYXRvci5jb20= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The i.MX6UL internal touchscreen controller contains an option to average upon samples. This feature reduces noise from the produced touch locations. This patch introduces a new device tree optional property for this feature. It provides control over the amount of averaged samples per touch event. The property was inspired by a similar property on the "brcm,iproc-touchscreen" binding. Signed-off-by: Guy Shapiro Reviewed-by: Fabio Estevam --- .../devicetree/bindings/input/touchscreen/imx6ul_tsc.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt b/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt index 853dff9..a66069f 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt @@ -17,6 +17,13 @@ Optional properties: This value depends on the touch screen. - pre-charge-time: the touch screen need some time to precharge. This value depends on the touch screen. +- average-samples: Number of data samples which are averaged for each read. + Valid values 0-4 + 0 = 1 sample + 1 = 4 samples + 2 = 8 samples + 3 = 16 samples + 4 = 32 samples Example: tsc: tsc@02040000 { @@ -32,5 +39,6 @@ Example: xnur-gpio = <&gpio1 3 GPIO_ACTIVE_LOW>; measure-delay-time = <0xfff>; pre-charge-time = <0xffff>; + average-samples = <4>; status = "okay"; };