Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2897439pxj; Mon, 17 May 2021 12:28:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuduiN0RnvIZon/dglAkGf54c1WPBvlas+SPUBYP5IGWMVo9oo/Myy/gscaZ7TqQx7xklX X-Received: by 2002:a5e:8a42:: with SMTP id o2mr1255134iom.144.1621279728717; Mon, 17 May 2021 12:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621279728; cv=none; d=google.com; s=arc-20160816; b=TiESGlojx30Go+poLw3FXDfbER4wRBe/7lEbtLjz9mczbcv5YAXmgW5vpnP043CkKg RjAuyl/L63AZLW9GXT/3RNeAbqZ5HlNCZEd7awIU8xYjpd6lOnH0HwkRQ35LI3TtntM3 cVjx2KMCdLK0IeG4DzgvlmHBm1DGuayS54pLybAxjSV+JCpT3IU1qbJP7y2TfGRyBhm2 VbFrRVzk/m0mN5XdH5IyJOVbvNsbz84P84ujoDlXTmHz+3wlIT0BOAvCIEwmBhAXw/hw Swp4w7CnjxEVMneINHB/pppT12h03SwJHqSjbUNl71fMdnZ2S9Mp7yD176nr+fJ6SKEu BQog== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Kmu92VL1vkq+krEZlcx+4Fhu3iY4BUm8nY6Sb7u/pU8=; b=bg15RK+CNGukb0QYqIFqRCEbGW8UvIny4cVd3SckzT8+aVbw5V7HDVbBnRIXXigAG9 /s6Xc0OPSdj5PY0WF5psS+knuUXbkpcZRdJQF4FoLP28tKes/nK4PYo32JAhrFyCMHGs 2Mz3jjEsDDnF6SzMwhFi4ZfXWig0vi2TwhzP7EuSsu7qvVK3tTph4nqY8z2QuKTSBk7J /lrpY6Tn3NC+R/U9Fxb/SYCBl6shJ5ag0r5khaxIx13NRb8txRpmK5h/doF+GrCLZJkN 06wiyCRG902p2SKOTI7vB9xLzhTGLMn8ZwvdaLgJ+e8/nQPV47mxIX3Q2IZHZvD6gPKR sIGA== 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 p8si17603851ils.114.2021.05.17.12.28.35; Mon, 17 May 2021 12:28:48 -0700 (PDT) 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 S237145AbhEQNAg (ORCPT + 99 others); Mon, 17 May 2021 09:00:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbhEQNAf (ORCPT ); Mon, 17 May 2021 09:00:35 -0400 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 55D21C061756 for ; Mon, 17 May 2021 05:59:19 -0700 (PDT) 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 1licq0-0006dj-NL; Mon, 17 May 2021 14:59:12 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1licpy-000399-Vu; Mon, 17 May 2021 14:59:10 +0200 From: Oleksij Rempel To: Dmitry Torokhov , Rob Herring , Jonathan Cameron Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, David Jander , devicetree@vger.kernel.org Subject: [RFC PATCH v1 2/3] dt-bindings: touchscreen: resistive-adc-touch: add support for z1 and z2 channels Date: Mon, 17 May 2021 14:59:08 +0200 Message-Id: <20210517125909.12024-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210517125909.12024-1-o.rempel@pengutronix.de> References: <20210517125909.12024-1-o.rempel@pengutronix.de> MIME-Version: 1.0 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 For pressure calculation based on plates resistance we need some additional properties: - z1 and z2 channels with additional measurements between plates - actual resistance of the touchscreen. Currently we use only X-resistance. Signed-off-by: Oleksij Rempel --- .../bindings/input/touchscreen/resistive-adc-touch.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.yaml b/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.yaml index 53df21a6589e..538c3b1ef1e1 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.yaml @@ -43,6 +43,7 @@ properties: touchscreen-inverted-y: true touchscreen-swapped-x-y: true touchscreen-min-pressure: true + touchscreen-x-plate-ohms: true additionalProperties: false @@ -59,3 +60,11 @@ examples: io-channels = <&adc 24>, <&adc 25>, <&adc 26>; io-channel-names = "x", "y", "pressure"; }; + - | + resistive_touch { + compatible = "resistive-adc-touch"; + touchscreen-min-pressure = <50000>; + io-channels = <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>; + io-channel-names = "x", "y", "z1", "z2"; + touchscreen-x-plate-ohms = <800>; + }; -- 2.29.2