Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1674126pxj; Wed, 19 May 2021 11:10:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrsnj6+qk2nt/q3Vg2DgYL0pJQdsKM4cWHsRntimZar3HXQFLYrJgLFt0BsvMUA6pun35x X-Received: by 2002:a50:c44f:: with SMTP id w15mr326072edf.79.1621447805286; Wed, 19 May 2021 11:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621447805; cv=none; d=google.com; s=arc-20160816; b=XUR/Kri7tquHPYt8r2bq19wnn0S4sDNNYC1HY1LOBP/QTqHTKuE19L3rkotWBJngo9 nxDt5vswLlXS6ZL/H145HI9RApollHhKWOHiVl1cfffCGhyiqy0Zx3MEr9jErTUKBW9A R4BT16xX8GAUIHxjb8BA5Z2lM+d6ClVK6Men4zLZhs6wpAWuHyO1clOfrbgoLQuwV+9k jGUOFoGXubVup41lloGNV7M0TeAn744CWs0f6dje/7eZfW/0gv8RxU5jQZ4MOOpDZ59i fibG5Q/N6/SOBk1jtj4FILK+dGYvpsQud3bXn7M1nMDDwhIM/TL023D7R3zZU1MfY5vH lxuQ== 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=Wx5+65H3oGDyGLgvfk2CA5/cyGy1Y/FTAKQW9lNhUGYQSuQT3tdoBrSDLqew5wBIiu NJpIysiQxtH/jfF/O86f7HRy/2vpEYa6IaQsBbb1RwYCU4AXweURSmmMJ7Ub5BVM1sXC ToB+AFNsOmC3iVlYbngRS+zkXy307fyx9OYrjLJXQsy+NmyTDtQT9Vcc7Q+1WA20+i5B pOZ3mgwfy15972GH1cojS7MpW75ZbWyZmJC66fWARUYQLJU+Ccgih/fsM3WZosA0H8Ib 6ShYydFlf/rJRM+R4oJwfEn/wM4MQFmvFp+hraNnvHx5GmzQvPsknsz01TjJRY9NggEH kytQ== 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 a6si518523edk.546.2021.05.19.11.09.41; Wed, 19 May 2021 11:10:05 -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 S230370AbhERM7P (ORCPT + 99 others); Tue, 18 May 2021 08:59:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbhERM7O (ORCPT ); Tue, 18 May 2021 08:59:14 -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 7B8DCC061573 for ; Tue, 18 May 2021 05:57:56 -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 1lizIE-0002tl-By; Tue, 18 May 2021 14:57:50 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lizID-00078e-Ro; Tue, 18 May 2021 14:57:49 +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: [PATCH v2 3/4] dt-bindings: touchscreen: resistive-adc-touch: add support for z1 and z2 channels Date: Tue, 18 May 2021 14:57:47 +0200 Message-Id: <20210518125748.26823-4-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210518125748.26823-1-o.rempel@pengutronix.de> References: <20210518125748.26823-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