xref: /linux/Documentation/devicetree/bindings/input/touchscreen/edt-ft5x06.yaml (revision c17ee635fd3a482b2ad2bf5e269755c2eae5f25e)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/touchscreen/edt-ft5x06.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: FocalTech EDT-FT5x06 Polytouch
8
9description: |
10             There are 5 variants of the chip for various touch panel sizes
11              FT5206GE1  2.8" .. 3.8"
12              FT5306DE4  4.3" .. 7"
13              FT5406EE8  7"   .. 8.9"
14              FT5506EEG  7"   .. 8.9"
15              FT5726NEI  5.7” .. 11.6"
16
17maintainers:
18  - Dmitry Torokhov <dmitry.torokhov@gmail.com>
19
20allOf:
21  - $ref: touchscreen.yaml#
22  - if:
23      properties:
24        compatible:
25          contains:
26            enum:
27              - evervision,ev-ft5726
28
29    then:
30      properties:
31        offset-x: true
32        offset-y: true
33
34properties:
35  compatible:
36    enum:
37      - edt,edt-ft5206
38      - edt,edt-ft5306
39      - edt,edt-ft5406
40      - edt,edt-ft5506
41      - evervision,ev-ft5726
42      - focaltech,ft3518
43      - focaltech,ft5426
44      - focaltech,ft5452
45      - focaltech,ft6236
46      - focaltech,ft8201
47      - focaltech,ft8716
48      - focaltech,ft8719
49
50  reg:
51    maxItems: 1
52
53  interrupts:
54    maxItems: 1
55
56  reset-gpios:
57    maxItems: 1
58
59  wake-gpios:
60    maxItems: 1
61
62  wakeup-source: true
63
64  vcc-supply: true
65  iovcc-supply: true
66
67  gain:
68    description: Allows setting the sensitivity in the range from 0 to 31.
69                 Note that lower values indicate higher sensitivity.
70    $ref: /schemas/types.yaml#/definitions/uint32
71    minimum: 0
72    maximum: 31
73
74  offset:
75    description: Allows setting the edge compensation in the range from 0 to 31.
76    $ref: /schemas/types.yaml#/definitions/uint32
77    minimum: 0
78    maximum: 31
79
80  offset-x:
81    description: Same as offset, but applies only to the horizontal position.
82                 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
83    $ref: /schemas/types.yaml#/definitions/uint32
84    minimum: 0
85    maximum: 80
86
87  offset-y:
88    description: Same as offset, but applies only to the vertical position.
89                 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
90    $ref: /schemas/types.yaml#/definitions/uint32
91    minimum: 0
92    maximum: 80
93
94  report-rate-hz:
95    description: |
96                 Allows setting the scan rate in Hertz.
97                  M06 supports range from 30 to 140 Hz.
98                  M12 supports range from 1 to 255 Hz.
99    minimum: 1
100    maximum: 255
101
102  threshold:
103    description: Allows setting the  "click"-threshold in the range from 0 to 255.
104    $ref: /schemas/types.yaml#/definitions/uint32
105    minimum: 0
106    maximum: 255
107
108  interrupt-controller: true
109
110unevaluatedProperties: false
111
112required:
113  - compatible
114  - reg
115  - interrupts
116
117examples:
118  - |
119    #include <dt-bindings/gpio/gpio.h>
120    #include <dt-bindings/interrupt-controller/arm-gic.h>
121    i2c {
122      #address-cells = <1>;
123      #size-cells = <0>;
124      touchscreen@38 {
125        compatible = "edt,edt-ft5406";
126        reg = <0x38>;
127        interrupt-parent = <&gpio2>;
128        interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
129        reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
130        wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
131      };
132    };
133
134...
135