From patchwork Mon May 27 16:07:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Middelschulte, Leif" X-Patchwork-Id: 1105893 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=klsmartin.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45CMWv4xf6z9sBK for ; Tue, 28 May 2019 02:15:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbfE0QPV (ORCPT ); Mon, 27 May 2019 12:15:21 -0400 Received: from ironport.klsmartin.com ([212.211.191.11]:19886 "EHLO ironport.klsmartin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbfE0QPV (ORCPT ); Mon, 27 May 2019 12:15:21 -0400 X-Greylist: delayed 429 seconds by postgrey-1.27 at vger.kernel.org; Mon, 27 May 2019 12:15:19 EDT X-IronPort-AV: E=Sophos;i="5.60,519,1549926000"; d="scan'208";a="1674680" Received: from unknown (HELO hera.klsmartin.com) ([172.30.5.66]) by ironport.klsmartin.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 May 2019 18:08:13 +0200 Received: from SUMMAIL01.UMK.KLS.zentral ([172.25.1.63]) by hera.klsmartin.com (8.14.3/8.13.1/SuSE Linux 0.7) with ESMTP id x4RG84Do028497; Mon, 27 May 2019 18:08:06 +0200 Received: from UML026.UMK.KLS.zentral (172.25.2.60) by SUMMAIL01.UMK.KLS.zentral (172.25.1.63) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 May 2019 18:08:06 +0200 From: Leif Middelschulte To: , CC: , , , Leif Middelschulte Subject: [PATCH 01/10] dt-bindings: input: touchscreen: stmpe: add touch window configuration Date: Mon, 27 May 2019 18:07:27 +0200 Message-ID: <20190527160736.30569-2-leif.middelschulte@klsmartin.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190527160736.30569-1-leif.middelschulte@klsmartin.com> References: <20190527160736.30569-1-leif.middelschulte@klsmartin.com> MIME-Version: 1.0 X-Originating-IP: [172.25.2.60] X-KSE-ServerInfo: SUMMAIL01.UMK.KLS.zentral, 9 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 27.05.2019 13:23:00 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The STMPE811 is able to only monitor a subwindow of the entire screen. Touches outside of this window are neglected. This change adds the corresponding documentation. Signed-off-by: Leif Middelschulte --- .../devicetree/bindings/input/touchscreen/stmpe.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt index c549924603d2..04962e2e1ad0 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt @@ -33,6 +33,13 @@ Optional properties: - st,i-drive : current limit value of the touchscreen drivers 0 -> 20 mA (typical 35mA max) 1 -> 50 mA (typical 80 mA max) +- st,window-tracking : An u12 array that allows to pre-set a sub-window in the touchscreen. + Any touch position that is outside the sub-window is discarded + (top-right x, top-right y, bottom-left x, bottom-left y). + The given window also affects the value range (limits) set + within the input subsystem which, in turn, affects + the input resolution calculation on both axes. + Optional properties common with MFD (deprecated): - st,sample-time : ADC conversion time in number of clock. @@ -101,6 +108,8 @@ stmpe811@41 { * current limit value */ st,i-drive = <1>; + /* enable entire window */ + st,window-tracking = /bits/ 16 <4095 4095 0 0>; }; stmpe_adc { compatible = "st,stmpe-adc"; From patchwork Mon May 27 16:07:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Middelschulte, Leif" X-Patchwork-Id: 1105895 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=klsmartin.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45CMWy5wYpz9s5c for ; Tue, 28 May 2019 02:15:26 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726663AbfE0QP0 (ORCPT ); Mon, 27 May 2019 12:15:26 -0400 Received: from ironport.klsmartin.com ([212.211.191.11]:19886 "EHLO ironport.klsmartin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726432AbfE0QP0 (ORCPT ); Mon, 27 May 2019 12:15:26 -0400 X-Greylist: delayed 429 seconds by postgrey-1.27 at vger.kernel.org; Mon, 27 May 2019 12:15:19 EDT X-IronPort-AV: E=Sophos;i="5.60,519,1549926000"; d="scan'208";a="1674682" Received: from unknown (HELO hera.klsmartin.com) ([172.30.5.66]) by ironport.klsmartin.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 May 2019 18:08:19 +0200 Received: from SUMMAIL01.UMK.KLS.zentral ([172.25.1.63]) by hera.klsmartin.com (8.14.3/8.13.1/SuSE Linux 0.7) with ESMTP id x4RG8Asg028506; Mon, 27 May 2019 18:08:12 +0200 Received: from UML026.UMK.KLS.zentral (172.25.2.60) by SUMMAIL01.UMK.KLS.zentral (172.25.1.63) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 May 2019 18:08:12 +0200 From: Leif Middelschulte To: , CC: , , , Leif Middelschulte Subject: [PATCH 03/10] dt-bindings: input: touchscreen: stmpe: add resolution support Date: Mon, 27 May 2019 18:07:29 +0200 Message-ID: <20190527160736.30569-4-leif.middelschulte@klsmartin.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190527160736.30569-1-leif.middelschulte@klsmartin.com> References: <20190527160736.30569-1-leif.middelschulte@klsmartin.com> MIME-Version: 1.0 X-Originating-IP: [172.25.2.60] X-KSE-ServerInfo: SUMMAIL01.UMK.KLS.zentral, 9 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 27.05.2019 13:23:00 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This documents the support for specifying the screen size in milimeter and its impact on resolution calculation. Signed-off-by: Leif Middelschulte --- Documentation/devicetree/bindings/input/touchscreen/stmpe.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt index 04962e2e1ad0..d20dc5a7d8ad 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt @@ -39,6 +39,10 @@ Optional properties: The given window also affects the value range (limits) set within the input subsystem which, in turn, affects the input resolution calculation on both axes. +- touchscreen-x-mm : horizontal length in mm of the touchscreen. It affects + the input resolution calculation on the horizontal axis. +- touchscreen-y-mm : vertical length in mm of the touchscreen. It affects + the input resolution calculation on the vertical axis. Optional properties common with MFD (deprecated): From patchwork Mon May 27 16:19:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Middelschulte, Leif" X-Patchwork-Id: 1105896 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=klsmartin.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45CMdT4Vbrz9s5c for ; Tue, 28 May 2019 02:20:13 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726207AbfE0QUM (ORCPT ); Mon, 27 May 2019 12:20:12 -0400 Received: from ironport.klsmartin.com ([212.211.191.11]:28603 "EHLO ironport.klsmartin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbfE0QUM (ORCPT ); Mon, 27 May 2019 12:20:12 -0400 X-IronPort-AV: E=Sophos;i="5.60,519,1549926000"; d="scan'208";a="1674793" Received: from unknown (HELO hera.klsmartin.com) ([172.30.5.66]) by ironport.klsmartin.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 May 2019 18:20:11 +0200 Received: from SUMMAIL01.UMK.KLS.zentral ([172.25.1.63]) by hera.klsmartin.com (8.14.3/8.13.1/SuSE Linux 0.7) with ESMTP id x4RGK32s002844; Mon, 27 May 2019 18:20:05 +0200 Received: from UML026.UMK.KLS.zentral (172.25.2.60) by SUMMAIL01.UMK.KLS.zentral (172.25.1.63) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 May 2019 18:20:05 +0200 From: Leif Middelschulte To: , CC: , , , Leif Middelschulte Subject: [PATCH 05/10] dt-bindings: input: touchscreen: stmpe: add XY mode Date: Mon, 27 May 2019 18:19:33 +0200 Message-ID: <20190527161938.31871-1-leif.middelschulte@klsmartin.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190527160736.30569-1-leif.middelschulte@klsmartin.com> References: <20190527160736.30569-1-leif.middelschulte@klsmartin.com> MIME-Version: 1.0 X-Originating-IP: [172.25.2.60] X-KSE-ServerInfo: SUMMAIL01.UMK.KLS.zentral, 9 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 27.05.2019 13:23:00 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This change documents the support of another input data acquisition mode (XY). This mode is mostly relevant in the context of/combination with the tracking index. Signed-off-by: Leif Middelschulte Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/input/touchscreen/stmpe.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt index d20dc5a7d8ad..aee1abf06ddb 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt @@ -28,6 +28,9 @@ Optional properties: 5 -> 10 ms 6 -> 50 ms 7 -> 100 ms +- st,op-mod : Axis information acquisition operating mode (Default is 0) + 0 -> XYZ + 1 -> XY - st,fraction-z : Length of the fractional part in z (recommended is 7) (fraction-z ([0..7]) = Count of the fractional part) - st,i-drive : current limit value of the touchscreen drivers From patchwork Mon May 27 16:19:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Middelschulte, Leif" X-Patchwork-Id: 1105897 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=klsmartin.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45CMdb1cl6z9s5c for ; Tue, 28 May 2019 02:20:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726484AbfE0QUS (ORCPT ); Mon, 27 May 2019 12:20:18 -0400 Received: from ironport.klsmartin.com ([212.211.191.11]:28603 "EHLO ironport.klsmartin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbfE0QUS (ORCPT ); Mon, 27 May 2019 12:20:18 -0400 X-IronPort-AV: E=Sophos;i="5.60,519,1549926000"; d="scan'208";a="1674795" Received: from unknown (HELO hera.klsmartin.com) ([172.30.5.66]) by ironport.klsmartin.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 May 2019 18:20:16 +0200 Received: from SUMMAIL01.UMK.KLS.zentral ([172.25.1.63]) by hera.klsmartin.com (8.14.3/8.13.1/SuSE Linux 0.7) with ESMTP id x4RGK9Uh003285; Mon, 27 May 2019 18:20:11 +0200 Received: from UML026.UMK.KLS.zentral (172.25.2.60) by SUMMAIL01.UMK.KLS.zentral (172.25.1.63) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 May 2019 18:20:11 +0200 From: Leif Middelschulte To: , CC: , , , Leif Middelschulte Subject: [PATCH 07/10] dt-bindings: input: touchscreen: stmpe: add axes inversion and swap Date: Mon, 27 May 2019 18:19:35 +0200 Message-ID: <20190527161938.31871-3-leif.middelschulte@klsmartin.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190527161938.31871-1-leif.middelschulte@klsmartin.com> References: <20190527160736.30569-1-leif.middelschulte@klsmartin.com> <20190527161938.31871-1-leif.middelschulte@klsmartin.com> MIME-Version: 1.0 X-Originating-IP: [172.25.2.60] X-KSE-ServerInfo: SUMMAIL01.UMK.KLS.zentral, 9 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 27.05.2019 13:23:00 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This driver too supports coordinate inversion on X,Y axes and axes swapping via the common properties defined in touchscreen.txt Signed-off-by: Leif Middelschulte --- Documentation/devicetree/bindings/input/touchscreen/stmpe.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt index aee1abf06ddb..09d2d4f288cc 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt @@ -42,6 +42,10 @@ Optional properties: The given window also affects the value range (limits) set within the input subsystem which, in turn, affects the input resolution calculation on both axes. +- touchscreen-inverted-x: X axis is inverted (boolean) +- touchscreen-inverted-y: Y axis is inverted (boolean) +- touchscreen-swapped-x-y: X and Y axis are swapped (boolean) + Swapping is done after inverting the axis - touchscreen-x-mm : horizontal length in mm of the touchscreen. It affects the input resolution calculation on the horizontal axis. - touchscreen-y-mm : vertical length in mm of the touchscreen. It affects From patchwork Mon May 27 16:19:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Middelschulte, Leif" X-Patchwork-Id: 1105898 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=klsmartin.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45CMdh0spYz9s5c for ; Tue, 28 May 2019 02:20:24 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726663AbfE0QUX (ORCPT ); Mon, 27 May 2019 12:20:23 -0400 Received: from ironport.klsmartin.com ([212.211.191.11]:28603 "EHLO ironport.klsmartin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbfE0QUX (ORCPT ); Mon, 27 May 2019 12:20:23 -0400 X-IronPort-AV: E=Sophos;i="5.60,519,1549926000"; d="scan'208";a="1674797" Received: from unknown (HELO hera.klsmartin.com) ([172.30.5.66]) by ironport.klsmartin.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 May 2019 18:20:22 +0200 Received: from SUMMAIL01.UMK.KLS.zentral ([172.25.1.63]) by hera.klsmartin.com (8.14.3/8.13.1/SuSE Linux 0.7) with ESMTP id x4RGKFII003476; Mon, 27 May 2019 18:20:17 +0200 Received: from UML026.UMK.KLS.zentral (172.25.2.60) by SUMMAIL01.UMK.KLS.zentral (172.25.1.63) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 May 2019 18:20:17 +0200 From: Leif Middelschulte To: , CC: , , , Leif Middelschulte Subject: [PATCH 09/10] dt-bindings: input: touchscreen: stmpe: add tracking index Date: Mon, 27 May 2019 18:19:37 +0200 Message-ID: <20190527161938.31871-5-leif.middelschulte@klsmartin.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190527161938.31871-1-leif.middelschulte@klsmartin.com> References: <20190527160736.30569-1-leif.middelschulte@klsmartin.com> <20190527161938.31871-1-leif.middelschulte@klsmartin.com> MIME-Version: 1.0 X-Originating-IP: [172.25.2.60] X-KSE-ServerInfo: SUMMAIL01.UMK.KLS.zentral, 9 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 27.05.2019 13:23:00 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The tracking index is a "minimum" distance two touch points need to have in order for the second to be valid. This adds the corresponding binding property documentation. Signed-off-by: Leif Middelschulte --- .../bindings/input/touchscreen/stmpe.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt index 09d2d4f288cc..8696af35a7b8 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/stmpe.txt @@ -42,6 +42,21 @@ Optional properties: The given window also affects the value range (limits) set within the input subsystem which, in turn, affects the input resolution calculation on both axes. +- st,tracking-index : Minimal distance between the current touch position and the previous + touch position. If the distance is shorter than the tracking + index, it is discarded. The tracking is calculated by summation + of the horizontal and vertical movement. + If pressure reporting is enabled (X/Y/Z), an increase in pressure + override the movement tracking and report the new data set, even + if X/Y is within the previous tracking index. + 0 -> disabled + 1 -> 4 + 4 -> 8 + 3 -> 16 + 4 -> 32 + 5 -> 64 + 6 -> 92 + 7 -> 127 - touchscreen-inverted-x: X axis is inverted (boolean) - touchscreen-inverted-y: Y axis is inverted (boolean) - touchscreen-swapped-x-y: X and Y axis are swapped (boolean)