From patchwork Fri Dec 22 15:07:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 10130697 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D208260318 for ; Fri, 22 Dec 2017 15:13:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D37F829FB5 for ; Fri, 22 Dec 2017 15:13:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C85AF2A05A; Fri, 22 Dec 2017 15:13:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FF0B29FB5 for ; Fri, 22 Dec 2017 15:13:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756290AbdLVPKE (ORCPT ); Fri, 22 Dec 2017 10:10:04 -0500 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:55121 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756209AbdLVPJ7 (ORCPT ); Fri, 22 Dec 2017 10:09:59 -0500 X-IronPort-AV: E=Sophos;i="5.45,441,1508828400"; d="scan'208";a="10402481" 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; 22 Dec 2017 08:09:59 -0700 Received: from eh-station.mchp-main.com (10.10.76.4) by chn-sv-exch07.mchp-main.com (10.10.76.108) with Microsoft SMTP Server id 14.3.352.0; Fri, 22 Dec 2017 08:09:58 -0700 From: Eugen Hristev To: , , , , , , , , , CC: Eugen Hristev Subject: [PATCH 04/14] dt-bindings: input: touchscreen: sama5d2_rts: create bindings Date: Fri, 22 Dec 2017 17:07:11 +0200 Message-ID: <1513955241-10985-5-git-send-email-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513955241-10985-1-git-send-email-eugen.hristev@microchip.com> References: <1513955241-10985-1-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added bindings for Microchip SAMA5D2 resistive touchscreen. Signed-off-by: Eugen Hristev --- .../bindings/input/touchscreen/sama5d2_rts.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/sama5d2_rts.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/sama5d2_rts.txt b/Documentation/devicetree/bindings/input/touchscreen/sama5d2_rts.txt new file mode 100644 index 0000000..ea52a5c --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/sama5d2_rts.txt @@ -0,0 +1,31 @@ +Microchip SAMA5D2 resistive touchscreen + +Required properties: + + - compatible: microchip,sama5d2-resistive-touch + +Optional properties: + +The device must be connected to an IIO device that provides channels for +position and pressure measurement, and a trigger output that will periodically +trigger when the touch is pressed. +Refer to ../iio/iio-bindings.txt for details + + - io-channels: can have two or three 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 ADC registers them. + - io-channel-names: must have the two or three channels' names : +"x", "y", or "x", "y" and "pressure" + - io-triggers: can have a trigger input connected to an IIO device. + - microchip,pressure-threshold: a pressure threshold for the touchscreen. + Represented by an integer value. + +Example: + + resistive_touch: resistive-touch { + compatible = "microchip,sama5d2-resistive-touch"; + microchip,pressure-threshold = <3000>; + io-channels = <&adc 19>, <&adc 20>, <&adc 21>; + io-channel-names = "x", "y", "pressure"; + io-triggers = <&adc 1>; + };