xref: /freebsd/sys/contrib/device-tree/Bindings/input/touchscreen/pixcir,pixcir_ts.yaml (revision d9a42747950146bf03cda7f6e25d219253f8a57a)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/touchscreen/pixcir,pixcir_ts.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Pixcir Touchscreen Controller Device Tree Bindings
8
9maintainers:
10  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
11
12allOf:
13  - $ref: touchscreen.yaml#
14
15properties:
16  compatible:
17    enum:
18      - pixcir,pixcir_ts
19      - pixcir,pixcir_tangoc
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  attb-gpio:
28    maxItems: 1
29
30  reset-gpios:
31    maxItems: 1
32
33  enable-gpios:
34    maxItems: 1
35
36  wake-gpios:
37    maxItems: 1
38
39unevaluatedProperties: false
40
41required:
42  - compatible
43  - reg
44  - interrupts
45  - attb-gpio
46  - touchscreen-size-x
47  - touchscreen-size-y
48
49examples:
50  - |
51    #include <dt-bindings/gpio/gpio.h>
52    #include <dt-bindings/interrupt-controller/arm-gic.h>
53
54    i2c {
55        #address-cells = <1>;
56        #size-cells = <0>;
57
58        touchscreen@5c {
59            compatible = "pixcir,pixcir_ts";
60            reg = <0x5c>;
61            interrupts = <2 0>;
62            attb-gpio = <&gpf 2 0 2>;
63            touchscreen-size-x = <800>;
64            touchscreen-size-y = <600>;
65        };
66    };
67
68...
69