Skip to contentSkip to conversation

input: touchscreen: ili210x: Add DT binding document

PATCH Superseded Marek Vasut 2 participants 3 messages Dec 20, 2018 – Dec 30, 2018 1 message not in the archive

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 1/10 input: touchscreen: ili210x: Add DT binding document

Add DT binding document for the Ilitek ILI210x and ILI251x touchscreen controllers.

Cc Dmitry Torokhov <[email protected]>
Cc Henrik Rydberg <[email protected]>
Cc Olivier Sobrie <[email protected]>
Cc Philipp Puschmann <[email protected]>
Cc Rob Herring <[email protected]>

To: [email protected]
---
V2: New patch

---
 .../bindings/input/ilitek,ili2xxx.txt         | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt
Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt new file +25 -0
new file mode 100644
index 000000000000..bc256557ae8c
@@ -0,0 +1,25 @@
+Ilitek ILI210x/ILI251x touchscreen controller
+
+Required properties:
+- compatible:
+    ilitek,ili210x for ILI210x
+    ilitek,ili251x for ILI251x
+
+- reg: The I2C address of the device
+
+- interrupts: The sink for the touchscreen's IRQ output
+    See ../interrupt-controller/interrupts.txt
+
+Optional properties for main touchpad device:
+
+- reset-gpios: GPIO specifier for the touchscreen's reset pin (active low)
+
+Example:
+
+	touch@41 {
+		compatible = "ilitek,ili251x";
+		reg = <0x41>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
+		reset-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>;
+	};
Signature · 1 line
2.19.2
maintainer
#2 lore raw
Quoted 24 lines · Marek Vasut

Add DT binding document for the Ilitek ILI210x and ILI251x touchscreen controllers.

Cc Dmitry Torokhov <[email protected]>
Cc Henrik Rydberg <[email protected]>
Cc Olivier Sobrie <[email protected]>
Cc Philipp Puschmann <[email protected]>
Cc Rob Herring <[email protected]>

To: [email protected]
---
V2: New patch

---
 .../bindings/input/ilitek,ili2xxx.txt         | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt
Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt new file +0 -0
new file mode 100644
index 000000000000..bc256557ae8c

Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt line 6

Quoted 6 lines
Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt new file +6 -0
@@ -0,0 +1,25 @@
+Ilitek ILI210x/ILI251x touchscreen controller
+
+Required properties:
+- compatible:
+    ilitek,ili210x for ILI210x
+    ilitek,ili251x for ILI251x

Generally, we don't have wildcards in compatible strings. What's the 'x' signify? I couldn't find much info on these parts.

Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt line 19

Quoted 13 lines
Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt new file +13 -0
+
+- reg: The I2C address of the device
+
+- interrupts: The sink for the touchscreen's IRQ output
+    See ../interrupt-controller/interrupts.txt
+
+Optional properties for main touchpad device:
+
+- reset-gpios: GPIO specifier for the touchscreen's reset pin (active low)
+
+Example:
+
+	touch@41 {

touchscreen@41

Quoted 9 lines
Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt new file +6 -0
+		compatible = "ilitek,ili251x";
+		reg = <0x41>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
+		reset-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>;
+	};
Signature · 1 line
2.19.2
#3 lore raw
Quoted 19 lines · Rob Herring
Quoted 18 lines · Marek Vasut

Add DT binding document for the Ilitek ILI210x and ILI251x touchscreen controllers.

Cc Dmitry Torokhov <[email protected]>
Cc Henrik Rydberg <[email protected]>
Cc Olivier Sobrie <[email protected]>
Cc Philipp Puschmann <[email protected]>
Cc Rob Herring <[email protected]>

To: [email protected]
---
V2: New patch

---
 .../bindings/input/ilitek,ili2xxx.txt         | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt
Quoted 15 lines

Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt line 6

Quoted 12 lines
Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt new file +6 -0
new file mode 100644
index 000000000000..bc256557ae8c
@@ -0,0 +1,25 @@
+Ilitek ILI210x/ILI251x touchscreen controller
+
+Required properties:
+- compatible:
+    ilitek,ili210x for ILI210x
+    ilitek,ili251x for ILI251x

Generally, we don't have wildcards in compatible strings. What's the 'x' signify? I couldn't find much info on these parts.

Presumably there are other parts in that family of chips. I don't have the datasheet for any of the chips either, I extracted the necessary driver adjustments from the ilitek kernel driver (6500 kLoC , where C probably doesn't stand for Code, but something else ...).

In my case, the chip itself is attached to the panel assembly, which is covered in thick aluminum casing, so I'm unable to visually check the chip markings ; if there are any on it.

As for the older ili210x, that's at least what some DTs might've matched on as an i2c simple device. However, there's no in-tree DT that uses it.

Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt new file +7 -0
+
+- reg: The I2C address of the device
+
+- interrupts: The sink for the touchscreen's IRQ output
+    See ../interrupt-controller/interrupts.txt
+
+Optional properties for main touchpad device:
Quoted 8 lines

Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt line 19

Quoted 6 lines
Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt new file +6 -0
+
+- reset-gpios: GPIO specifier for the touchscreen's reset pin (active low)
+
+Example:
+
+	touch@41 {

touchscreen@41

Fixed

Quoted 9 lines
Quoted 9 lines
Documentation/devicetree/bindings/input/ilitek,ili2xxx.txt new file +6 -0
+		compatible = "ilitek,ili251x";
+		reg = <0x41>;
+		interrupt-parent = <&gpio4>;
+		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
+		reset-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>;
+	};
Signature · 1 line
2.19.2
Signature · 2 lines
Best regards,
Marek Vasut