dt-bindings: input: touchscreen: ilitek_ts_i2c: Add bindings
Subsystems (3)
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
@@ -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
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
@@ -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
@@ -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
Rob Herring
maintainerQuoted 1 line · Joe Hung
Add binding documentation for ILITEK touch devices.
Bindings are in DT schema format now. Please convert.
Quoted 13 lines
Signed-off-by Joe Hung <[email protected]>--- .../input/touchscreen/ilitek_ts_i2c.txt | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txtDocumentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt new file +0
-0
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
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
Signed-off-by Joe Hung <[email protected]>--- .../input/touchscreen/ilitek_ts_i2c.txt | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txtDocumentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.txt new file +0
-0
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