Received: by 10.213.65.68 with SMTP id h4csp2957123imn; Mon, 9 Apr 2018 11:50:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+C0QtX1Pxe8fk28a+0xi64VAzH/eO6fCehO2t0ww4CSY23pY0jeuMTR7Oq5DqhjuKAdV9X X-Received: by 2002:a17:902:2805:: with SMTP id e5-v6mr40687161plb.89.1523299834179; Mon, 09 Apr 2018 11:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523299834; cv=none; d=google.com; s=arc-20160816; b=pbCFFYJhQETDH3TrfzO+OMojG1MIa5h2EUeUU75w2tkDLBZI8cEt2hfjIp8rp8jKYz yxFrrAm3J3gF2+AUukgjm9EApR6Us9l1RYj9AX557UpMcxkIW+69H/WU94D36uoHLXO4 v6q6s6WMrpGQe+exW0muVam/ItqOLxsjAKlJj7ayO81zp55YjKOzuO846BAzeMIGyuqb JYiP17xRDhdOykm1KJxj2BGo3qx7mDVW2GRnimKnpfxZjInjxbrHquJ7E7m96uukKFhO qQKYgxcf650HZOnVV1lUbpp5WbjDotTD1c74wvUFWPzWBOQnaGt/prwjVN3kbJOZP3w0 csHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Gk9/+1XcpX2tPyO3iOw2NDlJzZ8frVHiVL3DUPfhIJk=; b=F9b7tJd2Xlts5TVj+51xq+iTkABuFL52zgKFy0qf6b9aLisV5j3ggmN2p5B0Gn/gx/ BwMfzfVYSv3ae2LfOYjxF6reoyM30ccF4AnnJJLQIgZYu1PI/A0mwLspYmbxmIFE3tN0 qsRRcuhG+KGlrlaB6trJ+UAKT09jRQXhDtU6b1bio2A+ezicc1vEQGp61r9OLfQlzl6y I+f02HGfacLYvzVuzf6DfD4+KSwVX3uw87TH5QE+VI/o9XonMFRWO4jGN6Hl8prXgiCy EgqAMFUDBhnfUtr/PcMonFADRUNoRlOcyEZB4P8Y0eBB8FXumvSkEqQb3ZzMqFGSk5p9 2uBQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si579975pga.730.2018.04.09.11.49.57; Mon, 09 Apr 2018 11:50:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753302AbeDISqx (ORCPT + 99 others); Mon, 9 Apr 2018 14:46:53 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:46604 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610AbeDISqv (ORCPT ); Mon, 9 Apr 2018 14:46:51 -0400 Received: by mail-ot0-f194.google.com with SMTP id v64-v6so9815582otb.13; Mon, 09 Apr 2018 11:46:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Gk9/+1XcpX2tPyO3iOw2NDlJzZ8frVHiVL3DUPfhIJk=; b=TUpEpM4yqkRbaB6eAvoTd4F0IDjXwdZNvVFcHynEDdeG7fgHneJ/W9kvuhaBNFfhIS BlsdayA+ZbqwJVmfoX2hgkTa0f8lFNTRk2CXOAvKI4y7ovilBrMTEiB/8i5FyqHDPOiL 3YlgUHS7XeRDy3+MnK2IuRe2j1Dwgb5O6nXILzjR/TgaK9xvCQEo2vlzYxpnFYS7O1oY QfvnGxlTBisA6XHkYgH6VPcp4O2HS/QU5Fg14uU0NDSpEzXQWPXOT9p8xphVAdignTbM UwT+RTEQhSxhHAXFDofq9vt6c5mS3EJMD7+q57j6OqyR2GtPBYqIEEZZx2uNnvP88b1K XAiQ== X-Gm-Message-State: ALQs6tCVyC2N0589r2oSLCm3/ww2ap+a4+omIZP4fJZpGPjILqDY2fYT WhCe6yaLT8mezMXqw4EywA== X-Received: by 2002:a9d:2371:: with SMTP id k46-v6mr5292917otd.302.1523299610778; Mon, 09 Apr 2018 11:46:50 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id e14-v6sm561634otc.57.2018.04.09.11.46.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Apr 2018 11:46:50 -0700 (PDT) Date: Mon, 9 Apr 2018 13:46:48 -0500 From: Rob Herring To: Eugen Hristev Cc: jic23@kernel.org, ludovic.desroches@microchip.com, alexandre.belloni@bootlin.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, nicolas.ferre@microchip.com, dmitry.torokhov@gmail.com Subject: Re: [PATCH v2 03/10] dt-bindings: input: touchscreen: touch_adc: create bindings Message-ID: <20180409184648.jbeajblbhxssqki6@rob-hp-laptop> References: <1522153963-1121-1-git-send-email-eugen.hristev@microchip.com> <1522153963-1121-4-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1522153963-1121-4-git-send-email-eugen.hristev@microchip.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 03:32:36PM +0300, Eugen Hristev wrote: > Added bindings for generic resistive touchscreen ADC. > > Signed-off-by: Eugen Hristev > --- > Changes in v2: > - modified bindings to have a generic resistive touchscreen adc driver > instead of specific architecture one. > > .../bindings/input/touchscreen/touch_adc.txt | 33 ++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/touch_adc.txt > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/touch_adc.txt b/Documentation/devicetree/bindings/input/touchscreen/touch_adc.txt > new file mode 100644 > index 0000000..27abcdc > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/touch_adc.txt > @@ -0,0 +1,33 @@ > +Generic resistive touchscreen ADC > + > +Required properties: > + > + - compatible: must be "generic-resistive-adc-touch" Drop "generic-" and rename the file after the compatible string. > +The device must be connected to an IIO device that provides channels for s/IIO/ADC/ > +position measurement and optional pressure. > +Refer to ../iio/iio-bindings.txt for details > + - iio-channels: must have at least two channels connected to an IIO device. > +These should correspond to the channels exposed by the IIO device and should > +have the right index as the IIO 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 IIO 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". > + - generic-resistive-adc-touch,pressure-threshold: a pressure threshold for > +the touchscreen, if we are using the "pressure" channel as well. > +Represented by an integer value. Define a common touchscreen property for this. We already have several definitions. It seems to me that "contact-threshold" would have been the same thing, but it is deprecated in favor of "touchscreen-fuzz-pressure" which doesn't really sound like the same thing. Rob