From patchwork Fri Oct 6 07:37:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ahmet Inan X-Patchwork-Id: 9988411 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 6F9FA6029B for ; Fri, 6 Oct 2017 07:38:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6276028D58 for ; Fri, 6 Oct 2017 07:38:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 574BA28D7B; Fri, 6 Oct 2017 07:38:22 +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 DD3E528D58 for ; Fri, 6 Oct 2017 07:38:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751450AbdJFHiU (ORCPT ); Fri, 6 Oct 2017 03:38:20 -0400 Received: from mail.datadisplay.de ([87.191.35.243]:10848 "EHLO mail.datadisplay.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750815AbdJFHiU (ORCPT ); Fri, 6 Oct 2017 03:38:20 -0400 Received: from dev-ai1.datadisplay.de (192.168.2.129) by srv-exchange2.datadisplay.de (192.168.30.27) with Microsoft SMTP Server id 14.3.351.0; Fri, 6 Oct 2017 09:38:18 +0200 From: Ahmet Inan To: Dmitry Torokhov CC: Ahmet Inan , , Rob Herring , , Ahmet Inan Subject: [PATCH 2/2] dt-bindings: Add I2C attached EETI EXC3000 bindings Date: Fri, 6 Oct 2017 09:37:28 +0200 Message-ID: <20171006073728.14724-2-inan@distec.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171006073728.14724-1-inan@distec.de> References: <20171006073728.14724-1-inan@distec.de> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.6.0.1053-8.100.1062-23374.004 X-TM-AS-Result: No--7.487200-5.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This documents the use of the dt-bindings for the EETI EXC3000 driver with the following example configuration: Using the I2C address 0x2a of the touch controller in the driver. Using pin 9 as low level-sensitive interrupt to signal the driver. Using a 4096x4096 touch screen resolution. Inverting the x-axis and swapping the result with the y-axis. Signed-off-by: Ahmet Inan Acked-by: Rob Herring --- .../bindings/input/touchscreen/exc3000.txt | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/exc3000.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/exc3000.txt b/Documentation/devicetree/bindings/input/touchscreen/exc3000.txt new file mode 100644 index 000000000000..1dcff4a43eaa --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/exc3000.txt @@ -0,0 +1,27 @@ +* EETI EXC3000 Multiple Touch Controller + +Required properties: +- compatible: must be "eeti,exc3000" +- reg: i2c slave address +- interrupt-parent: the phandle for the interrupt controller +- interrupts: touch controller interrupt +- touchscreen-size-x: See touchscreen.txt +- touchscreen-size-y: See touchscreen.txt + +Optional properties: +- touchscreen-inverted-x: See touchscreen.txt +- touchscreen-inverted-y: See touchscreen.txt +- touchscreen-swapped-x-y: See touchscreen.txt + +Example: + + touchscreen@2a { + compatible = "eeti,exc3000"; + reg = <0x2a>; + interrupt-parent = <&gpio1>; + interrupts = <9 IRQ_TYPE_LEVEL_LOW>; + touchscreen-size-x = <4096>; + touchscreen-size-y = <4096>; + touchscreen-inverted-x; + touchscreen-swapped-x-y; + };