Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1714601

[PATCH v2 2/2] dt-bindings: input: Add documentation for cyttsp5

From Mylène Josserand <mylene.josserand@free-electrons.com>
Newsgroups linux.kernel
Subject [PATCH v2 2/2] dt-bindings: input: Add documentation for cyttsp5
Date 2017-08-18 08:30 +0200
Message-ID <ufIX8-7VI-9@gated-at.bofh.it> (permalink)
References <ufIX8-7VI-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Signed-off-by: Mylène Josserand <mylene.josserand@free-electrons.com>
---
 .../bindings/input/touchscreen/cypress,cyttsp5.txt | 41 ++++++++++++++++++++++
 1 file changed, 41 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..3fc4cad1cbb9
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/cypress,cyttsp5.txt
@@ -0,0 +1,41 @@
+* 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>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&tp_reset_ds203>;
+		interrupt-parent = <&pio>;
+		interrupts = <1 5 IRQ_TYPE_LEVEL_LOW>;
+		reset-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>;
+		touchscreen-swapped-x-y;
+		linux,keycodes = <KEY_HOMEPAGE>, <KEY_MENU>, <KEY_BACK>;
+	};
+};
-- 
2.11.0

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] Input: Add Cypress Gen5 Touchscreen driver Mylène Josserand          <mylene.josserand@free-electrons.com> - 2017-08-18 08:30 +0200
  [PATCH v2 2/2] dt-bindings: input: Add documentation for cyttsp5 Mylène Josserand          <mylene.josserand@free-electrons.com> - 2017-08-18 08:30 +0200
    Re: [PATCH v2 2/2] dt-bindings: input: Add documentation for cyttsp5 Rob Herring <robh@kernel.org> - 2017-08-22 04:50 +0200
  [PATCH v2 1/2] Input: Add driver for Cypress Generation 5 touchscreen Mylène Josserand          <mylene.josserand@free-electrons.com> - 2017-08-18 08:30 +0200
    Re: [PATCH v2 1/2] Input: Add driver for Cypress Generation 5  touchscreen Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-08-21 22:30 +0200

csiph-web