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    oneOf:
18      - const: eeti,exc3000
19      - const: eeti,exc80h60
20      - const: eeti,exc80h84
21      - items:
22          - enum:
23              - eeti,exc81w32
24          - const: eeti,exc80h84
25  reg:
26    const: 0x2a
27  interrupts:
28    maxItems: 1
29  reset-gpios:
30    maxItems: 1
31  vdd-supply:
32    description: Power supply regulator for the chip
33  touchscreen-size-x: true
34  touchscreen-size-y: true
35  touchscreen-inverted-x: true
36  touchscreen-inverted-y: true
37  touchscreen-swapped-x-y: true
38
39required:
40  - compatible
41  - reg
42  - interrupts
43  - touchscreen-size-x
44  - touchscreen-size-y
45
46additionalProperties: false
47
48examples:
49  - |
50    #include "dt-bindings/interrupt-controller/irq.h"
51    i2c {
52        #address-cells = <1>;
53        #size-cells = <0>;
54        touchscreen@2a {
55                compatible = "eeti,exc3000";
56                reg = <0x2a>;
57                interrupt-parent = <&gpio1>;
58                interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
59                touchscreen-size-x = <4096>;
60                touchscreen-size-y = <4096>;
61                touchscreen-inverted-x;
62                touchscreen-swapped-x-y;
63        };
64    };
65