Skip to contentSkip to conversation

dt-bindings: input: elan,ekth3000: Convert txt bindings to yaml

PATCH Applied David Heidelberg 2 participants 2 messages Oct 9, 2021 – Oct 18, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: input: elan,ekth3000: Convert txt bindings to yaml

Convert Elan touchpad documentation to the YAML syntax.

---
v2
- add additional space
- correct uint8 -> uint32
- change maintainer, original maintainer email doesn't exist

 .../bindings/input/elan,ekth3000.yaml         | 81 +++++++++++++++++++
 .../devicetree/bindings/input/elan_i2c.txt    | 44 ----------
 2 files changed, 81 insertions(+), 44 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/input/elan,ekth3000.yaml
 delete mode 100644 Documentation/devicetree/bindings/input/elan_i2c.txt
Documentation/devicetree/bindings/input/elan,ekth3000.yaml new file +81 -0
new file mode 100644
index 000000000000..2a9bb6ace021
@@ -0,0 +1,81 @@
+# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/elan,ekth3000.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Elantech I2C Touchpad
+
+maintainers:
+  - Dmitry Torokhov <[email protected]>
+
+allOf:
+  - $ref: touchscreen/touchscreen.yaml#
+
+properties:
+  compatible:
+    const: elan,ekth3000
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  wakeup-source:
+    type: boolean
+    description: touchpad can be used as a wakeup source
+
+  vcc-supply:
+    description: a phandle for the regulator supplying 3.3V power
+
+  elan,trackpoint:
+    type: boolean
+    description: touchpad can support a trackpoint
+
+  elan,clickpad:
+    type: boolean
+    description: touchpad is a clickpad (the entire surface is a button)
+
+  elan,middle-button:
+    type: boolean
+    description: touchpad has a physical middle button
+
+  elan,x_traces:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: number of antennas on the x axis
+
+  elan,y_traces:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    description: number of antennas on the y axis
+
+  touchscreen-size-x: true
+
+  touchscreen-size-y: true
+
+  touchscreen-x-mm: true
+
+  touchscreen-y-mm: true
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        touchpad@15 {
+            compatible = "elan,ekth3000";
+            reg = <0x15>;
+            interrupt-parent = <&gpio4>;
+            interrupts = <0x0 IRQ_TYPE_EDGE_FALLING>;
+            wakeup-source;
+        };
+    };
Documentation/devicetree/bindings/input/elan_i2c.txt deleted +0 -44

44 lines not on this page · raw message

Signature · 1 line
2.33.0
maintainer Applied
#1 lore raw
Quoted 10 lines · David Heidelberg

Convert Elan touchpad documentation to the YAML syntax.

---
v2
- add additional space
- correct uint8 -> uint32
- change maintainer, original maintainer email doesn't exist

Quoted 6 lines
 .../bindings/input/elan,ekth3000.yaml         | 81 +++++++++++++++++++
 .../devicetree/bindings/input/elan_i2c.txt    | 44 ----------
 2 files changed, 81 insertions(+), 44 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/input/elan,ekth3000.yaml
 delete mode 100644 Documentation/devicetree/bindings/input/elan_i2c.txt

Applied, thanks!