Skip to contentSkip to conversation

dt-bindings: input: touchscreen: ilitek_ts_i2c: Add bindings

PATCH RESEND Superseded Joe Hung 2 participants 4 messages Feb 4, 2021 – Feb 17, 2021

Subsystems (3)

v1 of 8 Superseded Latest is v8 →

lore
Share & tools
lore

Joe Hung

author
#0 lore raw

PATCH RESEND 1/2 dt-bindings: input: touchscreen: ilitek_ts_i2c: Add bindings

Add binding documentation for ILITEK touch devices.

---
 .../input/touchscreen/ilitek_ts_i2c.txt       | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt
Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt new file +23 -0
new file mode 100644
index 000000000000..eb90d3bd7ee7
@@ -0,0 +1,23 @@
+Ilitek I2C 23XX/25XX/Lego Series Touch ICs
+
+Required properties:
+- compatible		: Must be equal to one of following:
+			  "ilitek,ili2520"
+			  "ilitek,ili2510"
+- reg			: I2C slave address for touch device.
+- reset-gpios		: GPIO output high to reset pin of touch device.
+- irq-gpios		: GPIO as active low input from touch irq pin.
+
+Example:
+	&i2c1 {
+		/* ... */
+
+		touchscreen@41 {
+			compatible = "ilitek,ili2520";
+			reg = <0x41>;
+			irq-gpios = <&gpio1 13 0>;
+			reset-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
+		};
+
+		/* ... */
+	};
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH RESEND 2/2 input: touchscreen: Add support for ILITEK Lego Series

Add support for ILITEK Lego series of touch devices. Designed in compatible way for ILITEK 23XX/251X ICs.

Tested and passed with evaluation board with ILI2520 IC.

---
 drivers/input/touchscreen/Kconfig         |   12 +
 drivers/input/touchscreen/Makefile        |    1 +
 drivers/input/touchscreen/ilitek_ts_i2c.c | 1027 +++++++++++++++++++++
 3 files changed, 1040 insertions(+)
 create mode 100644 drivers/input/touchscreen/ilitek_ts_i2c.c
drivers/input/touchscreen/Kconfig +12 -0
index f012fe746df0..9dea7fd0d94f 100644
@@ -1334,4 +1334,16 @@ config TOUCHSCREEN_ZINITIX
 	  To compile this driver as a module, choose M here: the
 	  module will be called zinitix.
 
+config TOUCHSCREEN_ILITEK
+	tristate "Ilitek I2C 23XX/25XX/Lego Series Touch ICs"
+	depends on I2C
+	help
+	  Say Y here if you have touchscreen with ILITEK touch IC,
+	  it supports 23XX/25XX/other Lego series.
+
+	  If unsure, say N.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called ilitek_ts_i2c.
+
 endif
drivers/input/touchscreen/Makefile +1 -0
index 6233541e9173..6749bdc42f41 100644
@@ -112,3 +112,4 @@ obj-$(CONFIG_TOUCHSCREEN_ROHM_BU21023)	+= rohm_bu21023.o
 obj-$(CONFIG_TOUCHSCREEN_RASPBERRYPI_FW)	+= raspberrypi-ts.o
 obj-$(CONFIG_TOUCHSCREEN_IQS5XX)	+= iqs5xx.o
 obj-$(CONFIG_TOUCHSCREEN_ZINITIX)	+= zinitix.o
+obj-$(CONFIG_TOUCHSCREEN_ILITEK)        += ilitek_ts_i2c.o
drivers/input/touchscreen/ilitek_ts_i2c.c new file +1027 -0

1,027 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer
#2 lore raw
In reply to Joe Hung
Quoted 1 line · Joe Hung

Add binding documentation for ILITEK touch devices.

Bindings are in DT schema format now. Please convert.

Quoted 13 lines
---
 .../input/touchscreen/ilitek_ts_i2c.txt       | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt
Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt new file +0 -0
new file mode 100644
index 000000000000..eb90d3bd7ee7

Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt line 9

Quoted 9 lines
Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt new file +9 -0
@@ -0,0 +1,23 @@
+Ilitek I2C 23XX/25XX/Lego Series Touch ICs
+
+Required properties:
+- compatible		: Must be equal to one of following:
+			  "ilitek,ili2520"
+			  "ilitek,ili2510"
+- reg			: I2C slave address for touch device.
+- reset-gpios		: GPIO output high to reset pin of touch device.
+- irq-gpios		: GPIO as active low input from touch irq pin.

Use 'interrupts' instead.

Quoted 18 lines
Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt new file +14 -0
+
+Example:
+	&i2c1 {
+		/* ... */
+
+		touchscreen@41 {
+			compatible = "ilitek,ili2520";
+			reg = <0x41>;
+			irq-gpios = <&gpio1 13 0>;
+			reset-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
+		};
+
+		/* ... */
+	};
Signature · 1 line
2.25.1
#3 lore raw

Hi Rob,

Thank you for your review; agreed on all comments. Should address your feedback in v2.

Quoted 1 line · Joe Hung

Add binding documentation for ILITEK touch devices.

Bindings are in DT schema format now. Please convert.

Quoted 13 lines
---
 .../input/touchscreen/ilitek_ts_i2c.txt       | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt
Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt new file +0 -0
new file mode 100644
index 000000000000..eb90d3bd7ee7

Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt line 9

Quoted 9 lines
Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt new file +9 -0
@@ -0,0 +1,23 @@
+Ilitek I2C 23XX/25XX/Lego Series Touch ICs
+
+Required properties:
+- compatible		: Must be equal to one of following:
+			  "ilitek,ili2520"
+			  "ilitek,ili2510"
+- reg			: I2C slave address for touch device.
+- reset-gpios		: GPIO output high to reset pin of touch device.
+- irq-gpios		: GPIO as active low input from touch irq pin.

Use 'interrupts' instead.

Quoted 18 lines
Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt new file +14 -0
+
+Example:
+	&i2c1 {
+		/* ... */
+
+		touchscreen@41 {
+			compatible = "ilitek,ili2520";
+			reg = <0x41>;
+			irq-gpios = <&gpio1 13 0>;
+			reset-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
+		};
+
+		/* ... */
+	};
Signature · 1 line
2.25.1