blob: 745e57c05176ea73bb2be62b33b7bf62d9a0488f [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
Tom Rini762f85b2024-07-20 11:15:10 -060042 - focaltech,ft5452
Tom Rini53633a82024-02-29 12:33:36 -050043 - focaltech,ft6236
Tom Rini762f85b2024-07-20 11:15:10 -060044 - focaltech,ft8719
Tom Rini53633a82024-02-29 12:33:36 -050045
46 reg:
47 maxItems: 1
48
49 interrupts:
50 maxItems: 1
51
52 reset-gpios:
53 maxItems: 1
54
55 wake-gpios:
56 maxItems: 1
57
58 wakeup-source: true
59
60 vcc-supply: true
61 iovcc-supply: true
62
63 gain:
64 description: Allows setting the sensitivity in the range from 0 to 31.
65 Note that lower values indicate higher sensitivity.
66 $ref: /schemas/types.yaml#/definitions/uint32
67 minimum: 0
68 maximum: 31
69
70 offset:
71 description: Allows setting the edge compensation in the range from 0 to 31.
72 $ref: /schemas/types.yaml#/definitions/uint32
73 minimum: 0
74 maximum: 31
75
76 offset-x:
77 description: Same as offset, but applies only to the horizontal position.
78 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
79 $ref: /schemas/types.yaml#/definitions/uint32
80 minimum: 0
81 maximum: 80
82
83 offset-y:
84 description: Same as offset, but applies only to the vertical position.
85 Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
86 $ref: /schemas/types.yaml#/definitions/uint32
87 minimum: 0
88 maximum: 80
89
90 report-rate-hz:
91 description: |
92 Allows setting the scan rate in Hertz.
93 M06 supports range from 30 to 140 Hz.
94 M12 supports range from 1 to 255 Hz.
95 minimum: 1
96 maximum: 255
97
98 threshold:
99 description: Allows setting the "click"-threshold in the range from 0 to 255.
100 $ref: /schemas/types.yaml#/definitions/uint32
101 minimum: 0
102 maximum: 255
103
104 touchscreen-size-x: true
105 touchscreen-size-y: true
106 touchscreen-fuzz-x: true
107 touchscreen-fuzz-y: true
108 touchscreen-inverted-x: true
109 touchscreen-inverted-y: true
110 touchscreen-swapped-x-y: true
111 interrupt-controller: true
112
113additionalProperties: false
114
115required:
116 - compatible
117 - reg
118 - interrupts
119
120examples:
121 - |
122 #include <dt-bindings/gpio/gpio.h>
123 #include <dt-bindings/interrupt-controller/arm-gic.h>
124 i2c {
125 #address-cells = <1>;
126 #size-cells = <0>;
127 edt-ft5x06@38 {
128 compatible = "edt,edt-ft5406";
129 reg = <0x38>;
130 interrupt-parent = <&gpio2>;
131 interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
132 reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
133 wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
134 };
135 };
136
137...