GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / input / touchscreen / imagis,ist3038c.yaml
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/imagis,ist3038c.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Imagis IST30XXC family touchscreen controller bindings
8
9 maintainers:
10   - Markuss Broks <markuss.broks@gmail.com>
11
12 allOf:
13   - $ref: touchscreen.yaml#
14
15 properties:
16   $nodename:
17     pattern: "^touchscreen@[0-9a-f]+$"
18
19   compatible:
20     enum:
21       - imagis,ist3038c
22
23   reg:
24     maxItems: 1
25
26   interrupts:
27     maxItems: 1
28
29   vdd-supply:
30     description: Power supply regulator for the chip
31
32   vddio-supply:
33     description: Power supply regulator for the I2C bus
34
35   touchscreen-size-x: true
36   touchscreen-size-y: true
37   touchscreen-fuzz-x: true
38   touchscreen-fuzz-y: true
39   touchscreen-inverted-x: true
40   touchscreen-inverted-y: true
41   touchscreen-swapped-x-y: true
42
43 additionalProperties: false
44
45 required:
46   - compatible
47   - reg
48   - interrupts
49   - touchscreen-size-x
50   - touchscreen-size-y
51
52 examples:
53   - |
54     #include <dt-bindings/interrupt-controller/irq.h>
55     i2c {
56       #address-cells = <1>;
57       #size-cells = <0>;
58       touchscreen@50 {
59         compatible = "imagis,ist3038c";
60         reg = <0x50>;
61         interrupt-parent = <&gpio>;
62         interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
63         vdd-supply = <&ldo1_reg>;
64         vddio-supply = <&ldo2_reg>;
65         touchscreen-size-x = <720>;
66         touchscreen-size-y = <1280>;
67         touchscreen-fuzz-x = <10>;
68         touchscreen-fuzz-y = <10>;
69         touchscreen-inverted-x;
70         touchscreen-inverted-y;
71       };
72     };
73
74 ...