dt-bindings: input: touchscreen: ilitek_ts_i2c: Add bindings
Subsystems (3)
PATCH v2 1/2 dt-bindings: input: touchscreen: ilitek_ts_i2c: Add bindings
Add binding documentation for ILITEK touch devices.
---
Changes in v2:
- Convert bindings file to DT schema format
- Using interrupts instead of irq-gpios
.../input/touchscreen/ilitek_ts_i2c.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.yaml
Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.yaml new file +45 -0
@@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/ilitek_ts_i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Ilitek I2C Touchscreen Controller + +maintainers: + - Dmitry Torokhov <[email protected]> + +properties: + compatible: + enum: + - ilitek,ili2520 + - ilitek,ili2510 + reg: + const: 0x41 + interrupts: + maxItems: 1 + reset-gpios: + maxItems: 1 + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + - reset-gpios + +examples: + - | + #include <dt-bindings/interrupt-controller/irq.h> + i2c { + #address-cells = <1>; + #size-cells = <0>; + touchscreen@41 { + compatible = "ilitek,ili2520"; + reg = <0x41>; + interrupt-parent = <&gpio1>; + interrupts = <7 IRQ_TYPE_EDGE_FALLING>; + reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; + }; + };
--
2.25.1
PATCH v2 2/2 input: touchscreen: Add support for ILITEK Lego Series
Add support for ILITEK Lego series of touch devices. Lego series includes ILITEK 213X/2316/232X/252X. Designed in compatible way for ILITEK 23XX/251X ICs.
Tested and passed with evaluation board with ILI2520 IC.
---
Changes in v2:
- Remove irq-gpio and related flow
drivers/input/touchscreen/Kconfig | 12 + drivers/input/touchscreen/Makefile | 1 + drivers/input/touchscreen/ilitek_ts_i2c.c | 1010 +++++++++++++++++++++ 3 files changed, 1023 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 +1010 -0
1,010 lines not on this page · raw message
--
2.25.1
Rob Herring
maintainerQuoted 12 lines · Joe Hung
Add binding documentation for ILITEK touch devices.
Signed-off-by Joe Hung <[email protected]>---
Changes in v2:
- Convert bindings file to DT schema format
- Using interrupts instead of irq-gpios.../input/touchscreen/ilitek_ts_i2c.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.yaml
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
Error: Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.example.dts:28.45-46 syntax error FATAL ERROR: Unable to parse input tree
make[1]: *** [scripts/Makefile.lib:344: Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.example.dt.yaml] Error 1
make: *** [Makefile:1370: dt_binding_check] Error 2
See https://patchwork.ozlabs.org/patch/1441181
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.
Hello Rob,
Thanks for your quick reply.
Already found the reason, and passed the check.
Should update and re-submit in v3.
Quoted 12 lines · Joe Hung
Add binding documentation for ILITEK touch devices.
Signed-off-by Joe Hung <[email protected]>---
Changes in v2:
- Convert bindings file to DT schema format
- Using interrupts instead of irq-gpios.../input/touchscreen/ilitek_ts_i2c.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.yaml
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
dtschema/dtc warnings/errors:
Error: Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.example.dts:28.45-46 syntax error FATAL ERROR: Unable to parse input tree
make[1]: *** [scripts/Makefile.lib:344: Documentation/devicetree/bindings/input/touchscreen/ilitek_ts_i2c.example.dt.yaml] Error 1
make: *** [Makefile:1370: dt_binding_check] Error 2
See https://patchwork.ozlabs.org/patch/1441181
This check can fail if there are any dependencies. The base for a patch series is generally the most recent rc1.
If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:
pip3 install dtschema --upgrade
Please check and re-submit.