Thread (1 message) 1 message, 1 author, 2017-07-17

Re: [PATCH] Input: add support for HiDeep touchscreen

From: Rob Herring <hidden>
Date: 2017-07-17 17:31:53
Also in: linux-devicetree

On Wed, Jul 12, 2017 at 02:24:14PM +0900, Anthony Kim wrote:
quoted hunk
The HiDeep touchscreen device is a capacitive multi-touch controller
mainly for multi-touch supported devices use. It use I2C interface for
communication to IC and provide axis X, Y, Z locations for ten finger
touch through input event interface to userspace.

It support the Crimson and the Lime two type IC. They are different
the number of channel supported and FW size. But the working protocol
is same.

Signed-off-by: Anthony Kim <redacted>
---
 .../bindings/input/touchscreen/hideep.txt          |  37 +
 .../devicetree/bindings/vendor-prefixes.txt        |   1 +
 drivers/input/touchscreen/Kconfig                  |  32 +
 drivers/input/touchscreen/Makefile                 |   2 +
 drivers/input/touchscreen/hideep.h                 | 329 ++++++++
 drivers/input/touchscreen/hideep_core.c            | 924 +++++++++++++++++++++
 drivers/input/touchscreen/hideep_dbg.c             | 405 +++++++++
 drivers/input/touchscreen/hideep_dbg.h             |  24 +
 drivers/input/touchscreen/hideep_isp.c             | 584 +++++++++++++
 drivers/input/touchscreen/hideep_isp.h             |  96 +++
 drivers/input/touchscreen/hideep_sysfs.c           | 249 ++++++
 11 files changed, 2683 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/touchscreen/hideep.txt
 create mode 100644 drivers/input/touchscreen/hideep.h
 create mode 100644 drivers/input/touchscreen/hideep_core.c
 create mode 100644 drivers/input/touchscreen/hideep_dbg.c
 create mode 100644 drivers/input/touchscreen/hideep_dbg.h
 create mode 100644 drivers/input/touchscreen/hideep_isp.c
 create mode 100644 drivers/input/touchscreen/hideep_isp.h
 create mode 100644 drivers/input/touchscreen/hideep_sysfs.c
diff --git a/Documentation/devicetree/bindings/input/touchscreen/hideep.txt b/Documentation/devicetree/bindings/input/touchscreen/hideep.txt
new file mode 100644
index 0000000..5eb8c1d
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/hideep.txt
@@ -0,0 +1,37 @@
+* HiDeep Finger and Stylus touchscreen controller
+
+Required properties:
+- compatible		: must be "hideep,hideep_ts".
See my reply on previous version.
+- reg			: I2C slave address, (e.g. 0x6C).
+- interrupt-parent : Interrupt controller to which the chip is connected.
+- interrupts : Interrupt to which the chip is connected.
+
+Optional properties:
+- vdd-supply	: It is the controller supply for controlling
+					 main voltage(3.3V) through the regulator.
+- vid-supply	: It is the controller supply for controlling
+					IO voltage(1.8V) through the regulator.
+- irq-gpios		: Define for interrupt gpio pin.
+						It is to use for set interrupt type.
As mentioned in the last version, use "interrupts".
+- reset-gpios	: Define for reset gpio pin.
+						It is to use for reset IC.
+- hideep,max_coords	: Max value for axis X, Y, W, Z.
s/_/-/
+
+Example:
+
+i2c@00000000 {
+
+	/* ... */
+
+	touchscreen@6c {
+		compatible = "hideep,hideep_ts";
+		reg = <0x6c>;
+		interrupt-parent = <&gpx1>;
+		interrupts = <2>;
+		vdd-supply = <&ldo15_reg>";
+		vid-supply = <&ldo18_reg>;
+		irq-gpios = <&gpx1 2 0>;
+		reset-gpios = <&gpx1 5 0>;
+		hideep,max_coords = <1080 1920 65535 65535>;
+	};
+};
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help