Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp944574imm; Tue, 3 Jul 2018 02:48:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIcFZ6xsBXsu6jjM3RQLWvHYaFzUFyvDww8q/jf0t1TG7WF1m7ACpRGn7SxBJIG+pG27lgg X-Received: by 2002:a17:902:6b84:: with SMTP id p4-v6mr29330711plk.272.1530611336365; Tue, 03 Jul 2018 02:48:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530611336; cv=none; d=google.com; s=arc-20160816; b=WTK7sG4rulYroO2Yy59d37aMBDxN8Je2qORvllsZG/cbDDJAyd7+n09N9Tzb0GndMk /z0w51++LbsmRAKYvBkH9z9te58ydXMMGGUAksa2+yyf78mHsahFqUVuUJPbanSVRxoO Apug/pOTKdTAU2uDSLv0ZeXpq9UMpeS47hIK4vGvMj0my5EB255Pq2q4LOu3HyLaNTuJ 3PDwfpK7cIkXjbZKiZujF3iUt3/12YxfPi65AFfFwAe2aEU7ZM2lAXZ2Pd07yTUqvbfs 1Q/OCnZzSwLaTNgWuEjB7YgZqIORE7hvHeEVIUahbG+FnxSTyATtJf2L/P/3GFl60Hz/ Utmw== 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:date:subject:cc:to:from :arc-authentication-results; bh=IyFvEJsHWV5T3XR0Njh5XXiZx84VVEnOJ+He0EJCBJk=; b=vfvkD/9Vtn1+xdVRkH9IYf21QWb5wnbCh4mbnv4U7O4OanLmBp9qbs2oFtnqoPMc8S p72B8Ma4dhjChfQWnUGRipBnChA5cEQtsKXQtVUtguyjrIilv7h+0Ilmb5AF9xoUjpIL xndRKJ5x7opzaS+S1VRxHLg2NAt/0sRZcHNtgDJTBA/pD8q4giG5AKFU50K02iUNtYdK kczSUxyMCXCQADpMWczTvdYjlPZ5yOnNvwmoxuAxWDfFV7JRLTu4qjb1R3WxNKbrAg7H trXd55txqmuRtaORm8zhNcyWdLbwbNTwS2BLSBWuKS5JY4RRJooym+8TLxCKVnvEuhlt 4Q5A== 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 j15-v6si722271pfn.363.2018.07.03.02.48.42; Tue, 03 Jul 2018 02:48:56 -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 S1754788AbeGCJrp (ORCPT + 99 others); Tue, 3 Jul 2018 05:47:45 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33447 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754560AbeGCJrk (ORCPT ); Tue, 3 Jul 2018 05:47:40 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id EFC8F2079F; Tue, 3 Jul 2018 11:47:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.home (AAubervilliers-681-1-39-106.w90-88.abo.wanadoo.fr [90.88.158.106]) by mail.bootlin.com (Postfix) with ESMTPSA id AC9E8207D4; Tue, 3 Jul 2018 11:47:27 +0200 (CEST) From: =?UTF-8?q?Myl=C3=A8ne=20Josserand?= To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: mylene.josserand@free-electrons.com, thomas.petazzoni@free-electrons.com, maxime.ripard@free-electrons.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, =?UTF-8?q?Myl=C3=A8ne=20Josserand?= Subject: [PATCH v6 2/2] dt-bindings: input: Add documentation for cyttsp5 Date: Tue, 3 Jul 2018 11:43:09 +0200 Message-Id: <20180703094309.18514-3-mylene.josserand@bootlin.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180703094309.18514-1-mylene.josserand@bootlin.com> References: <20180703094309.18514-1-mylene.josserand@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the Cypress TrueTouch Generation 5 touchscreen device tree bindings documentation. It can use I2C or SPI bus. This touchscreen can handle some defined zone that are designed and sent as button. To be able to customize the keycode sent, the "linux,keycodes" property can be used. Acked-by: Rob Herring Signed-off-by: Mylène Josserand --- .../bindings/input/touchscreen/cypress,cyttsp5.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/cypress,cyttsp5.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/cypress,cyttsp5.txt b/Documentation/devicetree/bindings/input/touchscreen/cypress,cyttsp5.txt new file mode 100644 index 000000000000..1e0e90e322c7 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/cypress,cyttsp5.txt @@ -0,0 +1,39 @@ +* Cypress cyttsp touchscreen controller, generation 5 + +Required properties: + - compatible : must be "cypress,cyttsp5" + - reg : Device I2C address or SPI chip select number + - interrupt-parent : the phandle for the gpio controller + (see interrupt binding[0]). + - interrupts : (gpio) interrupt to which the chip is connected + (see interrupt binding[0]). + +Optional properties: + - reset-gpios : the reset gpio the chip is connected to + (see GPIO binding[1] for more details). +Some other touchscreen optional properties can be defined such as +"touchscreen-size-x". See ./touchscreen.txt[2] for more details. + +This touchscreen can handle some buttons that are touchscreen's defined zones. +Each button's event can be customized using a property: + - linux,keycodes: List of keycode to emit. + +[0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt +[1]: Documentation/devicetree/bindings/gpio/gpio.txt +[2]: Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt + +Example: +&i2c0 { + [...] + + touchscreen@24 { + compatible = "cypress,cyttsp5"; + reg = <0x24>; + + interrupt-parent = <&pio>; + interrupts = <1 5 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; + touchscreen-swapped-x-y; + linux,keycodes = , , ; + }; +}; -- 2.11.0