xref: /linux/Documentation/devicetree/bindings/input/touchscreen/zeitec,zet6223.yaml (revision 4f38da1f027ea2c9f01bb71daa7a299c191b6940)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/touchscreen/zeitec,zet6223.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Zeitec ZET6223 touchscreen controller
8
9description:
10  Zeitec ZET6223 I2C driven touchscreen controller.
11
12maintainers:
13  - Dario Binacchi <dario.binacchi@amarulasolutions.com>
14
15allOf:
16  - $ref: touchscreen.yaml#
17
18properties:
19  compatible:
20    enum:
21      - zeitec,zet6223
22
23  reg:
24    maxItems: 1
25
26  interrupts:
27    maxItems: 1
28
29  vio-supply:
30    description: 1.8V or 3.3V VIO supply.
31
32  vcc-supply:
33    description: 3.3V VCC supply.
34
35  touchscreen-inverted-x: true
36  touchscreen-inverted-y: true
37  touchscreen-size-x: true
38  touchscreen-size-y: true
39  touchscreen-swapped-x-y: true
40
41additionalProperties: false
42
43required:
44  - compatible
45  - reg
46  - interrupts
47
48examples:
49  - |
50    #include <dt-bindings/gpio/gpio.h>
51    #include <dt-bindings/interrupt-controller/irq.h>
52    i2c {
53        #address-cells = <1>;
54        #size-cells = <0>;
55
56        touchscreen@76 {
57            compatible = "zeitec,zet6223";
58            reg = <0x76>;
59            interrupt-parent = <&pio>;
60            interrupts = <6 11 IRQ_TYPE_EDGE_FALLING>;
61        };
62    };
63