1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/touchscreen/eeti,exc3000.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: EETI EXC3000 series touchscreen controller
8
9maintainers:
10  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
11
12allOf:
13  - $ref: touchscreen.yaml#
14
15properties:
16  compatible:
17    enum:
18      - eeti,exc3000
19      - eeti,exc80h60
20      - eeti,exc80h84
21  reg:
22    const: 0x2a
23  interrupts:
24    maxItems: 1
25  touchscreen-size-x: true
26  touchscreen-size-y: true
27  touchscreen-inverted-x: true
28  touchscreen-inverted-y: true
29  touchscreen-swapped-x-y: true
30
31required:
32  - compatible
33  - reg
34  - interrupts
35  - touchscreen-size-x
36  - touchscreen-size-y
37
38additionalProperties: false
39
40examples:
41  - |
42    #include "dt-bindings/interrupt-controller/irq.h"
43    i2c {
44        #address-cells = <1>;
45        #size-cells = <0>;
46        touchscreen@2a {
47                compatible = "eeti,exc3000";
48                reg = <0x2a>;
49                interrupt-parent = <&gpio1>;
50                interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
51                touchscreen-size-x = <4096>;
52                touchscreen-size-y = <4096>;
53                touchscreen-inverted-x;
54                touchscreen-swapped-x-y;
55        };
56    };
57