Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2957309imm; Sun, 10 Jun 2018 05:33:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKImmGJCakiSzRabXYth6CxZ52YjQYlI7o5a49CFLE1mOrOgv4BUixbxisDoa19gW041VVF4 X-Received: by 2002:a62:2281:: with SMTP id p1-v6mr13523320pfj.53.1528634002088; Sun, 10 Jun 2018 05:33:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528634002; cv=none; d=google.com; s=arc-20160816; b=rcXOnZtSIpBz0niYhjtNKWBSgoS2MRBn6MKGFTrS8+jNKq2VfJSSsCL6COVYLXDYM/ b0FWG3XSvmFcl4TnZu4HMwFWWWRvyvo/ZqofGeY3iuNf1cHenrL64ziJ4UHCMH0NTgbr n8SYYWJRiioJHCTPkYLptWNkcSO0ZdMmRzmgxDOrRxzmDMguKtQdCzc8vhPkllXIsyvL 8xLc1ppuWzKl3t05Rl8339ETitasm4YFomFSbsjjbcWYDcnR7F64D4atWihpbWR+VZfP r8NjpzMQ6QfBRWoeqiv9jhGm8E1HYEe+vd3XxIpoEC+4vJv5Lb6FToYmD7SjCU1Ni6lg 9CKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=wA46g18bq6mtF8i3YGzHQhQ2BCh9idf8Lgbgz/KvOoQ=; b=GyKkQWuLRU5BjZirr8VAP9IEMv/vw3plq42GY99JST/fqAn+/wuO5E1z9JG4/2zv54 3eaITn7UEel6L+0yAPqj+7QnLjG/lMRXSopjy0ona9MQiAeJGvrLLNMaexmVFxyubMRj NyQW22pnaHgVSfT8Oq0VZZ/KG9Yj+DLGnBlRLt4dFzJnAzSturc6Njdsk9ly1Zg+yk17 PX3aiVxk3CEmynpIjiA6Rl/wG9b/Guk1lSRbRMm/Y5TCaa3fXu/X83mJjl1iOzNrwW8p VCl89X6IRUYN7Zombi9BAR6jx9tgI7d6UXVIfbNy9haHnC6TPw/unYE9w3K/2ad39vUC S5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zzcseBF3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9-v6si17391588pgo.173.2018.06.10.05.33.07; Sun, 10 Jun 2018 05:33:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zzcseBF3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753700AbeFJMcT (ORCPT + 99 others); Sun, 10 Jun 2018 08:32:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:51962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753407AbeFJMcR (ORCPT ); Sun, 10 Jun 2018 08:32:17 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CEA742087E; Sun, 10 Jun 2018 12:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528633937; bh=rkpklQWrnOMt+YsXbpQmQf6uTWTxLRoH1Zb4qZNNohg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=zzcseBF3PbwbEqexhDCtr0KE6E5eYUYxrNr0fz5/bN3p4EcG/7WzrglYdG9pmW7x+ pIVzkIPomiBmipaCB6WbaLKzOf3dRukZGh0U/y04SsWhv5giwBl3QHS3R56xaL7Zh1 mgXDe2B0qNq6AOpN5irABlsLdMjPeZNfTHJaAr/M= Date: Sun, 10 Jun 2018 13:32:11 +0100 From: Jonathan Cameron To: Eugen Hristev Cc: , , , , , , , , , Subject: Re: [PATCH v7 4/9] dt-bindings: input: touchscreen: resistive-adc-touch: create bindings Message-ID: <20180610133211.675209de@archlinux> In-Reply-To: <1526975559-18966-5-git-send-email-eugen.hristev@microchip.com> References: <1526975559-18966-1-git-send-email-eugen.hristev@microchip.com> <1526975559-18966-5-git-send-email-eugen.hristev@microchip.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 May 2018 10:52:34 +0300 Eugen Hristev wrote: > Added bindings for generic resistive touchscreen ADC. > > Signed-off-by: Eugen Hristev > Reviewed-by: Rob Herring Applied, thanks Jonathan > --- > Changes in v5: > - changed property name touchscreen-threshold-pressure to > touchscreen-min-pressure > > Changes in v3: > - renamed file and compatible to exclude "generic" keyword > - removed the pressure threshold property, added it as a common > touchscreen property in the touchscreen common bindings in a separate > commit. > > Changes in v2: > - modified bindings to have a generic resistive touchscreen adc driver > instead of specific architecture one. > > .../input/touchscreen/resistive-adc-touch.txt | 30 ++++++++++++++++++++++ > 1 file changed, 30 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.txt > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.txt b/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.txt > new file mode 100644 > index 0000000..51456c0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/resistive-adc-touch.txt > @@ -0,0 +1,30 @@ > +Generic resistive touchscreen ADC > + > +Required properties: > + > + - compatible: must be "resistive-adc-touch" > +The device must be connected to an ADC device that provides channels for > +position measurement and optional pressure. > +Refer to ../iio/iio-bindings.txt for details > + - iio-channels: must have at least two channels connected to an ADC device. > +These should correspond to the channels exposed by the ADC device and should > +have the right index as the ADC device registers them. These channels > +represent the relative position on the "x" and "y" axes. > + - iio-channel-names: must have all the channels' names. Mandatory channels > +are "x" and "y". > + > +Optional properties: > + - iio-channels: The third channel named "pressure" is optional and can be > +used if the ADC device also measures pressure besides position. > +If this channel is missing, pressure will be ignored and the touchscreen > +will only report position. > + - iio-channel-names: optional channel named "pressure". > + > +Example: > + > + resistive_touch: resistive_touch { > + compatible = "resistive-adc-touch"; > + touchscreen-min-pressure = <50000>; > + io-channels = <&adc 24>, <&adc 25>, <&adc 26>; > + io-channel-names = "x", "y", "pressure"; > + };