Received: by 10.213.65.68 with SMTP id h4csp608945imn; Tue, 27 Mar 2018 05:38:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELui5D/jAZBMAkw1/Cdr76Pl4MBmxN+1xD8ipxG3B619Ae1eou9HsrARl/UgESgkS8daSUeP X-Received: by 2002:a17:902:5793:: with SMTP id l19-v6mr26524466pli.386.1522154338373; Tue, 27 Mar 2018 05:38:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522154338; cv=none; d=google.com; s=arc-20160816; b=qPLcrOTAEUJSBOdBFrIN1n6zLeY+vp+0Ez5GVbhHJOqBlmLHsNUEfoP79SbkcZsdVe FKnpk4pkM4J7bABlXIutLKnQUaEt9hjOGxhQwW+5J7ojOqJYnmRtlCvYZhTf5wqWLzRG vTxuhykgBYCeWKyJ9j5coWnuQ/k/w45/F4T620Egz+d06+R45Cg0bQUtkYpSl4vGjxOa eKK79VzH9yfnJ8HWqZkSF80RfQGFF6mPndrlWExQFgr/IqaFfa1BwzSdqo1CYMhPRc/U Yd7MGxyr0OQ2cFqTR3thXqToadhQK0YmZvhqm7aT4eCGF5MZZidIx6EsQLh59nUZLFnY PICQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=XB5gcjoIV4xKhTNeZbfZXhDeYlbefXht0J+CJ+mOTt8=; b=UGtZ5bn3sNZdj0XqkIsOvHy/6wSHHHsW1kVOVUhVXe8xLO87BHNjxFNEp24x8h1Tau h37TN8nM122J9hx5qpxYccMqNuDidn3/S9i9kuos23kexHnbEjFY8tcAWSpLvz2Euoie TIpRMiZGr9UBUrXN4jC5TG5nNBhapx5MAI59Q8rMYq/myuJb9kZEW31IogmEBtCeufHq ASiBtUfK1GY0O8cexcRfkJrcCFDGJiNaih7qoi+wNuHsM1PLnjWP/vu1QLXyvy3QSGZ2 LPlCloGjnIa+zAI9YPASJdlpGEhehzc+IOg/WSSGAiPIQhvV+NJMPLHG734lJtWzuM1U GP+A== 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 o1-v6si1220676pld.130.2018.03.27.05.38.44; Tue, 27 Mar 2018 05:38:58 -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 S1752168AbeC0Mex (ORCPT + 99 others); Tue, 27 Mar 2018 08:34:53 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:53948 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751349AbeC0Mev (ORCPT ); Tue, 27 Mar 2018 08:34:51 -0400 X-IronPort-AV: E=Sophos;i="5.48,367,1517900400"; d="scan'208";a="13309089" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 Mar 2018 05:34:50 -0700 Received: from eh-station.microchip.com (10.10.76.4) by chn-sv-exch02.mchp-main.com (10.10.76.38) with Microsoft SMTP Server id 14.3.352.0; Tue, 27 Mar 2018 05:34:48 -0700 From: Eugen Hristev To: , , , , , , , , , CC: Eugen Hristev Subject: [PATCH v2 03/10] dt-bindings: input: touchscreen: touch_adc: create bindings Date: Tue, 27 Mar 2018 15:32:36 +0300 Message-ID: <1522153963-1121-4-git-send-email-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522153963-1121-1-git-send-email-eugen.hristev@microchip.com> References: <1522153963-1121-1-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" +The device must be connected to an IIO 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 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. + +Example: + + resistive_touch: resistive_touch { + compatible = "generic-resistive-adc-touch"; + generic-resistive-adc-touch,pressure-threshold = <10000>; + io-channels = <&adc 24>, <&adc 25>, <&adc 26>; + io-channel-names = "x", "y", "pressure"; + }; -- 2.7.4