Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1725904pxj; Wed, 19 May 2021 12:24:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypbo/bNJKwfoAwvUsVf+QxxxFfNC+zrWZ49TSi/tEo+TCmZ2XMPzc38wcobt3kp/9/UmGH X-Received: by 2002:a02:938f:: with SMTP id z15mr688943jah.70.1621452291223; Wed, 19 May 2021 12:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452291; cv=none; d=google.com; s=arc-20160816; b=rvQ8/7lop7hB7+B0cRomX/sAmP++Sef9eCHhaqdFiG0DJF29UvoZ0XLxj+mJfxxMXk BvyS/ePHMrTYOftMtFjyoLT/xyCeELNfKCb5CAihWg3lwQjuNt2ETNvv6nuyIeXotybq Jp3sTfuBRtLI6ueQ/uVB05uwPDTXXX71DwsV77H+apX325eQ1FnbT9WPs0oVtjink2Vn AcX0bujAZ2V4aq2+y90iG/SaCydKfmEcuHtQg8lsAKv/HQanDeznoFjyzeWw4nXBqD9Y zBJvBKhO7Wjy4VnNA1fGpnFVu9aAaXq9sBq1hDVa6RBmAEuvEVXjnhmn5INumpCkKzkY KlKg== 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=sRM3tEG96efldGcyjQea4C4hM6yyAbNM5SSuHuKwdMk=; b=bqS5IFT9dxBnLE+X0a38kqeTeLi/nSbpwfcDYoNqerWx/g/DlQQR8Nvz+TUuuGzfL3 dvQvdH4OwbHbDtdaEziBbvkCYEPEol48sBd452my3VGqB2rojNmPElSsIAEuIH5I5Kht +5Mg33wqor+mtqnDwktZL8UtPNdCDNcqJugtK5i3oaX0rMh+s75/JVkz4OYnk9+7E9s1 lj9fQ4eWDQZiK24e/zXp8xEzOlt8UqEPWzFN55iXz41xIQLZVuYfU39QbIFg6U4d5sNH 0jktVWN0B4pZT3njHygKDUZ0IKVEjpGz3oOfKYjxNzWHo6LqHErvw0qgVj9jn1RtpX0z Agew== 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 v17si201899jat.82.2021.05.19.12.24.38; Wed, 19 May 2021 12:24:51 -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 S1345371AbhESJWM (ORCPT + 99 others); Wed, 19 May 2021 05:22:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345066AbhESJVw (ORCPT ); Wed, 19 May 2021 05:21:52 -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 4CC3EC061761 for ; Wed, 19 May 2021 02:20:33 -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 1ljINL-0007kR-RL; Wed, 19 May 2021 11:20:23 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ljINI-0005WZ-Vs; Wed, 19 May 2021 11:20:20 +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 v3 4/5] dt-bindings: touchscreen: resistive-adc-touch: add support for z1 and z2 channels Date: Wed, 19 May 2021 11:20:17 +0200 Message-Id: <20210519092018.21139-5-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210519092018.21139-1-o.rempel@pengutronix.de> References: <20210519092018.21139-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 --- .../input/touchscreen/resistive-adc-touch.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.yaml b/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.yaml index 38b4cbee9429..7fc22a403d48 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.yaml @@ -27,6 +27,8 @@ properties: - description: x - description: y - description: pressure (optional) + - description: z1 (optional) + - description: z2 (optional) io-channel-names: oneOf: @@ -37,6 +39,11 @@ properties: - enum: [x, y, pressure] - enum: [x, y, pressure] - enum: [x, y, pressure] + - items: + - enum: [x, y, z1, z2] + - enum: [x, y, z1, z2] + - enum: [x, y, z1, z2] + - enum: [x, y, z1, z2] touchscreen-size-x: true touchscreen-size-y: true @@ -46,6 +53,7 @@ properties: touchscreen-inverted-y: true touchscreen-swapped-x-y: true touchscreen-min-pressure: true + touchscreen-x-plate-ohms: true additionalProperties: false @@ -68,3 +76,11 @@ examples: io-channels = <&adc 24>, <&adc 25>, <&adc 26>; io-channel-names = "y", "pressure", "x"; }; + - | + touchscreen { + compatible = "resistive-adc-touch"; + touchscreen-min-pressure = <50000>; + io-channels = <&adc 1>, <&adc 2>, <&adc 3>, <&adc 4>; + io-channel-names = "x", "z1", "z2", "y"; + touchscreen-x-plate-ohms = <800>; + }; -- 2.29.2