WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / input / touchscreen / edt-ft5x06.yaml
blobbfc3a8b5e1182bfeadfd55bfbca5d6428a841e6f
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#
7 title: FocalTech EDT-FT5x06 Polytouch Bindings
9 description: |
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"
17 maintainers:
18   - Dmitry Torokhov <dmitry.torokhov@gmail.com>
20 allOf:
21   - $ref: touchscreen.yaml#
22   - if:
23       properties:
24         compatible:
25           contains:
26             enum:
27               - evervision,ev-ft5726
29     then:
30       properties:
31         offset-x: true
32         offset-y: true
34 properties:
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,ft6236
44   reg:
45     maxItems: 1
47   interrupts:
48     maxItems: 1
50   reset-gpios:
51     maxItems: 1
53   wake-gpios:
54     maxItems: 1
56   wakeup-source: true
58   vcc-supply: true
60   gain:
61     description: Allows setting the sensitivity in the range from 0 to 31.
62                  Note that lower values indicate higher sensitivity.
63     $ref: /schemas/types.yaml#/definitions/uint32
64     minimum: 0
65     maximum: 31
67   offset:
68     description: Allows setting the edge compensation in the range from 0 to 31.
69     $ref: /schemas/types.yaml#/definitions/uint32
70     minimum: 0
71     maximum: 31
73   offset-x:
74     description: Same as offset, but applies only to the horizontal position.
75                  Range from 0 to 80, only supported by evervision,ev-ft5726 devices.
76     $ref: /schemas/types.yaml#/definitions/uint32
77     minimum: 0
78     maximum: 80
80   offset-y:
81     description: Same as offset, but applies only to the vertical 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
87   touchscreen-size-x: true
88   touchscreen-size-y: true
89   touchscreen-fuzz-x: true
90   touchscreen-fuzz-y: true
91   touchscreen-inverted-x: true
92   touchscreen-inverted-y: true
93   touchscreen-swapped-x-y: true
94   interrupt-controller: true
96 additionalProperties: false
98 required:
99   - compatible
100   - reg
101   - interrupts
103 examples:
104   - |
105     #include <dt-bindings/gpio/gpio.h>
106     #include <dt-bindings/interrupt-controller/arm-gic.h>
107     i2c {
108       #address-cells = <1>;
109       #size-cells = <0>;
110       edt-ft5x06@38 {
111         compatible = "edt,edt-ft5406";
112         reg = <0x38>;
113         interrupt-parent = <&gpio2>;
114         interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
115         reset-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
116         wake-gpios = <&gpio4 9 GPIO_ACTIVE_HIGH>;
117       };
118     };