Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1392252pxj; Fri, 21 May 2021 13:06:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl25pPxj4f1K84Fb4QdvzZPzDGNrlZ8zZL6Bznu64mWls60rHAeQIUWBQEDnGOX61MHXAH X-Received: by 2002:a05:6e02:1147:: with SMTP id o7mr555963ill.20.1621627617383; Fri, 21 May 2021 13:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627617; cv=none; d=google.com; s=arc-20160816; b=sbRNfHY7bDjR4fBIpWeifQMrdSG51Eco1SCC6ZwCID8EWYErDGoSbeOXWK6oBW6VmT Y8uN8On+BU11WL2V5WtTaARaMASvrLORHXisvdDW9OPUgll1DBMZ1xw56i7L7S2FoJwf NKSB9R/JHhFuTw9z3hJ6dqflgtD9XguTG0v7CI03Q73N6MXEKnesyfzktH2GnW1UBTZo o7H88nzbehAx01x2Qsm7tpIibA7htq9s3jWJWl7b7DhNffbfbQmfuro5/pJR0LWhQOIQ KEbkcf/SidCIBYwu090JMx+Zxf4ivrsGfA8txCzJnBinC9rzSMxTlDlFfu0BkKgt26vg rAmg== 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=usTO8029O9ffxr5CUBye8VAIRFVy8bTo8iYSjStm2yw=; b=rX+NmSDF0F9V5cGaspouHDavgL9FCszZzARnMBdCtseEYlVivd/wyiXKX4mABBCaYc J9iCdlGAtM7Xr6FjSZfJPXQisrZGVnde0O2FOSvEIKXc4e8p7B8nAlUhMd9Ii2ne76ef /CM9t4qJzWxL02m0RKlA9K0dCagcRLTlKE5VAXciLgcZBHbEzLnNnl34EvBHLiSFsZMc 4leC1bLNLKnylAAGlYYpGywio+TL0RAsZUeD+pMmBh9bFzoN9m9L8HKYb3tO8ZmecUPw gBr7oqLR3ict+3LNbvrc87Ec7+VIozpTLuhmEajun8QEyrjAUf2HgH2fcQ8pm8ZpYJ8p 5QvA== 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 t22si7355881ioh.58.2021.05.21.13.06.43; Fri, 21 May 2021 13:06:57 -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 S239200AbhEUErg (ORCPT + 99 others); Fri, 21 May 2021 00:47:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239206AbhEUErP (ORCPT ); Fri, 21 May 2021 00:47:15 -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 11895C061342 for ; Thu, 20 May 2021 21:45:51 -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 1ljx2d-0006ZB-AK; Fri, 21 May 2021 06:45:43 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1ljx2b-0002G1-KU; Fri, 21 May 2021 06:45:41 +0200 From: Oleksij Rempel To: Dmitry Torokhov , Rob Herring , Jonathan Cameron Cc: Oleksij Rempel , Rob Herring , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, David Jander , devicetree@vger.kernel.org Subject: [PATCH v5 7/8] dt-bindings: touchscreen: resistive-adc-touch: add support for z1 and z2 channels Date: Fri, 21 May 2021 06:45:24 +0200 Message-Id: <20210521044525.7397-8-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210521044525.7397-1-o.rempel@pengutronix.de> References: <20210521044525.7397-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 Reviewed-by: Rob Herring --- .../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